From 621e49bb465f500cc46d47e39e828cf76d6381d7 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 24 Jul 2018 14:35:44 +0200 Subject: update vendor --- .../mock/mockgen/tests/unexported_method/bugreport.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 vendor/github.com/golang/mock/mockgen/tests/unexported_method/bugreport.go (limited to 'vendor/github.com/golang/mock/mockgen/tests/unexported_method/bugreport.go') diff --git a/vendor/github.com/golang/mock/mockgen/tests/unexported_method/bugreport.go b/vendor/github.com/golang/mock/mockgen/tests/unexported_method/bugreport.go new file mode 100644 index 0000000..91d5baf --- /dev/null +++ b/vendor/github.com/golang/mock/mockgen/tests/unexported_method/bugreport.go @@ -0,0 +1,15 @@ +//go:generate mockgen -destination bugreport_mock.go -package bugreport -source=bugreport.go Example + +package bugreport + +import "fmt" + +// Example is an interface with a non exported method +type Example interface { + someMethod(string) string +} + +// CallExample is a simple function that uses the interface +func CallExample(e Example) { + fmt.Println(e.someMethod("test")) +} -- cgit v1.2.3