- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for matchErrors (0.16 sec)
-
pkg/controller/namespace/deletion/namespaced_resources_deleter_test.go
if !action.Matches("get", "namespaces") { t.Errorf("Expected get namespaces, got: %v", action) } } // matchError returns true if errors match, false if they don't, compares by error message only for convenience which should be sufficient for these tests func matchErrors(e1, e2 error) bool { if e1 == nil && e2 == nil { return true } if e1 != nil && e2 != nil { return e1.Error() == e2.Error() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 07:34:23 UTC 2023 - 15.8K bytes - Viewed (0) -
pilot/pkg/config/aggregate/config_test.go
err = store.Delete(config.GroupVersionKind{Kind: "not"}, "gonna", "work", nil) g.Expect(err).To(MatchError(ContainSubstring("unsupported operation"))) }) t.Run("Fails to Create", func(t *testing.T) { g := NewWithT(t) c, err := store.Create(config.Config{}) g.Expect(err).To(MatchError(ContainSubstring("unsupported operation"))) g.Expect(c).To(BeEmpty()) })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 17:36:47 UTC 2024 - 6.7K bytes - Viewed (0) -
pkg/registry/core/componentstatus/validator_test.go
limitations under the License. */ package componentstatus import ( "errors" "fmt" "testing" "k8s.io/kubernetes/pkg/probe" ) func matchError(data []byte) error { if string(data) != "bar" { return errors.New("match error") } return nil } func TestValidate(t *testing.T) { tests := []struct { probeResult probe.Result
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 13 08:10:29 UTC 2023 - 1.9K bytes - Viewed (0) -
src/cmd/go/internal/search/search.go
func IsMetaPackage(name string) bool { return name == "std" || name == "cmd" || name == "all" } // A MatchError indicates an error that occurred while attempting to match a // pattern. type MatchError struct { Match *Match Err error } func (e *MatchError) Error() string { if e.Match.IsLiteral() { return fmt.Sprintf("%s: %v", e.Match.Pattern(), e.Err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 31 20:33:05 UTC 2023 - 15.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook_test.go
expectCall bool expectErr string expectCallResource schema.GroupVersionResource expectCallSubresource string expectCallKind schema.GroupVersionKind matchError error matchResult bool }{ { name: "no rules (just write)", webhook: &v1.ValidatingWebhook{NamespaceSelector: &metav1.LabelSelector{}, Rules: []v1.RuleWithOperations{}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 28 19:30:04 UTC 2023 - 32K bytes - Viewed (0) -
tests/integration/pilot/analyze_test.go
g.Expect(strings.Join(output, "\n")).To(ContainSubstring("Error(s) adding files")) g.Expect(strings.Join(output, "\n")).To(ContainSubstring(fmt.Sprintf("errors parsing content \"%s\"", invalidFile))) g.Expect(err).To(MatchError(analyze.FileParseError{})) // Parse error as the yaml file itself is not valid yaml, but ignore. output, err = istioctlSafe(t, istioCtl, ns.Name(), false, invalidFile, "--ignore-unknown=true")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 16.3K bytes - Viewed (0) -
src/cmd/go/internal/load/pkg.go
// in one file, but other files are okay. func (p *Package) setLoadPackageDataError(err error, path string, stk *ImportStack, importPos []token.Position) { matchErr, isMatchErr := err.(*search.MatchError) if isMatchErr && matchErr.Match.Pattern() == path { if matchErr.Match.IsLiteral() { // The error has a pattern has a pattern similar to the import path.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0) -
test-site/activator-launch-1.3.2.jar
hashCode(); public final String toString(); private void None$(); } scala/MatchError.class package scala; public final synchronized class MatchError extends RuntimeException { private final Object obj; private String objString; private volatile boolean bitmap$0; private String objString$lzycompute(); public final String getMessage(); private final String ofClass$1(); private final String liftedTree1$1(); public void MatchError(Object); } scala/LowPriorityImplicits.class package scala; public synchronized...
Registered: Wed Jun 12 15:38:08 UTC 2024 - Last Modified: Mon Apr 20 08:41:37 UTC 2015 - 1.2M bytes - Viewed (1)