Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for TestXxx (0.12 sec)

  1. src/go/doc/testdata/testing.go

    // It is intended to be used in concert with the “go test” utility, which automates
    // execution of any function of the form
    //     func TestXxx(*testing.T)
    // where Xxx can be any alphanumeric string (but the first letter must not be in
    // [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)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/cmd/go/testdata/script/test_regexps.txt

    stdout -count=2 '^    x_test.go:6: LOG: X running$'
    
    # TestX/Y is run, twice
    stdout -count=2 '^=== RUN   TestX/Y$'
    stdout -count=2 '^    x_test.go:8: LOG: Y running$'
    
    # TestXX is run, twice
    stdout -count=2 '^=== RUN   TestXX$'
    stdout -count=2 '^    z_test.go:10: LOG: XX running'
    
    # TestZ is not run
    ! stdout '^=== RUN   TestZ$'
    
    # BenchmarkX is run with N=1 once, only to discover what sub-benchmarks it has,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 1.9K bytes
    - Viewed (0)
Back to top