Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for rangeloops (0.19 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go

    // new names. The old names will continue to work.
    var vetLegacyFlags = map[string]string{
    	// Analyzer name changes
    	"bool":       "bools",
    	"buildtags":  "buildtag",
    	"methods":    "stdmethods",
    	"rangeloops": "loopclosure",
    
    	// Analyzer flags
    	"compositewhitelist":  "composites.whitelist",
    	"printfuncs":          "printf.funcs",
    	"shadowstrict":        "shadow.strict",
    	"unusedfuncs":         "unusedresult.funcs",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. src/cmd/vet/vet_test.go

    		cmd.Env = append(os.Environ(), "GOWORK=off")
    		cmd.Dir = "testdata/rangeloop"
    		cmd.Stderr = new(strings.Builder) // all vet output goes to stderr
    		cmd.Run()
    		stderr := cmd.Stderr.(fmt.Stringer).String()
    
    		filename := filepath.FromSlash("testdata/rangeloop/rangeloop.go")
    
    		// Unlike the tests above, which runs vet in cmd/vet/, this one
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/stmt0.go

    	case F:
    	}
    }
    
    func fors1() {
    	for {}
    	var i string
    	_ = i
    	for i := 0; i < 10; i++ {}
    	for i := 0; i < 10; j /* ERROR "cannot declare" */ := 0 {}
    }
    
    func rangeloops1() {
    	var (
    		a [10]float32
    		b []string
    		p *[10]complex128
    		pp **[10]complex128
    		s string
    		m map[int]bool
    		c chan int
    		sc chan<- int
    		rc <-chan int
    		xs struct{}
    	)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. src/cmd/internal/test2json/testdata/vet.json

    {"Action":"output","Test":"TestVet/5","Output":"    --- PASS: TestVet/5 (0.07s)\n"}
    {"Action":"output","Test":"TestVet/5","Output":"        vet_test.go:114: files: [\"testdata/copylock_func.go\" \"testdata/rangeloop.go\"]\n"}
    {"Action":"pass","Test":"TestVet/5"}
    {"Action":"output","Test":"TestVet/3","Output":"    --- PASS: TestVet/3 (0.07s)\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  5. src/runtime/string_test.go

    		for _, sd := range stringdata {
    			b.Run(sd.name, func(b *testing.B) {
    				for i := 0; i < b.N; i++ {
    					sinkInt += len([]rune(sd.data))
    				}
    			})
    		}
    	})
    	b.Run("rangeloop", func(b *testing.B) {
    		for _, sd := range stringdata {
    			b.Run(sd.name, func(b *testing.B) {
    				for i := 0; i < b.N; i++ {
    					n := 0
    					for range sd.data {
    						n++
    					}
    					sinkInt += n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 13 14:05:23 UTC 2022
    - 13.3K bytes
    - Viewed (0)
  6. src/cmd/internal/test2json/testdata/smiley.json

    {"Action":"output","Test":"Test☺☹/5","Output":"    --- PASS: Test☺☹/5 (0.07s)\n"}
    {"Action":"output","Test":"Test☺☹/5","Output":"        vet_test.go:114: φιλεσ: [\"testdata/copylock_func.go\" \"testdata/rangeloop.go\"]\n"}
    {"Action":"pass","Test":"Test☺☹/5"}
    {"Action":"output","Test":"Test☺☹/3","Output":"    --- PASS: Test☺☹/3 (0.07s)\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 12.4K bytes
    - Viewed (0)
Back to top