File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -766,7 +766,15 @@ const (
766766// AnythingOfTypeArgument contains the type of an argument
767767// for use when type checking. Used in [Arguments.Diff] and [Arguments.Assert].
768768//
769- // Deprecated: this is an implementation detail that must not be used. Use [AnythingOfType] instead.
769+ // Deprecated: this is an implementation detail that must not be used. Use the [AnythingOfType] constructor instead, example:
770+ //
771+ // m.On("Do", mock.AnythingOfType("string"))
772+ //
773+ // All explicit type declarations can be replaced with interface{} as is expected by [Mock.On], example:
774+ //
775+ // func anyString interface{} {
776+ // return mock.AnythingOfType("string")
777+ // }
770778type AnythingOfTypeArgument = anythingOfTypeArgument
771779
772780// anythingOfTypeArgument is a string that contains the type of an argument
You can’t perform that action at this time.
0 commit comments