Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for expectFail (0.26 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. pkg/version/cobra_test.go

    			v.cmd.SetArgs(strings.Split(v.args, " "))
    			var out bytes.Buffer
    			v.cmd.SetOut(&out)
    			v.cmd.SetErr(&out)
    			err := v.cmd.Execute()
    
    			if !v.expectFail && err != nil {
    				t.Errorf("Got %v, expecting success", err)
    			}
    			if v.expectFail && err == nil {
    				t.Errorf("Expected failure, got success")
    			}
    		})
    	}
    }
    
    var meshEmptyVersion = MeshInfo{}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 29 14:15:26 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  3. 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)
  4. pkg/version/version_test.go

    			false,
    			BuildInfo{},
    		},
    	}
    
    	for _, v := range cases {
    		t.Run(v.name, func(t *testing.T) {
    			got, err := NewBuildInfoFromOldString(v.in)
    			if v.expectFail && err == nil {
    				t.Errorf("Expected failure, got success")
    			}
    			if !v.expectFail && err != nil {
    				t.Errorf("Got %v, expected success", err)
    			}
    
    			if got != v.want {
    				t.Errorf("Got %v, expected %v", got, v.want)
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/internal/testdir/testdir_test.go

    	testCommon
    	*testing.T
    	// dir and goFile identify the test case.
    	// For example, "fixedbugs", "bug000.go".
    	dir, goFile string
    }
    
    // expectFail reports whether the (overall) test recipe is
    // expected to fail under the current build+test configuration.
    func (t test) expectFail() bool {
    	failureSets := []map[string]bool{types2Failures}
    
    	// Note: gccgo supports more 32-bit architectures than this, but
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  7. pkg/util/flag/flags_test.go

    			expectVal: "0.0.0.0",
    		},
    		{
    			desc:      "valid ipv4 2",
    			argc:      "blah --ipport=127.0.0.1",
    			expectVal: "127.0.0.1",
    		},
    
    		{
    			desc:      "invalid IP",
    			argc:      "blah --ipport=invalidip",
    			expectErr: true,
    			expectVal: defaultIPPort,
    		},
    		{
    			desc:      "valid ipv4 with port",
    			argc:      "blah --ipport=0.0.0.0:8080",
    			expectVal: "0.0.0.0:8080",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 14 10:45:23 UTC 2021
    - 8.8K bytes
    - Viewed (0)
  8. 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)
  9. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/AssignImmutableWorkspaceStepConcurrencyTest.groovy

        private static class MockStep implements Step<WorkspaceContext, CachingResult> {
            BiFunction<UnitOfWork, WorkspaceContext, CachingResult> expectCall
    
            @Override
            CachingResult execute(UnitOfWork work, WorkspaceContext context) {
                def call = expectCall
                expectCall = null
                return call.apply(work, context)
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:46:25 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        private boolean expectCall = false;
        private final CountDownLatch calledCountDown = new CountDownLatch(1);
    
        @Override
        public void run() {
          assertTrue("Listener called before it was expected", expectCall);
          assertFalse("Listener called more than once", wasCalled());
          calledCountDown.countDown();
        }
    
        public void expectCall() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 9.7K bytes
    - Viewed (0)
Back to top