Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 181 for foo (0.15 sec)

  1. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

        Comparator<Foo> natural = Ordering.natural();
        Comparator<Foo> reverse = Collections.reverseOrder(natural);
        Foo a = new Foo(1);
        Foo b = new Foo(1);
        assertThat(Comparators.min(a, b, reverse)).isSameInstanceAs(a);
        assertThat(Comparators.max(a, b, reverse)).isSameInstanceAs(a);
      }
    
      private static class Foo implements Comparable<Foo> {
        final Integer value;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 11 08:42:51 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ComparatorsTest.java

        Comparator<Foo> natural = Ordering.natural();
        Comparator<Foo> reverse = Collections.reverseOrder(natural);
        Foo a = new Foo(1);
        Foo b = new Foo(1);
        assertThat(Comparators.min(a, b, reverse)).isSameInstanceAs(a);
        assertThat(Comparators.max(a, b, reverse)).isSameInstanceAs(a);
      }
    
      private static class Foo implements Comparable<Foo> {
        final Integer value;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Apr 11 08:42:51 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  3. tests/default_value_test.go

    	"gorm.io/gorm"
    )
    
    func TestDefaultValue(t *testing.T) {
    	type Harumph struct {
    		gorm.Model
    		Email   string    `gorm:"not null;index:,unique"`
    		Name    string    `gorm:"notNull;default:foo"`
    		Name2   string    `gorm:"size:233;not null;default:'foo'"`
    		Name3   string    `gorm:"size:233;notNull;default:''"`
    		Age     int       `gorm:"default:18"`
    		Created time.Time `gorm:"default:2000-01-02"`
    		Enabled bool      `gorm:"default:true"`
    	}
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Mon Apr 08 03:29:55 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  4. tests/test_annotated.py

            ("/required", 422, foo_is_missing),
            ("/required?foo=", 422, foo_is_short),
            ("/multiple?foo=bar", 200, {"foo": "bar"}),
            ("/multiple", 422, foo_is_missing),
            ("/multiple?foo=", 422, foo_is_short),
            ("/unrelated?foo=bar", 200, {"foo": "bar"}),
            ("/unrelated", 422, foo_is_missing),
        ],
    )
    def test_get(path, expected_status, expected_response):
        response = client.get(path)
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  5. tests/test_jsonable_encoder.py

        assert jsonable_encoder(model, exclude_defaults=True) == {"foo": "foo"}
        assert jsonable_encoder(model, exclude_unset=True, exclude_defaults=True) == {
            "foo": "foo"
        }
        assert jsonable_encoder(model, include={"foo"}) == {"foo": "foo"}
        assert jsonable_encoder(model, exclude={"bla"}) == {"foo": "foo", "bar": "bar"}
        assert jsonable_encoder(model, include={}) == {}
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/query-params.md

    ```
    
    En este caso, si vas a:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/query-params.md

    Nesse caso, se você for para:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/query-params.md

    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt

         *
         * Relies on the fact that in such references only the last qualifier refers to the
         * actual extension callable, and the part before that refers to the receiver type (either fully
         * or partially qualified).
         *
         * For example, `foo.Foo.bar` may only refer to the extension callable `bar` with
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

         *
         * Examples of calls:
         *
         * - `|foo.Bar<...>|` - true
         * - `foo.|Bar|<...>` - true
         * - `foo.|B|ar<...>` - true
         * - `|foo|.Bar<...>` - false
         * - `foo.Bar|<...>|` - false
         */
        private val KtUserType.inSelection: Boolean
            get() {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:51:33 GMT 2024
    - 69.5K bytes
    - Viewed (0)
Back to top