- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 28 for testValue3 (0.36 sec)
-
clause/values_test.go
package clause_test import ( "fmt" "testing" "gorm.io/gorm/clause" ) func TestValues(t *testing.T) { results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{ clause.Insert{}, clause.Values{ Columns: []clause.Column{{Name: "name"}, {Name: "age"}}, Values: [][]interface{}{{"jinzhu", 18}, {"josh", 1}}, }, },
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 691 bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/internal/operations/notify/BuildOperationNotificationFixture.groovy
for (String key : present) { if (!testValue(expectedPayload[key], actualPayload[key])) { return false } } true } as Predicate } private static boolean testValue(expectedValue, actualValue) { if (expectedValue instanceof Closure) { expectedValue.call(actualValue)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Dec 20 11:47:00 UTC 2022 - 7.5K bytes - Viewed (0) -
test/typeparam/mapsimp.dir/main.go
} got2 := a.Keys(m2) sort.Ints(got2) if !a.SliceEqual(got2, want) { panic(fmt.Sprintf("a.Keys(%v) = %v, want %v", m2, got2, want)) } } func TestValues() { got1 := a.Values(m1) want1 := []int{2, 4, 8, 16} sort.Ints(got1) if !a.SliceEqual(got1, want1) { panic(fmt.Sprintf("a.Values(%v) = %v, want %v", m1, got1, want1)) } got2 := a.Values(m2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 3.6K bytes - Viewed (0) -
pkg/registry/core/componentstatus/rest_test.go
r := NewTestREST(testResponse{result: probe.Success, data: "ok"}) opts := metainternalversion.ListOptions{ LabelSelector: labels.SelectorFromSet(map[string]string{ "testLabel": "testValue", }), } got, err := r.List(genericapirequest.NewContext(), &opts) if err != nil { t.Fatalf("Unexpected error: %v", err) } expect := &api.ComponentStatusList{ Items: []api.ComponentStatus{},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 13 08:10:29 UTC 2023 - 5.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java
*/ @GwtCompatible @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. public class MultimapValuesTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> { public void testValues() { List<V> expected = Lists.newArrayList(); for (Entry<K, V> entry : getSampleElements()) { expected.add(entry.getValue()); } assertEqualIgnoringOrder(expected, multimap().values()); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 2.5K bytes - Viewed (0) -
src/maps/iter_test.go
var got []int for k := range Keys(m) { got = append(got, k) } slices.Sort(got) if !slices.Equal(got, want) { t.Errorf("Keys(%v) = %v, want %v", m, got, want) } } } func TestValues(t *testing.T) { for size := 0; size < 10; size++ { var want []int m := make(map[int]int) for i := range size { m[i] = i want = append(want, i) } var got []int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:44:19 UTC 2024 - 1.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java
*/ @GwtCompatible @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. public class MultimapValuesTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> { public void testValues() { List<V> expected = Lists.newArrayList(); for (Entry<K, V> entry : getSampleElements()) { expected.add(entry.getValue()); } assertEqualIgnoringOrder(expected, multimap().values()); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 2.5K bytes - Viewed (0) -
test/typeparam/maps.go
} got2 := _Keys(m2) sort.Ints(got2) if !_SliceEqual(got2, want) { panic(fmt.Sprintf("_Keys(%v) = %v, want %v", m2, got2, want)) } } func TestValues() { got1 := _Values(m1) want1 := []int{2, 4, 8, 16} sort.Ints(got1) if !_SliceEqual(got1, want1) { panic(fmt.Sprintf("_Values(%v) = %v, want %v", m1, got1, want1)) } got2 := _Values(m2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 5.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/types_test.go
} expT, err := mp.ExprType() if err != nil { t.Errorf("fail to get cel type: %s", err) } if expT.GetMapType() == nil { t.Errorf("got %v, wanted CEL map type", expT) } } func testValue(t *testing.T, id int64, val interface{}) *DynValue { t.Helper() dv, err := NewDynValue(id, val) if err != nil { t.Fatalf("NewDynValue(%d, %v) failed: %v", id, val, err) } return dv
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 2.1K bytes - Viewed (0) -
maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilderTest.java
@BeforeEach void onSetup() { // MockitoAnnotations.openMocks(this); Map<String, String> envVarMap = new HashMap<>(); envVarMap.put("testKey", "testValue"); envVarMap.put("testSpecialCharactersKey", "<test&Value>"); OperatingSystemUtils.setEnvVarSource(new TestEnvVarSource(envVarMap)); toolchainBuilder = new DefaultToolchainsBuilder(
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Mar 25 10:50:01 UTC 2024 - 14.4K bytes - Viewed (0)