- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for expectFail (0.25 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/object/matcher_test.go
attrs admission.Attributes expectCall bool }{ { name: "empty object selector matches everything", objectSelector: &metav1.LabelSelector{}, attrs: admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{}, "", "name", schema.GroupVersionResource{}, "", admission.Create, &metav1.CreateOptions{}, false, nil), expectCall: true, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 26 00:41:14 UTC 2022 - 4.7K bytes - Viewed (0) -
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)