github.com/nozzle/golangci-lint@v1.49.0-nz3/test/testdata/exhaustive_generated.go (about) 1 //golangcitest:args -Eexhaustive 2 //golangcitest:expected_exitcode 0 3 package testdata 4 5 // Code generated by some program. DO NOT EDIT. 6 7 // Should not report missing cases in the switch statement below, because this 8 // is a generated file as indicated by the above comment 9 // (golang.org/s/generatedcode), and check-generated setting is false. 10 11 type Direction int 12 13 const ( 14 North Direction = iota 15 East 16 South 17 West 18 ) 19 20 func processDirectionGenerated(d Direction) { 21 switch d { 22 case North, South: 23 } 24 }