summaryrefslogtreecommitdiff
path: root/vendor/github.com/golang/mock/mockgen/tests/unexported_method/bugreport.go
blob: 91d5baf7b41ed4a1cd77fa6fc125c9c41e64b4a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"))
}