Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
snirye committed Jul 25, 2023
1 parent 663f4e4 commit a637178
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ type AnythingOfTypeArgument string
//
// For example:
//
// Assert(t, AnythingOfType("string"), AnythingOfType("int"))
// Assert(t, AnythingOfType("string"), AnythingOfType("int"))
func AnythingOfType(t string) AnythingOfTypeArgument {
return AnythingOfTypeArgument(t)
}
Expand All @@ -784,7 +784,8 @@ type IsTypeArgument struct {
// alternative to AnythingOfType. Used in Diff and Assert.
//
// For example:
// Assert(t, IsType(""), IsType(0))
//
// Assert(t, IsType(""), IsType(0))
func IsType(t interface{}) *IsTypeArgument {
return &IsTypeArgument{t: t}
}
Expand All @@ -810,7 +811,8 @@ func (f *FunctionalOptionsArgument) String() string {
// the expected functional-option to check for
//
// For example:
// Assert(t, FunctionalOptions(foo.Opt1("strValue"), foo.Opt2(613)))
//
// Assert(t, FunctionalOptions(foo.Opt1("strValue"), foo.Opt2(613)))
func FunctionalOptions(value ...interface{}) *FunctionalOptionsArgument {
return &FunctionalOptionsArgument{
value: value,
Expand Down

0 comments on commit a637178

Please sign in to comment.