summaryrefslogtreecommitdiff
path: root/vendor/github.com/golang/mock/mockgen/tests/generated_identifier_conflict/bugreport_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/golang/mock/mockgen/tests/generated_identifier_conflict/bugreport_test.go')
-rw-r--r--vendor/github.com/golang/mock/mockgen/tests/generated_identifier_conflict/bugreport_test.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/github.com/golang/mock/mockgen/tests/generated_identifier_conflict/bugreport_test.go b/vendor/github.com/golang/mock/mockgen/tests/generated_identifier_conflict/bugreport_test.go
new file mode 100644
index 0000000..3ca9807
--- /dev/null
+++ b/vendor/github.com/golang/mock/mockgen/tests/generated_identifier_conflict/bugreport_test.go
@@ -0,0 +1,26 @@
+package bugreport
+
+import (
+ "github.com/golang/mock/gomock"
+ "testing"
+)
+
+func TestExample_Method(t *testing.T) {
+ ctrl := gomock.NewController(t)
+ m := NewMockExample(ctrl)
+ m.EXPECT().Method(1, 2, 3, 4)
+
+ m.Method(1, 2, 3, 4)
+
+ ctrl.Finish()
+}
+
+func TestExample_VarargMethod(t *testing.T) {
+ ctrl := gomock.NewController(t)
+ m := NewMockExample(ctrl)
+ m.EXPECT().VarargMethod(1, 2, 3, 4, 6, 7)
+
+ m.VarargMethod(1, 2, 3, 4, 6, 7)
+
+ ctrl.Finish()
+}