- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 4,385 for expected_ (0.21 sec)
-
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/config/gateway/gateway_test.go
Number: 80, Protocol: string(protocol.TCP), Name: "tcp", }, }, expected: false, }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { actual := IsTLSServer(tc.server) if actual != tc.expected { t.Errorf("IsTLSServer(%s) => %t, want %t", tc.server, actual, tc.expected) } }) } } func TestIsHTTPServer(t *testing.T) { cases := []struct {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 26 05:53:25 UTC 2022 - 10.5K 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) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/yaml/meta_test.go
name string input string expected *schema.GroupVersionKind errFn func(error) bool }{ { name: "YAMLSuccessfullyInterpretVK", input: `apiVersion: v1 kind: Service`, expected: &schema.GroupVersionKind{Version: "v1", Kind: "Service"}, }, { name: "YAMLSuccessfullyInterpretGVK", input: `apiVersion: core/v2 kind: Deployment`,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 27 09:44:59 UTC 2019 - 4.2K 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/test/framework/components/echo/check/checkers.go
if r.Hostname != expected { return fmt.Errorf("expected hostname %s, received %s", expected, r.Hostname) } return nil }) } func Protocol(expected string) echo.Checker { return Each(func(r echoClient.Response) error { if r.Protocol != expected { return fmt.Errorf("expected protocol %s, received %s", expected, r.Protocol) } return nil }) } func Alpn(expected string) echo.Checker {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 03 16:19:07 UTC 2023 - 17.5K 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)