Skip to content

Commit

Permalink
remove old input args
Browse files Browse the repository at this point in the history
  • Loading branch information
snirye committed Jul 30, 2023
1 parent 486eb6f commit fc17507
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -806,11 +806,12 @@ func (f *FunctionalOptionsArgument) String() string {
return strings.Replace(fmt.Sprintf("%#v", f.value), "[]interface {}", name, 1)
}

// FunctionalOptions returns an FunctionalOptionsArgument object containing the functional option type
// and the values to check of
// FunctionalOptions returns an [FunctionalOptionsArgument] object containing
// the expected functional-options to check for.
//
// 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 {
return &FunctionalOptionsArgument{
value: value,
Expand Down

0 comments on commit fc17507

Please sign in to comment.