Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for expectFail (0.3 sec)

  1. tensorflow/compiler/aot/codegen_test.cc

    }
    
    TEST_F(ParseCppClassTest, ParseFail) {
      ExpectFail("");
      ExpectFail("::");
      ExpectFail("0");
      ExpectFail("a.b");
      ExpectFail("a:b");
      ExpectFail(":foo::bar");
      ExpectFail("good::.bad");
      ExpectFail("good:::bad");
      ExpectFail("good::bad::");
      ExpectFail("good::::bad");
      ExpectFail("::::bad");
      ExpectFail("good:: bad");
      ExpectFail("good::0bad");
    }
    
    static void CompareWithGoldenFile(
    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. security/pkg/k8s/chiron/utils_test.go

    		secretNameSpace string
    		expectFail      bool
    	}{
    		"submitting a CSR without duplicate should succeed": {
    			gracePeriodRatio: 0.6,
    			k8sCaCertFile:    "./test-data/example-ca-cert.pem",
    			dnsNames:         []string{"foo"},
    			secretNames:      []string{"istio.webhook.foo"},
    			secretName:       "mock-secret",
    			secretNameSpace:  "mock-secret-namespace",
    			expectFail:       false,
    		},
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 03:58:11 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. pkg/volume/csi/nodeinfomanager/nodeinfomanager_test.go

    	existingNode     *v1.Node
    	existingCSINode  *storage.CSINode
    	inputNodeID      string
    	inputTopology    map[string]string
    	inputVolumeLimit int64
    	expectedNode     *v1.Node
    	expectedCSINode  *storage.CSINode
    	expectFail       bool
    	hasModified      bool
    }
    
    type nodeIDMap map[string]string
    type topologyKeyMap map[string][]string
    type labelMap map[string]string
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 17 02:02:59 UTC 2022
    - 34.3K bytes
    - Viewed (0)
  4. pkg/apis/core/v1/helper/helpers_test.go

    	testCases := []struct {
    		resourceName v1.ResourceName
    		expectVal    bool
    	}{
    		{
    			resourceName: "pod.alpha.kubernetes.io/opaque-int-resource-foo",
    			expectVal:    true,
    		},
    		{
    			resourceName: "kubernetes.io/resource-foo",
    			expectVal:    true,
    		},
    		{
    			resourceName: "foo",
    			expectVal:    true,
    		},
    		{
    			resourceName: "a/b",
    			expectVal:    false,
    		},
    		{
    			resourceName: "",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 23:03:54 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook_test.go

    				t.Fatalf("expected error %q, got no error and %#v", testcase.expectErr, invocation)
    			}
    
    			if invocation == nil {
    				if testcase.expectCall {
    					t.Fatal("expected invocation, got nil")
    				}
    				return
    			}
    
    			if !testcase.expectCall {
    				t.Fatal("unexpected invocation")
    			}
    
    			if invocation.Kind != testcase.expectCallKind {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 28 19:30:04 UTC 2023
    - 32K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr_test.go

    		input     IntOrString
    		total     int
    		roundUp   bool
    		expectErr bool
    		expectVal int
    	}{
    		{
    			input:     FromInt32(123),
    			expectErr: false,
    			expectVal: 123,
    		},
    		{
    			input:     FromString("90%"),
    			total:     100,
    			roundUp:   true,
    			expectErr: false,
    			expectVal: 90,
    		},
    		{
    			input:     FromString("90%"),
    			total:     95,
    			roundUp:   true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  7. pkg/util/async/bounded_frequency_runner_test.go

    var minInterval = 1 * time.Second
    var maxInterval = 10 * time.Second
    
    func waitForReset(name string, t *testing.T, timer *fakeTimer, obj *receiver, expectCall bool, expectNext time.Duration) {
    	upd := <-timer.updated // wait for stop
    	checkReceiver(name, t, obj, expectCall)
    	checkReceiver(name, t, obj, false) // prove post-condition
    	checkTimer(name, t, upd, false, 0)
    	upd = <-timer.updated // wait for reset
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 15 09:36:26 UTC 2022
    - 12.5K bytes
    - Viewed (0)
Back to top