Commit e735cb3
committed
feat: simplify mock handling
mockgen generated mocks are now expected to be:
* in the same directory as the _test.go files
* suffixed _mock_test.go, so they are handled correctly by the go
tooling (ignored during build, coverage calculation etc.)
* in the same package as the _test.go files
Example:
mockgen -source=foo.go -package=foo_test -destination=foo_mock_test.go -write_generate_directive1 parent 12ad9cb commit e735cb3
3 files changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
32 | 31 | | |
0 commit comments