- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 2,009 for expected_ (0.14 sec)
-
src/cmd/internal/buildid/buildid_test.go
} defer os.Remove(f) id, err := ReadFile(f) if id != expectedID || err != nil { t.Errorf("ReadFile(testdata/%s) = %q, %v, want %q, nil", f, id, err, expectedID) } old := readSize readSize = 2048 id, err = ReadFile(f) readSize = old if id != expectedID || err != nil { t.Errorf("ReadFile(%s) [readSize=2k] = %q, %v, want %q, nil", f, id, err, expectedID) } data, err := os.ReadFile(f) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:28 UTC 2024 - 6.6K bytes - Viewed (0) -
pkg/test/framework/label/labels_test.go
{filter: "postsubmit", labels: NewSet(CustomSetup), expected: false}, {filter: "postsubmit", labels: NewSet(CustomSetup, Postsubmit), expected: true}, {filter: "postsubmit,customsetup", labels: NewSet(Postsubmit, CustomSetup), expected: true}, {filter: "postsubmit,customsetup", labels: NewSet(Postsubmit), expected: false}, {filter: "+postsubmit,+customsetup", labels: NewSet(Postsubmit), expected: false},
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 18 17:08:05 UTC 2021 - 3.2K bytes - Viewed (0) -
platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApiModelChecker.groovy
*/ class ToolingApiModelChecker { static <T> void checkModel(T actual, T expected, List<Object> specs) { assert (actual == null) == (expected == null) if (expected == null) { return } if (expected instanceof Collection) { assert actual instanceof Collection checkCollection(actual, expected) { actualItem, expectedItem ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Dec 15 10:26:50 UTC 2023 - 5.3K bytes - Viewed (0) -
pilot/pkg/util/network/ip_test.go
if tc.errStr != "" { t.Errorf("[%s] no error seen, but expected failure: %s", tc.name, tc.errStr) } else if actual != tc.expected { t.Errorf("[%s] expected address %q, got %q", tc.name, tc.expected, actual) } } } } func TestAllIPv6(t *testing.T) { tests := []struct { name string addrs []string expected bool }{ { name: "ipv4 only",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Dec 08 16:24:15 UTC 2022 - 6.7K bytes - Viewed (0) -
pkg/kubelet/cm/cgroup_manager_test.go
if actual != nil && test.expected == nil { t.Errorf("Unexpected success, input: %v, expected: %v, actual: %v, err: %v", test.input, test.expected, actual, err) } if actual == nil && test.expected != nil { t.Errorf("Unexpected failure, input: %v, expected: %v, actual: %v, err: %v", test.input, test.expected, actual, err) } if (actual == nil && test.expected == nil) || reflect.DeepEqual(*actual, *test.expected) { continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 2.1K bytes - Viewed (0) -
cmd/kubeadm/test/cmd/init_test.go
expected: true, }, } for _, rt := range initTest { t.Run(rt.name, func(t *testing.T) { _, _, _, err := runKubeadmInit(t, rt.args) if (err == nil) != rt.expected { t.Fatalf(dedent.Dedent(` CmdInitToken test case %q failed with an error: %v command 'kubeadm init %s' expected: %t err: %t `), rt.name, err, rt.args, rt.expected, (err == nil),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 18 01:03:09 UTC 2023 - 6.4K 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) -
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) -
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) -
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)