Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Example_BadSuffix (0.32 sec)

  1. src/cmd/vet/testdata/testingpkg/tests_test.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package testdata
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 26 21:34:18 UTC 2021
    - 275 bytes
    - Viewed (0)
  2. src/go/doc/example_test.go

    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
    func Example_BadSuffix()     {} // invalid - suffix must start with a lower-case letter
    
    func ExampleType1()               {}
    func ExampleType1_()              {} // 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)
  3. 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
    	}
    
    	mmbr := elems[1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top