- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 5,437 for expectUsed (0.15 sec)
-
test/fixedbugs/issue31060.go
c = 1.0i _ = ^f // ERROR "invalid operation|expected integer" _ = ^c // ERROR "invalid operation|expected integer" _ = f % f // ERROR "invalid operation|expected integer" _ = c % c // ERROR "invalid operation|expected integer" _ = f & f // ERROR "invalid operation|expected integer" _ = c & c // ERROR "invalid operation|expected integer" _ = f | f // ERROR "invalid operation|expected integer"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 17:46:55 UTC 2019 - 901 bytes - Viewed (0) -
pkg/proxy/ipvs/testing/fake_test.go
fake.SetLocalAddresses("eth0", "1.2.3.4") var expected, addr sets.Set[string] expected = sets.New("1.2.3.4") addr, _ = fake.GetLocalAddresses("eth0") if !addr.Equal(expected) { t.Errorf("Unexpected mismatch, expected: %v, got: %v", expected, addr) } addr, _ = fake.GetAllLocalAddresses() if !addr.Equal(expected) { t.Errorf("Unexpected mismatch, expected: %v, got: %v", expected, addr) } fake.SetLocalAddresses("lo", "127.0.0.1")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/set_generic_test.go
for _, test := range tests { union := test.s1.Union(test.s2) if union.Len() != test.expected.Len() { t.Errorf("Expected union.Len()=%d but got %d", test.expected.Len(), union.Len()) } if !union.Equal(test.expected) { t.Errorf("Expected union.Equal(expected) but not true. union:%v expected:%v", sets.List(union), sets.List(test.expected)) } } } func TestIntersection(t *testing.T) { tests := []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 10 09:03:44 UTC 2023 - 7.7K bytes - Viewed (0) -
pkg/kubelet/cm/cgroup_manager_linux_test.go
t.Errorf("Unexpected result, input: %v, expected: %v, actual: %v", testCase.input, testCase.expected, actual) } } } func TestParseSystemdToCgroupName(t *testing.T) { testCases := []struct { input string expected CgroupName }{ { input: "/test", expected: []string{"test"}, }, { input: "/test.slice", expected: []string{"test"}, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 24 18:21:21 UTC 2023 - 6.1K bytes - Viewed (0) -
maven-di/src/test/java/org/apache/maven/di/impl/TypeUtilsTest.java
Type expected = new Key<Set<Integer>>() {}.getType(); assertEquals(expected, simplifyType(type)); } { Type type = new Key<Set<? extends Set<? extends Set<? extends Integer>>>>() {}.getType(); Type expected = new Key<Set<Set<Set<Integer>>>>() {}.getType(); assertEquals(expected, simplifyType(type)); } {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Feb 09 17:13:31 UTC 2024 - 7K bytes - Viewed (0) -
pkg/proxy/util/linebuffer_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 14 12:38:25 UTC 2023 - 3.9K bytes - Viewed (0) -
cmd/kubeadm/app/images/images_test.go
} } func TestGetKubernetesImage(t *testing.T) { var tests = []struct { image string expected string cfg *kubeadmapi.ClusterConfiguration }{ { image: constants.KubeAPIServer, expected: GetGenericImage(gcrPrefix, "kube-apiserver", expected), cfg: &kubeadmapi.ClusterConfiguration{ ImageRepository: gcrPrefix, KubernetesVersion: testversion, }, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 06:33:37 UTC 2023 - 8.9K bytes - Viewed (0) -
pkg/env/var_test.go
} v = ev.Get() if v != 123.0 { t.Errorf("Expected 123.0, got %v", v) } _ = os.Setenv(testVar, "789") ev = RegisterFloatVar(testVar, 123.0, "") v, present = ev.Lookup() if v != 789 { t.Errorf("Expected 789.0, got %v", v) } if !present { t.Errorf("Expected present") } v = ev.Get() if v != 789 { t.Errorf("Expected 789.0, got %v", v) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 08 16:43:05 UTC 2023 - 8.1K bytes - Viewed (0) -
pkg/client/tests/fake_client_test.go
t.Fatalf("Pods.List: %s", err) } if actual, expected := len(allPods.Items), 2; expected != actual { t.Fatalf("Expected %d pods to match, got %d", expected, actual) } allSAs, err := tc.CoreV1().ServiceAccounts(metav1.NamespaceAll).List(context.TODO(), metav1.ListOptions{}) if err != nil { t.Fatalf("ServiceAccounts.List: %s", err) } if actual, expected := len(allSAs.Items), 5; expected != actual {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Feb 08 17:30:21 UTC 2020 - 5.6K bytes - Viewed (0) -
cmd/kubeadm/app/constants/constants_test.go
manifestsDir: "/etc/bar/", expected: "/etc/bar/foo.yaml", }, } for _, rt := range tests { t.Run(rt.componentName, func(t *testing.T) { actual := GetStaticPodFilepath(rt.componentName, rt.manifestsDir) expected := filepath.FromSlash(rt.expected) if actual != expected { t.Errorf( "failed GetStaticPodFilepath:\n\texpected: %s\n\t actual: %s", rt.expected, actual, ) } })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 03:26:36 UTC 2024 - 10.7K bytes - Viewed (0)