- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TestXxx (0.1 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/testing/testing.go
// execution of any function of the form // // func TestXxx(*testing.T) // // where Xxx does not start with a lowercase letter. The function name // serves to identify the test routine. // // Within these functions, use the Error, Fail or related methods to signal failure. // // To write a new test suite, create a file that // contains the TestXxx functions as described here, // and give that file a name ending in "_test.go".
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/internal/test/test.go
The 'go test' command expects to find test, benchmark, and example functions in the "*_test.go" files corresponding to the package under test. A test function is one named TestXxx (where Xxx does not start with a 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) { ... }
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/cmd/go/alldocs.go
// in the "*_test.go" files corresponding to the package under test. // // A test function is one named TestXxx (where Xxx does not start with a // 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) { ... }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:54:28 UTC 2024 - 142.4K bytes - Viewed (0)