- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for expectVal (0.2 sec)
-
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) -
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) -
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) -
src/encoding/xml/marshal_test.go
{Value: &Plain{uint32(42)}, ExpectXML: `<Plain><V>42</V></Plain>`}, {Value: &Plain{float32(1.25)}, ExpectXML: `<Plain><V>1.25</V></Plain>`}, {Value: &Plain{float64(1.25)}, ExpectXML: `<Plain><V>1.25</V></Plain>`}, {Value: &Plain{uintptr(0xFFDD)}, ExpectXML: `<Plain><V>65501</V></Plain>`}, {Value: &Plain{"gopher"}, ExpectXML: `<Plain><V>gopher</V></Plain>`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 18:46:41 UTC 2024 - 66K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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)