- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 41 for expectError (0.52 sec)
-
pkg/volume/util/subpath/subpath_windows_test.go
tests := []struct { volumePath string subPath string expectError bool symlinkTarget string }{ { volumePath: testingVolumePath, subPath: ``, expectError: true, symlinkTarget: "", }, { volumePath: testingVolumePath, subPath: filepath.Join(testingVolumePath, `x`), expectError: false, symlinkTarget: "", }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 13.8K bytes - Viewed (0) -
plugin/pkg/admission/runtimeclass/admission_test.go
tests := []struct { name string expectError bool runtimeClass *RuntimeClass }{ { name: "runtimeClass enabled, success", expectError: false, runtimeClass: newRuntimeClassForTest(true, nil, true, nil), }, { name: "runtimeClass enabled, no lister", expectError: true, runtimeClass: newRuntimeClassForTest(false, nil, true, nil), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 17 01:30:14 UTC 2022 - 17.5K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath_linux_test.go
test.prepare(base) pathToCreate := filepath.Join(base, test.path) err = doSafeMakeDir(pathToCreate, base, test.perm) if err != nil && !test.expectError { t.Fatal(err) } if err != nil { t.Logf("got error: %s", err) } if err == nil && test.expectError { t.Fatalf("expected error, got none") } if test.checkPath != "" { st, err := os.Stat(filepath.Join(base, test.checkPath))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 10 16:52:55 UTC 2021 - 37.3K bytes - Viewed (0) -
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) -
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) -
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)