Skip to content

Commit fc17507

Browse files
committed
remove old input args
1 parent 486eb6f commit fc17507

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mock/mock.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -806,11 +806,12 @@ func (f *FunctionalOptionsArgument) String() string {
806806
return strings.Replace(fmt.Sprintf("%#v", f.value), "[]interface {}", name, 1)
807807
}
808808

809-
// FunctionalOptions returns an FunctionalOptionsArgument object containing the functional option type
810-
// and the values to check of
809+
// FunctionalOptions returns an [FunctionalOptionsArgument] object containing
810+
// the expected functional-options to check for.
811811
//
812812
// For example:
813-
// Assert(t, FunctionalOptions("[]foo.FunctionalOption", foo.Opt1(), foo.Opt2()))
813+
//
814+
// Assert(t, FunctionalOptions(foo.Opt1("strValue"), foo.Opt2(613)))
814815
func FunctionalOptions(value ...interface{}) *FunctionalOptionsArgument {
815816
return &FunctionalOptionsArgument{
816817
value: value,

0 commit comments

Comments
 (0)