Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 77f22c2

Browse files
committed
add test
1 parent 208c772 commit 77f22c2

File tree

5 files changed

+68
-0
lines changed

5 files changed

+68
-0
lines changed

mockgen/tests/vendor_dep/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Test for [Issue#4](https://github.com/golang/mock/issues/4).
2+
Also see discussion on [#28](https://github.com/golang/mock/pull/28).

mockgen/tests/vendor_dep/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package vendor_dep
2+
3+
//go:generate mockgen -package vendor_dep -destination mock.go github.com/golang/mock/mockgen/tests/vendor_dep VendorsDep

mockgen/tests/vendor_dep/mock.go

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package a
2+
3+
type Ifc interface {
4+
A(string) string
5+
B(int) int
6+
C(chan int) chan int
7+
D(interface{})
8+
E(map[string]interface{})
9+
F([]float64)
10+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package vendor_dep
2+
3+
import "a"
4+
5+
type VendorsDep interface {
6+
Foo() a.Ifc
7+
}

0 commit comments

Comments
 (0)