Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 7,394 for expectOk (0.17 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

    				t.Errorf("Webhook returned HTTP %d, expected error=%v, but got error %v", testcase.code, testcase.expectError, err)
    			}
    			if serv.called != testcase.expectCalls {
    				t.Errorf("Expected %d calls, got %d", testcase.expectCalls, serv.called)
    			}
    			if ok != testcase.expectOk {
    				t.Errorf("Expected ok=%v, got %v", testcase.expectOk, ok)
    			}
    		})
    	}
    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

    		if testCase.ExpectErr && err == nil {
    			t.Errorf("%s: Expected error, got none", k)
    			continue
    		}
    		if !testCase.ExpectErr && err != nil {
    			t.Errorf("%s: Got unexpected error: %v", k, err)
    			continue
    		}
    
    		if testCase.ExpectOK != ok {
    			t.Errorf("%s: Expected ok=%v, got %v", k, testCase.ExpectOK, ok)
    			continue
    		}
    
    		if testCase.ExpectOK {
    			if testCase.ExpectUserName != resp.User.GetName() {
    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

    				t.Errorf("Webhook returned HTTP %d, expected error=%v, but got error %v", testcase.code, testcase.expectError, err)
    			}
    			if serv.called != testcase.expectCalls {
    				t.Errorf("Expected %d calls, got %d", testcase.expectCalls, serv.called)
    			}
    			if ok != testcase.expectOk {
    				t.Errorf("Expected ok=%v, got %v", testcase.expectOk, ok)
    			}
    		})
    	}
    }
    
    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

      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      params_->body_outputs[0] = {input1_add, 0};
    
      params_->body_outputs[1] = inner_outputs[1];
    
      // Finalize outer graph
      ExpectOK();
    
      // Check for a few expected nodes
      const char* node_name = "test_loop/cond/scalar";
      EXPECT_TRUE(TF_GraphOperationByName(graph_, node_name) != nullptr);
      node_name = "test_loop/body/add";
    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)
  10. fuzzing/fuzzingserver-update-expected.sh

    cd "$SCRIPT_DIR"
    
    if [ ! -f target/fuzzingserver-actual.txt ]; then
      echo "File not found. Did you run the Autobahn test script?"
      exit 1
    fi
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Mar 26 02:01:32 UTC 2019
    - 275 bytes
    - Viewed (0)
Back to top