github.com/nozzle/golangci-lint@v1.49.0-nz3/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 Direction: East, West"
    15  	case North, South:
    16  	}
    17  }