- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 962 for testOrg (0.15 sec)
-
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) -
src/slices/iter_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package slices_test import ( "iter" "math/rand/v2" . "slices" "testing" ) func TestAll(t *testing.T) { for size := 0; size < 10; size++ { var s []int for i := range size { s = append(s, i) } ei, ev := 0, 0 cnt := 0 for i, v := range All(s) { if i != ei || v != ev {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:28:50 UTC 2024 - 5.7K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer_benchmark_test.go
package ringbuffer import ( "io" "strings" "testing" ) func BenchmarkRingBuffer_Sync(b *testing.B) { rb := New(1024) data := []byte(strings.Repeat("a", 512)) buf := make([]byte, 512) b.ResetTimer() for i := 0; i < b.N; i++ { rb.Write(data) rb.Read(buf) } } func BenchmarkRingBuffer_AsyncRead(b *testing.B) { // Pretty useless benchmark, but it's here for completeness. rb := New(1024)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 1.7K bytes - Viewed (0) -
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) -
src/crypto/tls/handshake_server_test.go
t.Error("the preference order should not depend on Config.CipherSuites") } } func TestSCTHandshake(t *testing.T) { t.Run("TLSv12", func(t *testing.T) { testSCTHandshake(t, VersionTLS12) }) t.Run("TLSv13", func(t *testing.T) { testSCTHandshake(t, VersionTLS13) }) } func testSCTHandshake(t *testing.T, version uint16) { expected := [][]byte{[]byte("certificate"), []byte("transparency")} serverConfig := &Config{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 64.7K bytes - Viewed (0) -
src/reflect/type_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package reflect_test import ( "reflect" "testing" ) func TestTypeFor(t *testing.T) { type ( mystring string myiface interface{} ) testcases := []struct { wantFrom any got reflect.Type }{ {new(int), reflect.TypeFor[int]()},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 4.2K bytes - Viewed (0) -
src/internal/coverage/cfile/emitdata_test.go
// Sub-tests for each API we want to inspect, plus // extras for error testing. t.Run("emitToDir", func(t *testing.T) { t.Parallel() testEmitToDir(t, atomicHarnessPath, dir) }) t.Run("emitToWriter", func(t *testing.T) { t.Parallel() testEmitToWriter(t, atomicHarnessPath, dir) }) t.Run("emitToNonexistentDir", func(t *testing.T) { t.Parallel() testEmitToNonexistentDir(t, atomicHarnessPath, dir) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 16.3K bytes - Viewed (0) -
platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/processors/CaptureTestOutputTestResultProcessor.java
*/ package org.gradle.api.internal.tasks.testing.processors; import org.gradle.api.internal.tasks.testing.TestCompleteEvent; import org.gradle.api.internal.tasks.testing.TestDescriptorInternal; import org.gradle.api.internal.tasks.testing.TestResultProcessor; import org.gradle.api.internal.tasks.testing.TestStartEvent; import org.gradle.api.internal.tasks.testing.redirector.StandardOutputRedirector;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:59:04 UTC 2024 - 3.7K bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/errors_test.go
import ( "bytes" "fmt" "internal/testenv" "os" "os/exec" "path/filepath" "regexp" "strconv" "strings" "testing" ) func path(file string) string { return filepath.Join("testdata", file) } func check(t *testing.T, file string) { t.Run(file, func(t *testing.T) { testenv.MustHaveGoBuild(t) testenv.MustHaveCGO(t) t.Parallel() contents, err := os.ReadFile(path(file))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 4K bytes - Viewed (0) -
cni/pkg/plugin/plugin_test.go
// it should never be added, even if the namespace has the annotation assert.Equal(t, wasCalled, false) } func TestCmdAdd(t *testing.T) { pod, ns := buildFakePodAndNSForClient() testDoAddRun(t, buildMockConf(true, ""), testNSName, pod, ns) } func TestCmdAddTwoContainersWithAnnotation(t *testing.T) { pod, ns := buildFakePodAndNSForClient() pod.Spec.Containers[0].Name = "mockContainer"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 21 18:32:01 UTC 2024 - 17.5K bytes - Viewed (0)