barum / gomock

Automatically exported from code.google.com/p/gomock
Apache License 2.0
0 stars 0 forks source link

Mockgen produces incorrect output #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Mockgen produces invalid output on the attached file.

What is the expected output? What do you see instead?
The function on line 64 of the produced output has incorrect arguments.

mockgen --source=log_outer.go --destination=mock_log_outer.go --package=golog

GOROOT/src/pkg/gomock.googlecode.com/hg$ hg identify
aca9ae018061 go.r60

GOROOT$ hg identify
9c743824e7d6+ tip
(I'm working on a patch to the json package, the only files I have modified are 
in the json folder)

Ubuntu 10.04 Intel x86

Original issue reported on code.google.com by awre...@gmail.com on 11 Oct 2011 at 7:11

Attachments:

GoogleCodeExporter commented 9 years ago
Looks like it breaks due to a mocked method having no arguments except a 
dotdotdot argument.

Original comment by dsymo...@golang.org on 11 Oct 2011 at 10:46

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 9aff7dfd2ebb.

Original comment by dsymo...@golang.org on 11 Oct 2011 at 10:01