Open GoogleCodeExporter opened 9 years ago
Grr. This was supposed to be a feature request, not a defect. Sorry.
Original comment by seanerussell
on 1 Oct 2011 at 12:37
No worries.
Can you check whether your gomock is actually up to date, and the mockgen
binary you are invoking is up to date too? The ast.ChanType thing is something
that I thought I fixed a while back.
Even with that, though, the sample won't work out of the box because of the
imports, unless you install the sample package. If you comment out all the
non-standard imports in user.go then it should work fine, though.
Original comment by dsymo...@golang.org
on 1 Oct 2011 at 2:05
Perhaps it would be possible to add the mock files to the sample Makefile? This
might allow it to clean build, and would be the equivalent of:
mock_user.go : user.go
mockgen --destination=$@ --source=$^
user_test.go : mock_user.go
Original comment by awre...@gmail.com
on 3 Oct 2011 at 10:53
Original issue reported on code.google.com by
seanerussell
on 1 Oct 2011 at 12:29