Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Example_suffix (0.19 sec)

  1. src/go/doc/example_test.go

    func ExampleVar1()   {} // invalid - no support for consts and vars
    
    func Example()               {}
    func Example_()              {} // invalid - suffix must start with a lower-case letter
    func Example_suffix()        {}
    func Example_suffix_xX_X_x() {}
    func Example_世界()           {} // invalid - suffix must start with a lower-case letter
    func Example_123()           {} // invalid - suffix must start with a lower-case letter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 16:17:51 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  2. 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)
  3. 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