- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 93 for expectError (0.11 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) -
pkg/util/removeall/removeall_test.go
} f.Close() } } mounter := &fakeMounter{} err = RemoveAllOneFilesystem(mounter, tmpDir) if err == nil && test.expectError { t.Errorf("test %q failed: expected error and got none", test.name) } if err != nil && !test.expectError { t.Errorf("test %q failed: unexpected error: %v", test.name, err) } } } func TestRemoveDirsOneFilesystem(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 15 20:35:13 UTC 2024 - 5.2K bytes - Viewed (0) -
pkg/registry/storage/csistoragecapacity/strategy_test.go
update: getValidCSIStorageCapacity("test", ""), }, { name: "name change", expectError: true, old: getValidCSIStorageCapacity("a", ""), update: getValidCSIStorageCapacity("b", ""), }, { name: "storage class name change", expectError: true, old: getValidCSIStorageCapacity("test", ""), update: func() *storage.CSIStorageCapacity {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 5.1K bytes - Viewed (0) -
pkg/volume/fc/fc_util_test.go
} devicePath, err := searchDisk(fakeMounter) if test.expectError && err == nil { t.Errorf("expected error but got none") } if !test.expectError && err != nil { t.Errorf("got unexpected error: %s", err) } // if no disk matches input wwn and lun, exit if devicePath == "" && !test.expectError { t.Errorf("no fc disk found") } if devicePath != test.disk {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 23 08:36:01 UTC 2022 - 6.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/matcher_test.go
if matchResult.Error != nil { if len(tc.expectError) == 0 { t.Fatal(matchResult.Error) } if !strings.Contains(matchResult.Error.Error(), tc.expectError) { t.Fatalf("expected error containing %q, got %s", tc.expectError, matchResult.Error.Error()) } return } else if len(tc.expectError) > 0 { t.Fatal("expected error but did not get one") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 15 00:53:08 UTC 2023 - 8.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/httpstream/httpstream_test.go
tests := map[string]struct { clientProtocols []string serverProtocols []string expectedProtocol string expectError bool }{ "no common protocol": { clientProtocols: []string{"c"}, serverProtocols: []string{"a", "b"}, expectedProtocol: "", expectError: true, }, "no common protocol with comma separated list": { clientProtocols: []string{"c, d"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:33:38 UTC 2023 - 4.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/tracing_test.go
testcases := []struct { name string expectError bool contents *TracingOptions }{ { name: "nil-valid", expectError: false, }, { name: "empty-valid", expectError: false, contents: &TracingOptions{}, }, { name: "path-valid", expectError: false, contents: &TracingOptions{ConfigFile: "/"}, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 05 02:24:38 UTC 2023 - 4.6K 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) -
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion_test.go
expected *spec.Schema expectError bool expectDiff bool }{ { name: "id", in: &apiextensions.JSONSchemaProps{ ID: testStr, }, expectError: true, // rejected by kube validation and NewStructural }, { name: "$schema", in: &apiextensions.JSONSchemaProps{ Schema: "test", }, expectError: true, // rejected by kube validation and NewStructural
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 02 14:34:26 UTC 2023 - 23.2K bytes - Viewed (0)