Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,756 for testLang (0.31 sec)

  1. cmd/kubeadm/app/util/pkiutil/pki_helpers_test.go

    		panic("Could not generate ECDSA key")
    	}
    
    	os.Exit(m.Run())
    }
    
    func TestNewCertAndKey(t *testing.T) {
    	var tests = []struct {
    		name string
    		key  crypto.Signer
    	}{
    		{
    			name: "ECDSA should succeed",
    			key:  ecdsaKey,
    		},
    	}
    
    	for _, rt := range tests {
    		t.Run(rt.name, func(t *testing.T) {
    			caCert := &x509.Certificate{}
    			config := &CertConfig{
    				Config: certutil.Config{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 21:49:21 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  2. src/runtime/runtime_test.go

    		if i >= 10 {
    			t.Fatalf("GoroutineProfile not converging")
    		}
    	}
    }
    
    func BenchmarkGoroutineProfile(b *testing.B) {
    	run := func(fn func() bool) func(b *testing.B) {
    		runOne := func(b *testing.B) {
    			latencies := make([]time.Duration, 0, b.N)
    
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				start := time.Now()
    				ok := fn()
    				if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor_test.go

    }
    
    func TestEncode(t *testing.T) {
    	for _, tc := range []struct {
    		name           string
    		in             runtime.Object
    		assertOnWriter func() (io.Writer, func(*testing.T))
    		assertOnError  func(*testing.T, error)
    	}{
    		{
    			name: "io error writing self described cbor tag",
    			assertOnWriter: func() (io.Writer, func(*testing.T)) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 14:57:12 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  4. src/runtime/hash_test.go

    		b[i] = byte(r.Uint32())
    	}
    }
    
    func benchmarkHash(b *testing.B, n int) {
    	s := strings.Repeat("A", n)
    
    	for i := 0; i < b.N; i++ {
    		StringHash(s, 0)
    	}
    	b.SetBytes(int64(n))
    }
    
    func BenchmarkHash5(b *testing.B)     { benchmarkHash(b, 5) }
    func BenchmarkHash16(b *testing.B)    { benchmarkHash(b, 16) }
    func BenchmarkHash64(b *testing.B)    { benchmarkHash(b, 64) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  5. pkg/slices/slices_test.go

    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			clone := Clone(tt.slice)
    			if !reflect.DeepEqual(clone, tt.slice) {
    				t.Errorf("Clone() got = %v, want = %v", clone, tt.slice)
    			}
    		})
    	}
    }
    
    func TestDelete(t *testing.T) {
    	type s struct {
    		Junk string
    	}
    	var input []*s
    	var output []*s
    	t.Run("inner", func(t *testing.T) {
    		a := &s{"a"}
    		b := &s{"b"}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/saved_model/core/tf_concrete_function_loading_test.cc

    #include "tensorflow/core/protobuf/saved_object_graph.pb.h"
    
    namespace tensorflow {
    namespace {
    
    class SavedConcreteFunctionLoadingTest : public ::testing::Test {
     public:
      SavedConcreteFunctionLoadingTest()
          : device_mgr_(testing::CreateTestingDeviceMgr()),
            ctx_(testing::CreateTestingEagerContext(device_mgr_.get())) {}
    
      EagerContext* context() { return ctx_.get(); }
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  7. src/crypto/ecdh/ecdh_test.go

    			}
    		}
    	})
    }
    
    func testAllCurves(t *testing.T, f func(t *testing.T, curve ecdh.Curve)) {
    	t.Run("P256", func(t *testing.T) { f(t, ecdh.P256()) })
    	t.Run("P384", func(t *testing.T) { f(t, ecdh.P384()) })
    	t.Run("P521", func(t *testing.T) { f(t, ecdh.P521()) })
    	t.Run("X25519", func(t *testing.T) { f(t, ecdh.X25519()) })
    }
    
    func BenchmarkECDH(b *testing.B) {
    	benchmarkAllCurves(b, func(b *testing.B, curve ecdh.Curve) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 18K bytes
    - Viewed (0)
  8. src/iter/pull_test.go

    		for i := range n {
    			if !yield(i, int64(i)*int64(i)) {
    				break
    			}
    		}
    	}
    }
    
    func TestPull(t *testing.T) {
    	for end := 0; end <= 3; end++ {
    		t.Run(fmt.Sprint(end), func(t *testing.T) {
    			ng := stableNumGoroutine()
    			wantNG := func(want int) {
    				if xg := runtime.NumGoroutine() - ng; xg != want {
    					t.Helper()
    					t.Errorf("have %d extra goroutines, want %d", xg, want)
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-death-test-internal.h

    // ASSERT_EXIT*, and EXPECT_EXIT*.
    # define GTEST_DEATH_TEST_(statement, predicate, regex, fail) \
      GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
      if (::testing::internal::AlwaysTrue()) { \
        const ::testing::internal::RE& gtest_regex = (regex); \
        ::testing::internal::DeathTest* gtest_dt; \
        if (!::testing::internal::DeathTest::Create(#statement, &gtest_regex, \
            __FILE__, __LINE__, &gtest_dt)) { \
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/net/nettest/conntest.go

    // race detector.
    func TestConn(t *testing.T, mp MakePipe) {
    	t.Run("BasicIO", func(t *testing.T) { timeoutWrapper(t, mp, testBasicIO) })
    	t.Run("PingPong", func(t *testing.T) { timeoutWrapper(t, mp, testPingPong) })
    	t.Run("RacyRead", func(t *testing.T) { timeoutWrapper(t, mp, testRacyRead) })
    	t.Run("RacyWrite", func(t *testing.T) { timeoutWrapper(t, mp, testRacyWrite) })
    	t.Run("ReadTimeout", func(t *testing.T) { timeoutWrapper(t, mp, testReadTimeout) })
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top