- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for ToNot (0.43 sec)
-
pkg/config/mesh/networks_watcher_test.go
"istio.io/istio/pkg/filewatcher" ) func TestNewNetworksWatcherWithBadInputShouldFail(t *testing.T) { g := NewWithT(t) _, err := mesh.NewNetworksWatcher(filewatcher.NewWatcher(), "") g.Expect(err).ToNot(BeNil()) } func TestNetworksWatcherShouldNotifyHandlers(t *testing.T) { g := NewWithT(t) path := newTempFile(t) defer removeSilent(path) n := meshconfig.MeshNetworks{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 1.9K bytes - Viewed (0) -
pkg/config/schema/resource/schema_test.go
expectError: true, }, } for _, c := range cases { t.Run(c.name, func(t *testing.T) { g := NewWithT(t) err := c.b.BuildNoValidate().Validate() if c.expectError { g.Expect(err).ToNot(BeNil()) } else { g.Expect(err).To(BeNil()) } }) } } func TestBuild(t *testing.T) { cases := []struct { name string b Builder expectError bool }{ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 5.2K bytes - Viewed (0) -
hack/verify-test-code.sh
kube::util::read-array all_e2e_files < <(find test/e2e{,_node,_kubeadm} -name '*.go' | grep -v 'test/e2e/framework/') errors_expect_no_error=() for file in "${all_e2e_files[@]}" do if grep -E "Expect\(.*\)\.(NotTo|ToNot)\(.*HaveOccurred\(\)" "${file}" > /dev/null then errors_expect_no_error+=( "${file}" ) fi if grep -E "Expect\(err\)\.To\(gomega\.BeNil\(\)\)" "${file}" > /dev/null then
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 23 08:51:42 UTC 2023 - 2.6K bytes - Viewed (0) -
pkg/config/mesh/watcher_test.go
"istio.io/istio/pkg/util/protomarshal" ) func TestNewWatcherWithBadInputShouldFail(t *testing.T) { g := NewWithT(t) _, err := mesh.NewFileWatcher(filewatcher.NewWatcher(), "", false) g.Expect(err).ToNot(BeNil()) } func TestWatcherShouldNotifyHandlers(t *testing.T) { watcherShouldNotifyHandlers(t, false) } func TestMultiWatcherShouldNotifyHandlers(t *testing.T) { watcherShouldNotifyHandlers(t, true) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 3K bytes - Viewed (0) -
pkg/config/schema/collection/schemas_test.go
g := NewWithT(t) b := collection.NewSchemasBuilder() for _, s := range c.schemas { b.MustAdd(s) } err := b.Build().Validate() if c.expectError { g.Expect(err).ToNot(BeNil()) } else { g.Expect(err).To(BeNil()) } }) } } func TestSchemas_Validate_Error(t *testing.T) { g := NewWithT(t) b := collection.NewSchemasBuilder()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 5.4K bytes - Viewed (0) -
pilot/pkg/config/kube/gateway/controller_test.go
Name: "http-route", Namespace: "ns1", }, Spec: httpRouteSpec, }) cg := core.NewConfigGenTest(t, core.TestOptions{}) g.Expect(controller.Reconcile(cg.PushContext())).ToNot(HaveOccurred()) cfg := controller.List(gvk.Gateway, "ns1") g.Expect(cfg).To(HaveLen(1)) for _, c := range cfg { g.Expect(c.GroupVersionKind).To(Equal(gvk.Gateway))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 02 16:47:06 UTC 2024 - 5.6K bytes - Viewed (0)