Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for ExpectOK (0.14 sec)

  1. tensorflow/compiler/aot/codegen_test.cc

      }
    };
    
    TEST_F(ParseCppClassTest, ParseOK) {
      ExpectOK("MyClass", "MyClass", {});
      ExpectOK("_MyClass", "_MyClass", {});
      ExpectOK("a::MyClass", "MyClass", {"a"});
      ExpectOK("a::foo::MyClass", "MyClass", {"a", "foo"});
      ExpectOK("a::foo::b::MyClass", "MyClass", {"a", "foo", "b"});
      ExpectOK("a::foo::b::bar::MyClass", "MyClass", {"a", "foo", "b", "bar"});
      ExpectOK("foo::MyClass", "MyClass", {"foo"});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 01 02:13:40 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook_v1beta1_test.go

    		description string
    
    		token string
    		allow bool
    		code  int
    
    		expectError bool
    		expectOk    bool
    		expectCalls int
    	}{
    		{
    			description: "t0k3n, 500 error, retries and fails",
    
    			token: "t0k3n",
    			allow: false,
    			code:  500,
    
    			expectError: true,
    			expectOk:    false,
    			expectCalls: 5,
    		},
    		{
    			description: "t0k3n, 404 error, fails (but no retry)",
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 00:47:42 UTC 2022
    - 19.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509_test.go

    		Opts x509.VerifyOptions
    		User UserConversion
    
    		ExpectUserName string
    		ExpectGroups   []string
    		ExpectOK       bool
    		ExpectErr      bool
    	}{
    		"non-tls": {
    			Insecure: true,
    
    			ExpectOK:  false,
    			ExpectErr: false,
    		},
    
    		"tls, no certs": {
    			ExpectOK:  false,
    			ExpectErr: false,
    		},
    
    		"self signed": {
    			Opts:  getDefaultVerifyOptions(t),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 23:23:03 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook_v1_test.go

    		description string
    
    		token string
    		allow bool
    		code  int
    
    		expectError bool
    		expectOk    bool
    		expectCalls int
    	}{
    		{
    			description: "t0k3n, 500 error, retries and fails",
    
    			token: "t0k3n",
    			allow: false,
    			code:  500,
    
    			expectError: true,
    			expectOk:    false,
    			expectCalls: 5,
    		},
    		{
    			description: "t0k3n, 404 error, fails (but no retry)",
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 00:47:42 UTC 2022
    - 19.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/resource/math_test.go

    		for _, b := range []int64{1, 2, 10, 100, 1000, mostPositive} {
    			expect, expectOk := int64Multiply(a, b)
    
    			c, ok := int64MultiplyScale(a, b)
    			if c != expect {
    				t.Errorf("%d*%d: unexpected result: %d", a, b, c)
    			}
    			if ok != expectOk {
    				t.Errorf("%d*%d: unexpected overflow: %t", a, b, ok)
    			}
    		}
    		for _, test := range []struct {
    			base int64
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 29 20:41:44 UTC 2017
    - 5.1K bytes
    - Viewed (0)
  6. tensorflow/c/while_loop_test.cc

            << "TF_NewWhile() altered graph";
    
        params_->name = "test_loop";
    
        // Initialize outputs_ so we can easily detect errors/bugs
        outputs_.resize(ninputs, {nullptr, -1});
      }
    
      void ExpectOK() {
        TF_FinishWhile(params_.get(), s_, &outputs_[0]);
        EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      }
    
      void ExpectError(TF_Code expected_code, const string& expected_msg) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 06:05:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/filters/authentication_test.go

    		name         string
    		header       bool
    		apiAuds      []string
    		respAuds     []string
    		expectMetric bool
    		expectOk     bool
    		expectError  bool
    	}{
    		{
    			name:        "no api audience and no audience in response",
    			header:      true,
    			apiAuds:     nil,
    			respAuds:    nil,
    			expectOk:    true,
    			expectError: false,
    		},
    		{
    			name:        "api audience matching response audience",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  8. src/net/dial_test.go

    			c, err := sd.dialParallel(context.Background(), primaries, fallbacks)
    			elapsed := time.Since(startTime)
    
    			if c != nil {
    				c.Close()
    			}
    
    			if tt.expectOk && err != nil {
    				t.Errorf("#%d: got %v; want nil", i, err)
    			} else if !tt.expectOk && err == nil {
    				t.Errorf("#%d: got nil; want non-nil", i)
    			}
    
    			if elapsed < tt.expectElapsed || elapsed >= forever {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. src/reflect/all_test.go

    	// things like 'int64' converting to '*int'.
    	for t1 := range all {
    		for t2 := range all {
    			expectOK := t1 == t2 || canConvert[[2]Type{t1, t2}] || t2.Kind() == Interface && t2.NumMethod() == 0
    			if ok := t1.ConvertibleTo(t2); ok != expectOK {
    				t.Errorf("(%s).ConvertibleTo(%s) = %v, want %v", t1, t2, ok, expectOK)
    			}
    		}
    	}
    }
    
    func TestConvertPanic(t *testing.T) {
    	s := make([]byte, 4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top