Standard library / testing/quick
testing/quick.SetupError
Represents misuse of the testing API rather than a false property; distinguish it from CheckError. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
type SetupError stringWorking Example
Example Snippetgo
package main
import ( "errors" "fmt" "testing/quick")
func main() { err := quick.Check(42, nil); var e quick.SetupError; fmt.Println(errors.As(err, &e)) }