summaryrefslogtreecommitdiff
path: root/vendor/github.com/golang/mock/mockgen/tests/unexported_method/bugreport_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/golang/mock/mockgen/tests/unexported_method/bugreport_test.go')
-rw-r--r--vendor/github.com/golang/mock/mockgen/tests/unexported_method/bugreport_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/github.com/golang/mock/mockgen/tests/unexported_method/bugreport_test.go b/vendor/github.com/golang/mock/mockgen/tests/unexported_method/bugreport_test.go
new file mode 100644
index 0000000..d428fb4
--- /dev/null
+++ b/vendor/github.com/golang/mock/mockgen/tests/unexported_method/bugreport_test.go
@@ -0,0 +1,17 @@
+package bugreport
+
+import (
+ "testing"
+
+ "github.com/golang/mock/gomock"
+)
+
+func TestCallExample(t *testing.T) {
+ ctrl := gomock.NewController(t)
+ defer ctrl.Finish()
+
+ e := NewMockExample(ctrl)
+ e.EXPECT().someMethod(gomock.Any()).Return("it works!")
+
+ CallExample(e)
+}