testify/mock
Tai f1df803a70 Preserve stack frame for mock parent method call
Go tip contains following commmit, that inlines function with single
call bodies.

13baf4b2cd

`(*Call).On()` is the exact target for the improvement in Go repo. Due to
the inlining, assert.CallerInfo() can't not detect the file and line
number of the call to `(*Mock).On()` from `(*Call).On()`. Thus, the test
fails.

Adding the compiler directive `go:noinline` prevent this effect and make
mock package works with go tip as before.
2019-01-03 11:36:43 -07:00
..
doc.go Fix most golint warnings 2016-01-09 19:30:22 +01:00
mock.go Preserve stack frame for mock parent method call 2019-01-03 11:36:43 -07:00
mock_test.go Preserve stack frame for mock parent method call 2019-01-03 11:36:43 -07:00