Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 372 for expectGet (0.2 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. cmd/kubeadm/app/util/certs/util.go

    // by the expected CA
    func AssertCertificateIsSignedByCa(t *testing.T, cert *x509.Certificate, signingCa *x509.Certificate) {
    	if err := cert.CheckSignatureFrom(signingCa); err != nil {
    		t.Error("cert is not signed by signing CA as expected")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. pkg/volume/util/nested_volumes_test.go

    		if test.err {
    			if err == nil {
    				t.Errorf("%v: expected error, got nil", test.name)
    			}
    			continue
    		} else {
    			if err != nil {
    				t.Errorf("%v: expected no error, got %v", test.name, err)
    				continue
    			}
    		}
    		actual := sets.New[string](dirs...)
    		if !test.expected.Equal(actual) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/maven/MavenJavaModule.groovy

        @Override
        void assertApiDependencies(String... expected) {
            features.each { feature ->
                assertDependencies(feature, 'apiElements', 'compile', [], expected)
                assert parsedModuleMetadata.variant('runtimeElements').dependencies*.coords.containsAll(expected)
            }
        }
    
        @Override
        void assertRuntimeDependencies(String... expected) {
            features.each { feature ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.cc

                   << "Expected a uniform quantized type. Got: " << type << ".\n");
        return false;
      }
    
      if (!IsStorageTypeI8(quantized_per_axis_type)) {
        LLVM_DEBUG(llvm::dbgs() << "Expected an i8 storage type. Got: "
                                << quantized_per_axis_type << ".\n");
        return false;
      }
    
      if (!IsExpressedTypeF32(quantized_per_axis_type)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. internal/cachevalue/cache_test.go

    	if !errors.Is(err, context.Canceled) {
    		t.Fatalf("expected context.Canceled err, got %v", err)
    	}
    
    	ctx, cancel = context.WithCancel(context.Background())
    	defer cancel()
    
    	t1, err := cache.GetWithCtx(ctx)
    	if err != nil {
    		t.Fatalf("expected nil err, got %v", err)
    	}
    
    	t2, err := cache.GetWithCtx(ctx)
    	if err != nil {
    		t.Fatalf("expected nil err, got %v", err)
    	}
    
    	if !t1.Equal(t2) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top