- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for ContainSubstring (0.2 sec)
-
tests/integration/pilot/analyze_test.go
if i < len(expected) { g.Expect(line).To(ContainSubstring(expected[i].Code())) } else { g.Expect(line).To(ContainSubstring(boilerplateLines[i-len(expected)])) } } } func expectNoMessages(t test.Failer, g *GomegaWithT, output []string) { t.Helper() g.Expect(output).To(HaveLen(1)) g.Expect(output[0]).To(ContainSubstring("No validation issues found when analyzing")) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 16.3K 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()) }) t.Run("Fails to Update", func(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 17:36:47 UTC 2024 - 6.7K bytes - Viewed (0) -
operator/cmd/mesh/profile-list_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 03 06:27:07 UTC 2024 - 1.5K bytes - Viewed (0) -
pkg/test/util/structpath/instance_test.go
err: true, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { var instance *structpath.Instance for _, s := range tt.substrs { instance = validator.ContainSubstring(s, "{.typeUrl}") } err := instance.Check() if tt.err && err == nil { t.Errorf("expected err but got none for %s", tt.name) } }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 11 16:19:15 UTC 2021 - 1.7K bytes - Viewed (0) -
pkg/test/util/structpath/instance.go
case protoMessageType.Kind(): } // TODO: Add struct support return fmt.Errorf("attempt to call Equals for unsupported type: %v", expected) }) } func (i *Instance) ContainSubstring(substr, path string) *Instance { return i.appendConstraint(func() error { value, err := i.execute(path) if err != nil { return err } if found := strings.Contains(value, substr); !found {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 9.4K bytes - Viewed (0) -
operator/cmd/mesh/manifest-generate_test.go
}, { name: "Duplicate MutatingWebhookConfiguration should not be allowed when --force is disabled", force: false, assertFunc: func(g *WithT, objs *ObjectSet, err error) { g.Expect(err.Error()).To(ContainSubstring("Webhook overlaps with others")) g.Expect(objs).Should(BeNil()) }, }, } recreateSimpleTestEnv() tmpDir := t.TempDir()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 18:05:06 UTC 2024 - 43.5K bytes - Viewed (0)