Skip to content

Commit

Permalink
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/examples.md
Original file line number Diff line number Diff line change
@@ -54,11 +54,6 @@ Note that in combination with using the mock's constructor and the [`.EXPECT()`]

We recommend always interacting with the assertions through `.EXPECT()` as mockery auto-generates methods that call out to `Mock.On()` themselves, providing you with some amount of compile-time safety. Consider if all your expectations for `String()` use the `Mock.On()` methods, and you decide to add an argument to `String()` to become `String(foo string)`. Now, your existing tests will only fail when you run them. If you had used `.EXPECT()` and regenerated your mocks after changing the function signature, your IDE, and the go compiler itself, would both tell you immediately that your expectations don't match the function signature.

```
foobar
```


### Function type case

!!! bug

0 comments on commit c72170a

Please sign in to comment.