- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 315 for expectGet (0.36 sec)
-
cmd/net_test.go
switch { case testCase.expectedErr == nil: if err != nil { t.Fatalf("error: expected = <nil>, got = %v", err) } case err == nil: t.Fatalf("error: expected = %v, got = <nil>", testCase.expectedErr) case testCase.expectedErr.Error() != err.Error(): t.Fatalf("error: expected = %v, got = %v", testCase.expectedErr, err) } if testCase.expectedIPList != nil { var found bool
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 19 08:43:09 UTC 2024 - 9.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filterlatency/filterlatency_test.go
wrapped.ServeHTTP(w, testRequest) if callCount != 1 { t.Errorf("expected the given handler to be invoked once, but was actually invoked %d times", callCount) } if filterRecord == nil { t.Fatal("expected a filter record in the request context, but got nil") } if filterName != filterRecord.name { t.Errorf("expected filter name=%s but got=%s", filterName, filterRecord.name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 17:57:37 UTC 2024 - 7.1K bytes - Viewed (0) -
src/net/lookup_windows_test.go
} if len(names) == 0 { t.Errorf("no results") } expected, err := lookupPTR(addr.String()) if err != nil { t.Skipf("skipping failed lookup %s test: %s", addr.String(), err) } slices.Sort(expected) slices.Sort(names) if !reflect.DeepEqual(expected, names) { t.Errorf("different results %s:\texp:%v\tgot:%v", addr, toJson(expected), toJson(names)) } } func TestLookupPTR(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.7K bytes - Viewed (0) -
pilot/pkg/xds/pushqueue_test.go
}() select { case <-done: t.Fatalf("Expected timeout") case <-time.After(time.Millisecond * 500): } } func ExpectDequeue(t *testing.T, p *PushQueue, expected *Connection) { t.Helper() result := make(chan *Connection, 1) go func() { con, _, _ := p.Dequeue() result <- con }() select { case got := <-result: if got != expected { t.Fatalf("Expected proxy %v, got %v", expected, got) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 00:26:45 UTC 2024 - 8.8K bytes - Viewed (0) -
istioctl/pkg/injector/injector-list_test.go
"istio-injection": "enabled", }), } client := kube.NewFakeClient(nss...) expected := sets.New[string]("default", "no-ambient") actual, err := getNamespaces(context.TODO(), client, "istio-system") assert.NoError(t, err) for _, ns := range actual { assert.Equal(t, true, expected.Contains(ns.Name)) } } func Test_injectionDisabled(t *testing.T) { cases := []struct {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 04:33:57 UTC 2024 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor_test.cc
std::string module_dump; llvm::raw_string_ostream raw_stream(module_dump); mlir_module_->print(raw_stream); EXPECT_EQ(compilation_status.Delta(kExportSuccess), 1); EXPECT_EQ(compilation_status.Delta(kExportFailed), 0); EXPECT_EQ( CountSubstring(module_dump, "tf_executor.island wraps \"tf.Concat\""), 2); } } // namespace } // namespace v2 } // namespace tf2xla
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 13 23:22:50 UTC 2024 - 4.4K bytes - Viewed (0) -
pkg/api/persistentvolume/util_test.go
template *api.PersistentVolume expected []string }{ { name: "null", template: nil, expected: nil, }, { name: "no warning", template: &api.PersistentVolume{ ObjectMeta: metav1.ObjectMeta{ Name: "foo", }, Status: api.PersistentVolumeStatus{ Phase: api.VolumeBound, }, }, expected: nil, }, { name: "warning",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 8.9K bytes - Viewed (0) -
platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/tasks/testing/TestFailure.java
* @param failure the assertion failure * @param expected the expected value for the failure; can be {@code null} * @param actual the actual value for the failure; can be {@code null} * @return the new instance */ public static TestFailure fromTestAssertionFailure(Throwable failure, String expected, String actual) { return fromTestAssertionFailure(failure, expected, actual, null); } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 13 20:33:30 UTC 2024 - 3.8K bytes - Viewed (0) -
pkg/apis/storage/v1beta1/defaults_test.go
outAttach := output.Spec.AttachRequired if outAttach == nil { t.Errorf("Expected AttachRequired to be defaulted to: %+v, got: nil", defaultAttach) } else if *outAttach != defaultAttach { t.Errorf("Expected AttachRequired to be defaulted to: %+v, got: %+v", defaultAttach, outAttach) } outPodInfo := output.Spec.PodInfoOnMount if outPodInfo == nil { t.Errorf("Expected PodInfoOnMount to be defaulted to: %+v, got: nil", defaultPodInfo)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 6.4K bytes - Viewed (0) -
tools/istio-iptables/pkg/config/config_test.go
expected: true, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { LocalIPAddrs = tt.lipas _, isV6, err := getLocalIP(tt.isDS) if err != nil { t.Errorf("getLocalIP err: %s", err) } if isV6 != tt.expected { t.Errorf("unexpected EnableIPv6 result, expected: %t got: %t", tt.expected, isV6) } }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 22:24:38 UTC 2024 - 2.6K bytes - Viewed (0)