- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for BenchmarkXxx (0.15 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go
if !isTestParam(fn.Type.Params.List[0].Type, prefix[:1]) { return } if tparams := fn.Type.TypeParams; tparams != nil && len(tparams.List) > 0 { // Note: cmd/go/internal/load also errors about TestXXX and BenchmarkXXX functions with type parameters. // We have currently decided to also warn before compilation/package loading. This can help users in IDEs. at := tokenRange{tparams.Opening, tparams.Closing}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 14.4K bytes - Viewed (0) -
src/go/doc/testdata/testing.go
// [a-z]) and serves to identify the test routine. // These TestXxx routines should be declared within the package they are testing. // // Functions of the form // func BenchmarkXxx(*testing.B) // are considered benchmarks, and are executed by go test when the -test.bench // flag is provided. // // A sample benchmark function looks like this: // func BenchmarkHello(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 11.8K bytes - Viewed (0) -
src/cmd/go/internal/test/test.go
lower case letter) and should have the signature, func TestXxx(t *testing.T) { ... } A benchmark function is one named BenchmarkXxx and should have the signature, func BenchmarkXxx(b *testing.B) { ... } A fuzz test is one named FuzzXxx and should have the signature, func FuzzXxx(f *testing.F) { ... }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 71.9K bytes - Viewed (0) -
src/testing/testing.go
// t.Errorf("Abs(-1) = %d; want 1", got) // } // } // // For more detail, run "go help test" and "go help testflag". // // # Benchmarks // // Functions of the form // // func BenchmarkXxx(*testing.B) // // are considered benchmarks, and are executed by the "go test" command when // its -bench flag is provided. Benchmarks are run sequentially. // // For a description of the testing flags, see
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0) -
src/cmd/go/alldocs.go
// lower case letter) and should have the signature, // // func TestXxx(t *testing.T) { ... } // // A benchmark function is one named BenchmarkXxx and should have the signature, // // func BenchmarkXxx(b *testing.B) { ... } // // A fuzz test is one named FuzzXxx and should have the signature, // // func FuzzXxx(f *testing.F) { ... } //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:54:28 UTC 2024 - 142.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_regexps.txt
! stdout '^\s+BenchmarkX: x_test.go:13: LOG: X running N=\d\d+' ! stdout 'BenchmarkX\s+\d+' # Same for BenchmarkXX. stdout -count=1 '^ z_test.go:18: LOG: XX running N=1$' ! stdout '^ z_test.go:18: LOG: XX running N=\d\d+' ! stdout 'BenchmarkXX\s+\d+' # BenchmarkX/Y is run in full twice due to -count=2. # "Run in full" means that it runs for approximately the default benchtime,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 17 13:25:29 UTC 2020 - 1.9K bytes - Viewed (0)