Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Example_suffix (0.33 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go

    		// Abort since obj is absent and no subsequent checks can be performed.
    		return
    	}
    	if len(elems) < 2 {
    		// Nothing more to do.
    		return
    	}
    
    	if ident == "" {
    		// Check Example_suffix and Example_BadSuffix.
    		if residual := strings.TrimPrefix(exName, "_"); !isExampleSuffix(residual) {
    			pass.Reportf(fn.Pos(), "%s has malformed example suffix: %s", fnName, residual)
    		}
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. src/testing/testing.go

    // appending a distinct suffix to the name. The suffix must start with a
    // lower-case letter.
    //
    //	func Example_suffix() { ... }
    //	func ExampleF_suffix() { ... }
    //	func ExampleT_suffix() { ... }
    //	func ExampleT_M_suffix() { ... }
    //
    // The entire test file is presented as the example when it contains a single
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
Back to top