github.com/leanovate/gopter@v0.2.9/gen/bool.go (about) 1 package gen 2 3 import "github.com/leanovate/gopter" 4 5 // Bool generates an arbitrary bool value 6 func Bool() gopter.Gen { 7 return func(genParams *gopter.GenParameters) *gopter.GenResult { 8 return gopter.NewGenResult(genParams.NextBool(), gopter.NoShrinker) 9 } 10 }