Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve stack frame for mock parent method call
Go tip contains following commmit, that inlines function with single call bodies. golang/go@13baf4b `(*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.
- Loading branch information