- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestXxx (0.16 sec)
-
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)