Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for expectFail (0.47 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. 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)
  5. 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)
  6. 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)
  7. 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)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    		}
    
    		if gotFair != expectFair {
    			uss.t.Errorf("%s client %d last=%v expectFair=%v margin=%v got an Average of %v but the expected average was %v", uss.name, i, last, expectFair, margin, averages[i], expectedAverage)
    		} else {
    			uss.t.Logf("%s client %d last=%v expectFair=%v margin=%v got an Average of %v and the expected average was %v", uss.name, i, last, expectFair, margin, averages[i], expectedAverage)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          called.set(true);
        }
    
        public void expectCall() {
          assertFalse("expectCall is already true", expectCall);
          expectCall = true;
        }
    
        public boolean wasCalled() {
          return called.get();
        }
      }
    
      public void testAllAsList() throws Exception {
        // Create input and output
        SettableFuture<String> future1 = SettableFuture.create();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          called.set(true);
        }
    
        public void expectCall() {
          assertFalse("expectCall is already true", expectCall);
          expectCall = true;
        }
    
        public boolean wasCalled() {
          return called.get();
        }
      }
    
      public void testAllAsList() throws Exception {
        // Create input and output
        SettableFuture<String> future1 = SettableFuture.create();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
Back to top