Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ExpectOK (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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