Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 303 Bytes
package gen
import (
"reflect"
"github.com/leanovate/gopter"
)
// Fail is a generator that always fails to generate a value
// Useful as fallback
func Fail(resultType reflect.Type) gopter.Gen {
return func(*gopter.GenParameters) *gopter.GenResult {
return gopter.NewEmptyResult(resultType)
}
}
You can’t perform that action at this time.