File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -766,7 +766,15 @@ const (
766
766
// AnythingOfTypeArgument contains the type of an argument
767
767
// for use when type checking. Used in [Arguments.Diff] and [Arguments.Assert].
768
768
//
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
+ // }
770
778
type AnythingOfTypeArgument = anythingOfTypeArgument
771
779
772
780
// anythingOfTypeArgument is a string that contains the type of an argument
You can’t perform that action at this time.
0 commit comments