mirror of https://github.com/stretchr/testify.git
assert.FunctionalOptions: fix go doc
parent
632a26080f
commit
f1b5324b90
|
@ -819,11 +819,12 @@ func (f *FunctionalOptionsArgument) String() string {
|
||||||
return strings.Replace(fmt.Sprintf("%#v", f.value), "[]interface {}", name, 1)
|
return strings.Replace(fmt.Sprintf("%#v", f.value), "[]interface {}", name, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FunctionalOptions returns an FunctionalOptionsArgument object containing the functional option type
|
// FunctionalOptions returns an [FunctionalOptionsArgument] object containing
|
||||||
// and the values to check of
|
// the expected functional-options to check for.
|
||||||
//
|
//
|
||||||
// For example:
|
// For example:
|
||||||
// Assert(t, FunctionalOptions("[]foo.FunctionalOption", foo.Opt1(), foo.Opt2()))
|
//
|
||||||
|
// Assert(t, FunctionalOptions(foo.Opt1("strValue"), foo.Opt2(613)))
|
||||||
func FunctionalOptions(value ...interface{}) *FunctionalOptionsArgument {
|
func FunctionalOptions(value ...interface{}) *FunctionalOptionsArgument {
|
||||||
return &FunctionalOptionsArgument{
|
return &FunctionalOptionsArgument{
|
||||||
value: value,
|
value: value,
|
||||||
|
|
Loading…
Reference in New Issue