Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,017 for value1 (0.27 sec)

  1. tests/scanner_valuer_test.go

    	switch value := input.(type) {
    	case string:
    		return json.Unmarshal([]byte(value), l)
    	case []byte:
    		return json.Unmarshal(value, l)
    	default:
    		return errors.New("not supported")
    	}
    }
    
    type Role struct {
    	Name string `gorm:"size:256"`
    }
    
    func (role *Role) Scan(value interface{}) error {
    	if b, ok := value.([]uint8); ok {
    		role.Name = string(b)
    	} else {
    		role.Name = value.(string)
    	}
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Jun 07 07:02:07 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        checkNotNull(value2);
        checkArgument(!Objects.equal(value1, value2), "Duplicate value provided.");
        distinctValues.replaceValues(type, ImmutableList.of(value1, value2));
        setDefault(type, value1);
        return this;
      }
    
      /**
       * Tests that {@code cls} properly checks null on all constructor and method parameters that
       * aren't annotated nullable (according to the rules of {@link NullPointerTester}). In details:
       *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

                .add("field1", 1)
                .addValue("value1")
                .add("field2", "value2");
        final String expected = "TestClass{field1=1, value1, field2=value2}";
    
        assertEquals(expected, helper.toString());
        // Call toString again
        assertEquals(expected, helper.toString());
    
        // Make sure the cached value is reset when we modify the helper at all
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/lifecycle_test.go

    `<LifecycleConfiguration><Rule><Filter><And><Prefix>foodir/</Prefix><Tag><Key>tag1</Key><Value>value1</Value></Tag><Tag><Key>tag2</Key><Value>value2</Value></Tag></And></Filter><Status>Enabled</Status><Expiration><Date>` + time.Now().Truncate(24*time.Hour).UTC().Add(-24*time.Hour).Format(time.RFC3339) + `</Date></Expiration></Rule><Rule><Filter><And><Prefix>abc/</Prefix><Tag><Key>tag2</Key><Value>value</Value></Tag></And></Filter><Status>Enabled</Status><Expiration><Date>` + time.Now().Truncate(2...
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 45.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/ToStringHelperTest.java

                .add("field1", 1)
                .addValue("value1")
                .add("field2", "value2");
        final String expected = "TestClass{field1=1, value1, field2=value2}";
    
        assertEquals(expected, helper.toString());
        // Call toString again
        assertEquals(expected, helper.toString());
    
        // Make sure the cached value is reset when we modify the helper at all
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        checkNotNull(value2);
        checkArgument(!Objects.equal(value1, value2), "Duplicate value provided.");
        distinctValues.replaceValues(type, ImmutableList.of(value1, value2));
        setDefault(type, value1);
        return this;
      }
    
      /**
       * Tests that {@code cls} properly checks null on all constructor and method parameters that
       * aren't annotated nullable (according to the rules of {@link NullPointerTester}). In details:
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  7. cmd/bucket-lifecycle-handlers_test.go

    			accessKey:          creds.AccessKey,
    			secretKey:          creds.SecretKey,
    			body:               []byte(`<LifecycleConfiguration><Rule><ID>id</ID><Filter><Prefix>logs/</Prefix><Tag><Key>Key1</Key><Value>Value1</Value></Tag></Filter><Status>Enabled</Status><Expiration><Days>365</Days></Expiration></Rule></LifecycleConfiguration>`),
    			expectedRespStatus: http.StatusBadRequest,
    			lifecycleResponse:  []byte(``),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jun 13 20:52:33 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  8. tests/preload_test.go

    	DB.Migrator().AutoMigrate(&Preload{}, &Join{}, &Nested{}, &Value{})
    
    	value1 := Value{
    		Name: "value",
    		Nested: Nested{
    			Preloads: []*Preload{
    				{Value: "p1"}, {Value: "p2"},
    			},
    			Join: Join{Value: "j1"},
    		},
    	}
    	value2 := Value{
    		Name: "value2",
    		Nested: Nested{
    			Preloads: []*Preload{
    				{Value: "p3"}, {Value: "p4"}, {Value: "p5"},
    			},
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

      /**
       * Sets two distinct values for {@code type}. These values can be used for both null pointer
       * testing and equals testing.
       *
       * @since 17.0
       */
      protected final <T> void setDistinctValues(Class<T> type, T value1, T value2) {
        tester.setDistinctValues(type, value1, value2);
      }
    
      /** Specifies that classes that satisfy the given predicate aren't tested for sanity. */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
  10. tests/preload_suits_test.go

    	want[0] = Level3{
    		Level2: Level2{
    			Level1s: []Level1{
    				{Value: "value1"},
    				{Value: "value2"},
    			},
    		},
    		Level2_1: Level2_1{
    			Level1s: []Level1{
    				{
    					Value:   "value1-1",
    					Level0s: []Level0{{Value: "Level0-1"}},
    				},
    				{
    					Value:   "value2-2",
    					Level0s: []Level0{{Value: "Level0-2"}},
    				},
    			},
    		},
    	}
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Mar 18 05:38:46 GMT 2022
    - 30.3K bytes
    - Viewed (0)
Back to top