github.com/petergtz/pegomock@v2.9.1-0.20230424204322-eb0e044013df+incompatible/internal/verify/verify.go (about)

     1  package verify
     2  
     3  import "fmt"
     4  
     5  func Argument(arg bool, message string, a ...interface{}) {
     6  	if !arg {
     7  		panic(fmt.Sprintf(message, a...))
     8  	}
     9  }