Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 7,967 for testLang (0.2 sec)

  1. src/runtime/map_benchmark_test.go

    }
    
    func BenchmarkMapStringKeysEight_16(b *testing.B) { benchmarkMapStringKeysEight(b, 16) }
    func BenchmarkMapStringKeysEight_32(b *testing.B) { benchmarkMapStringKeysEight(b, 32) }
    func BenchmarkMapStringKeysEight_64(b *testing.B) { benchmarkMapStringKeysEight(b, 64) }
    func BenchmarkMapStringKeysEight_1M(b *testing.B) { benchmarkMapStringKeysEight(b, 1<<20) }
    
    func benchmarkMapStringKeysEight(b *testing.B, keySize int) {
    	m := make(map[string]bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 16:41:16 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. src/database/sql/sql_test.go

    }
    
    type concurrentTest interface {
    	init(t testing.TB, db *DB)
    	finish(t testing.TB)
    	test(t testing.TB) error
    }
    
    type concurrentDBQueryTest struct {
    	db *DB
    }
    
    func (c *concurrentDBQueryTest) init(t testing.TB, db *DB) {
    	c.db = db
    }
    
    func (c *concurrentDBQueryTest) finish(t testing.TB) {
    	c.db = nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  3. src/internal/saferio/io_test.go

    // license that can be found in the LICENSE file.
    
    package saferio
    
    import (
    	"bytes"
    	"io"
    	"testing"
    )
    
    func TestReadData(t *testing.T) {
    	const count = 100
    	input := bytes.Repeat([]byte{'a'}, count)
    
    	t.Run("small", func(t *testing.T) {
    		got, err := ReadData(bytes.NewReader(input), count)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if !bytes.Equal(got, input) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 00:34:05 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. src/crypto/ecdsa/ecdsa_test.go

    	}
    }
    
    func TestRandomPoint(t *testing.T) {
    	t.Run("P-224", func(t *testing.T) { testRandomPoint(t, p224()) })
    	t.Run("P-256", func(t *testing.T) { testRandomPoint(t, p256()) })
    	t.Run("P-384", func(t *testing.T) { testRandomPoint(t, p384()) })
    	t.Run("P-521", func(t *testing.T) { testRandomPoint(t, p521()) })
    }
    
    func testRandomPoint[Point nistPoint[Point]](t *testing.T, c *nistCurve[Point]) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:58 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_main.txt

    import (
    	"flag"
    	"fmt"
    	"os"
    	"testing"
    )
    
    func TestMain(m *testing.M) {
    	// A TestMain should be able to access testing flags if it calls
    	// flag.Parse without needing to use testing.Init.
    	flag.Parse()
    	found := false
    	flag.VisitAll(func(f *flag.Flag) {
    		if f.Name == "test.count" {
    			found = true
    		}
    	})
    	if !found {
    		fmt.Println("testing flags not registered")
    		os.Exit(1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 17 00:45:15 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  6. src/runtime/race/testdata/map_test.go

    // license that can be found in the LICENSE file.
    
    package race_test
    
    import (
    	"testing"
    )
    
    func TestRaceMapRW(t *testing.T) {
    	m := make(map[int]int)
    	ch := make(chan bool, 1)
    	go func() {
    		_ = m[1]
    		ch <- true
    	}()
    	m[1] = 1
    	<-ch
    }
    
    func TestRaceMapRW2(t *testing.T) {
    	m := make(map[int]int)
    	ch := make(chan bool, 1)
    	go func() {
    		_, _ = m[1]
    		ch <- true
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 22:09:38 UTC 2017
    - 5.1K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_test.txt

    cp go.mod.empty go.mod
    go list -deps
    ! stdout ^testing$
    
    # list all should include test dependencies, like testing
    cp go.mod.empty go.mod
    go list all
    stdout ^testing$
    stdout ^rsc.io/quote$
    stdout ^rsc.io/testonly$
    
    # list -deps -tests should also include testing
    # but not deps of tests of deps (rsc.io/testonly).
    go list -deps -test
    stdout ^testing$
    stdout ^rsc.io/quote$
    ! stdout ^rsc.io/testonly$
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 17 21:24:05 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  8. pkg/config/analysis/analyzers/testdata/virtualservice_host_not_found_gateway.yaml

      - istio-system/testing-gateway-01-test-01
      hosts:
      - testing-01.com # Expected: no validation error since this host exists
      http:
      - match:
        - uri:
            prefix: /
        route:
        - destination:
            host: ratings
    ---
    apiVersion: networking.istio.io/v1alpha3
    kind: VirtualService
    metadata:
      name: testing-service-02-test-01
      namespace: default
    spec:
      gateways:
      - istio-system/testing-gateway-01-test-01
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 17 12:28:05 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  9. src/runtime/race/testdata/mop_test.go

    }
    
    func TestRaceIntRWGlobalFuncs(t *testing.T) {
    	go GlobalFunc1()
    	go GlobalFunc2()
    	<-GlobalCh
    	<-GlobalCh
    }
    
    func TestRaceIntRWClosures(t *testing.T) {
    	var x, y int
    	_ = y
    	ch := make(chan int, 2)
    
    	go func() {
    		y = x
    		ch <- 1
    	}()
    	go func() {
    		x = 1
    		ch <- 1
    	}()
    	<-ch
    	<-ch
    }
    
    func TestNoRaceIntRWClosures(t *testing.T) {
    	var x, y int
    	_ = y
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 23 16:46:25 UTC 2023
    - 28.9K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-spi.h

        ::testing::TestPartResultArray gtest_failures;\
        ::testing::internal::SingleFailureChecker gtest_checker(\
            &gtest_failures, ::testing::TestPartResult::kNonFatalFailure, \
            (substr));\
        {\
          ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\
              ::testing::ScopedFakeTestPartResultReporter::INTERCEPT_ALL_THREADS, \
              &gtest_failures);\
          if (::testing::internal::AlwaysTrue()) { statement; }\
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 9.7K bytes
    - Viewed (0)
Back to top