- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for expectError (0.15 sec)
-
pkg/bootstrap/option/instances_test.go
"istio.io/istio/pkg/model" ) // nolint: lll func TestOptions(t *testing.T) { cases := []struct { testName string key string option option.Instance expectError bool expected any }{ { testName: "proxy config", key: "config", option: option.ProxyConfig(&model.NodeMetaProxyConfig{DiscoveryAddress: "fake"}),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 20:38:02 UTC 2024 - 22.4K bytes - Viewed (0) -
tensorflow/c/while_loop_test.cc
Init(1); params_->body_outputs[0] = params_->body_inputs[0]; ExpectError(TF_INVALID_ARGUMENT, "TF_WhileParams `cond_output` field isn't set"); } TEST_F(CApiWhileLoopTest, WrongCondOutputType) { Init(1); params_->cond_output = params_->cond_inputs[0]; params_->body_outputs[0] = params_->body_inputs[0]; ExpectError(TF_INVALID_ARGUMENT,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 11 06:05:56 UTC 2024 - 15.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/egressselector/config_test.go
} }) } } func TestValidateEgressSelectorConfiguration(t *testing.T) { testcases := []struct { name string expectError bool contents *apiserver.EgressSelectorConfiguration }{ { name: "direct-valid", expectError: false, contents: &apiserver.EgressSelectorConfiguration{ TypeMeta: metav1.TypeMeta{ Kind: "", APIVersion: "", },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 05 02:24:38 UTC 2023 - 15.1K bytes - Viewed (0) -
pkg/registry/core/pod/storage/eviction_test.go
} _, err := evictionRest.Create(testContext, name, evictionCopy, nil, &metav1.CreateOptions{}) gotErr := errToString(err) if gotErr != tc.expectError { t.Errorf("error mismatch: expected %v, got %v; name %v", tc.expectError, gotErr, pod.Name) return } if tc.badNameInURL { if err == nil { t.Error("expected error here, but got nil") return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 09:26:37 UTC 2024 - 40K bytes - Viewed (0) -
platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceTest.groovy
} then: !fromCache } def "load reports recoverable error on http code #httpCode"(int httpCode) { expectError(httpCode, 'GET') when: cache.load(key) { input -> throw new RuntimeException("That should never be called") } then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Feb 05 16:15:24 UTC 2024 - 12.4K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/init_test.go
flags map[string]string validate func(*testing.T, *initData) expectError bool }{ // Init data passed using flags { name: "pass without any flag (use defaults)", }, { name: "fail if unknown feature gates flag are passed", flags: map[string]string{ options.FeatureGatesString: "unknown=true", }, expectError: true, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 19 12:26:20 UTC 2024 - 11.9K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/join_test.go
testCases := []struct { name string args []string flags map[string]string validate func(*testing.T, *joinData) expectError bool expectWarn bool }{ // Join data passed using flags { name: "fails if no discovery method set", expectError: true, }, { name: "fails if both file and bootstrap discovery methods set", args: []string{"1.2.3.4:6443"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 19 12:26:20 UTC 2024 - 12.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/fieldselector_test.go
list, err := shirtClient.List(ctx, metav1.ListOptions{FieldSelector: tc.fieldSelector}) if len(tc.expectError) > 0 { if err == nil { t.Fatal("Expected error but got none") } if tc.expectError != err.Error() { t.Errorf("Expected error '%s' but got '%s'", tc.expectError, err.Error()) } return } if err != nil { t.Fatal(err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 06 15:53:03 UTC 2024 - 27K bytes - Viewed (0) -
pkg/kubelet/volumemanager/volume_manager_test.go
tests := []struct { name string pvMode, podMode v1.PersistentVolumeMode expectMount bool expectError bool }{ { name: "filesystem volume", pvMode: v1.PersistentVolumeFilesystem, podMode: v1.PersistentVolumeFilesystem, expectMount: true, expectError: false, }, { name: "block volume", pvMode: v1.PersistentVolumeBlock,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 14.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/authentication_test.go
header bool apiAuds []string respAuds []string expectMetric bool expectOk bool expectError bool }{ { name: "no api audience and no audience in response", header: true, apiAuds: nil, respAuds: nil, expectOk: true, expectError: false, }, { name: "api audience matching response audience", header: true,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 20.5K bytes - Viewed (0)