Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 3,911 for expected_ (0.14 sec)

  1. 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)
  2. tensorflow/compiler/mlir/tfrt/tests/analysis/cost_analysis.mlir

        // expected-remark@+1 {{Cost: 1}}
        %9 = "tf.Const"() {value = dense<> : tensor<0x!tf_type.string>} : () -> tensor<0x!tf_type.string>
        // expected-remark@+1 {{Cost: 1}}
        %10 = "tf.Const"() {value = dense<1> : tensor<i32>} : () -> tensor<i32>
        // expected-remark@+1 {{Cost: 1}}
        %11 = "tf.Const"() {value = dense<-1> : tensor<i32>} : () -> tensor<i32>
        // expected-remark@+1 {{Cost: 19}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 14 15:35:49 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top