- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for errString (0.16 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest.go
// it does not look like a yaml strict decoding error. func parseYAMLWarnings(errString string) []string { var trimmedString string if trimmedShortString := strings.TrimPrefix(errString, shortPrefix); len(trimmedShortString) < len(errString) { trimmedString = trimmedShortString } else if trimmedLongString := strings.TrimPrefix(errString, longPrefix); len(trimmedLongString) < len(errString) { trimmedString = trimmedLongString } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 17K bytes - Viewed (0) -
pilot/pkg/credentials/kube/secrets_test.go
} if tt.expectedDockerError != "" && tt.expectedDockerError != errString(err) { t.Errorf("got docker err %q, wanted %q", errString(err), tt.expectedDockerError) } }) } } func errString(e error) string { if e == nil { return "" } return e.Error() } func allowIdentities(c kube.Client, identities ...string) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 23 19:18:21 UTC 2024 - 18.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/converter_test.go
} var errString string if err != nil { errString = err.Error() } missedErrs := []string{} failed := false for _, expected := range tc.expectedErrs { if !strings.Contains(errString, expected) { failed = true missedErrs = append(missedErrs, expected) } else { errString = strings.Replace(errString, expected, "", 1) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 16:02:13 UTC 2023 - 22.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/envelope_test.go
key2, err2 := generateCacheKey(tc2.encryptedDEKSourceType, tc2.encryptedDEKSource, tc2.keyID, tc2.annotations) if err1 != nil || err2 != nil { t.Errorf("generateCacheKey() want err=nil, got err1=%q, err2=%q", errString(err1), errString(err2)) } if bytes.Equal(key1, key2) != reflect.DeepEqual(tc, tc2) { t.Errorf("expected %v, got %v", reflect.DeepEqual(tc, tc2), bytes.Equal(key1, key2)) } }) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 25 16:50:20 UTC 2023 - 47.2K bytes - Viewed (0) -
pkg/serviceaccount/claims_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 17.9K bytes - Viewed (0) -
pkg/kubeapiserver/options/authentication_test.go
}, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { config, contentData, err := loadAuthenticationConfig(tc.file()) if !strings.Contains(errString(err), tc.expectErr) { t.Fatalf("expected error %q, got %v", tc.expectErr, err) } if !reflect.DeepEqual(config, tc.expectedConfig) { t.Fatalf("unexpected config:\n%s", cmp.Diff(tc.expectedConfig, config))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 36.5K bytes - Viewed (0) -
fastapi/security/http.py
client an error. If `auto_error` is set to `False`, when the HTTP Basic authentication is not available, instead of erroring out, the dependency result will be `None`. This is useful when you want to have optional authentication.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Apr 19 15:29:38 UTC 2024 - 13.2K bytes - Viewed (0) -
fastapi/security/oauth2.py
send the client an error. If `auto_error` is set to `False`, when the HTTP Authorization header is not available, instead of erroring out, the dependency result will be `None`. This is useful when you want to have optional authentication.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Apr 02 02:48:51 UTC 2024 - 21.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/matching/matching_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 38.2K bytes - Viewed (0) -
src/fmt/print.go
goodArgNum bool // panicking is set by catchPanic to avoid infinite panic, recover, panic, ... recursion. panicking bool // erroring is set when printing an error string to guard against calling handleMethods. erroring bool // wrapErrs is set when the format string may contain a %w verb. wrapErrs bool // wrappedErrs records the targets of the %w verb. wrappedErrs []int }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:22:43 UTC 2024 - 31.8K bytes - Viewed (0)