- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestBenchmarkRace (0.14 sec)
-
src/testing/testing_test.go
want := 0 if race.Enabled { want = 1 } if c != want { t.Errorf("got %d race reports; want %d", c, want) } } func TestBenchmarkRace(t *testing.T) { out := runTest(t, "BenchmarkRacy") c := bytes.Count(out, []byte("race detected during execution of test")) want := 0 // We should see one race detector report. if race.Enabled {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 19.3K bytes - Viewed (0)