- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 165 for expectEq (0.11 sec)
-
tools/istio-iptables/pkg/builder/iptables_builder_test.go
goldenFile := filepath.Join("testdata", name+".golden") testutil.CompareContent(t, gotBytes, goldenFile) } func TestBuilder(t *testing.T) { cases := []struct { name string expectV4 bool expectV6 bool config func(builder *IptablesRuleBuilder) sharedGolden bool }{ { "insert-single-v4", true, false, func(builder *IptablesRuleBuilder) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 11 14:29:54 UTC 2024 - 6.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter_test.cc
void Verify(const RuntimeMetadata* result, const RuntimeMetadata* expected) { EXPECT_EQ(result->subgraph_metadata()->size(), expected->subgraph_metadata()->size()); for (int i = 0; i < result->subgraph_metadata()->size(); ++i) { auto result_subgraph_metadata = result->subgraph_metadata()->GetAs<SubgraphMetadata>(i); auto expected_subgraph_metadata = expected->subgraph_metadata()->GetAs<SubgraphMetadata>(i);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 06:11:34 UTC 2024 - 6K bytes - Viewed (0) -
pilot/pkg/networking/core/sidecar_simulation_test.go
{call: simulation.Call{Address: "1.1.1.1", Port: 81, Protocol: simulation.HTTP, HostHeader: "alias.default.svc.cluster.local"}, expected: "alias"}, { call: simulation.Call{Address: "1.2.3.4", Port: 81, Protocol: simulation.HTTP, TLS: simulation.TLS, HostHeader: "alias.default.svc.cluster.local"}, expected: "concrete", },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 84.7K bytes - Viewed (0) -
pkg/printers/internalversion/printers_test.go
t.Fatal(err) } for i := range rows { rows[i].Object.Object = nil } if !reflect.DeepEqual(test.expected, rows) { t.Errorf("%d mismatch: %s", i, cmp.Diff(test.expected, rows)) } } } func TestPrintSecret(t *testing.T) { tests := []struct { secret api.Secret expected []metav1.TableRow }{ // Basic namespace with type, data, and age. { secret: api.Secret{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 14:04:15 UTC 2024 - 218.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go
} return } if tt.expectError { t.Fatalf("expected error but got none") } if (len(out.Continue) > 0) != tt.expectContinue { t.Errorf("unexpected continue token: %q", out.Continue) } // If a client requests an exact resource version, it must be echoed back to them. if tt.expectRV != "" { if tt.expectRV != out.ResourceVersion {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 12:45:33 UTC 2024 - 91.4K bytes - Viewed (0) -
pkg/kubelet/kubelet_test.go
// Sources are not ready yet. Don't remove any pods. if expect, actual := []types.UID(nil), kubelet.podWorkers.(*fakePodWorkers).triggeredDeletion; !reflect.DeepEqual(expect, actual) { t.Fatalf("expected %v kills, got %v", expect, actual) } ready = true kubelet.HandlePodRemoves(pods) time.Sleep(2 * time.Second) // Sources are ready. Remove unwanted pods.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 106.9K bytes - Viewed (0) -
pilot/pkg/networking/core/peer_authentication_simulation_test.go
calls: []simulation.Expect{ { Name: "plaintext on port 8000", Call: mkCall(8000, simulation.Plaintext), Result: simulation.Result{ClusterMatched: "inbound|8000||"}, }, { Name: "mtls on port 8000", Call: mkCall(8000, simulation.MTLS), // This will send an mTLS request to plaintext HTTP port, which is expected to fail
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 16.2K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue_test.go
if q.podBackoffQ.Len() == 0 && test.expectedQ == backoffQ { t.Fatalf("expected pod to be queued to backoffQ, but it was not") } if q.activeQ.Len() == 0 && test.expectedQ == activeQ { t.Fatalf("expected pod to be queued to activeQ, but it was not") } if q.unschedulablePods.get(test.podInfo.Pod) == nil && test.expectedQ == unschedulablePods {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 146.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go
expectedError := fmt.Sprintf("invalid key: %q", invalidKey) expectInvalidKey := func(methodName string, err error) { if err == nil { t.Errorf("[%s] expected invalid key error; got nil", methodName) } else if err.Error() != expectedError { t.Errorf("[%s] expected invalid key error; got %v", methodName, err) } } ctx, store, _ := testSetup(t) expectInvalidKey("Create", store.Create(ctx, invalidKey, nil, nil, 0))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 12:45:33 UTC 2024 - 26.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc
if (kUseUpdatedHybridSchemeDefault) { EXPECT_EQ(quant_tensor->quantization()->scale()->size(), shape[0]); } else { EXPECT_EQ(quant_tensor->quantization()->scale()->size(), 1); } } else { EXPECT_EQ(quant_tensor->type(), TensorType_FLOAT32); } } EXPECT_EQ(used_tensors.size(), quantized_graph->tensors()->size()); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 32.3K bytes - Viewed (0)