github.com/chenfeining/golangci-lint@v1.0.2-0.20230730162517-14c6c67868df/test/testdata/exhaustive.go (about) 1 //golangcitest:args -Eexhaustive 2 package testdata 3 4 type Direction int 5 6 const ( 7 North Direction = iota 8 East 9 South 10 West 11 ) 12 13 func processDirection(d Direction) { 14 switch d { // want "missing cases in switch of type testdata.Direction: testdata.East, testdata.West" 15 case North, South: 16 } 17 }