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

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
rgarcia committed Feb 7, 2018
1 parent 208c772 commit 77f22c2
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mockgen/tests/vendor_dep/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Test for [Issue#4](https://github.com/golang/mock/issues/4).
Also see discussion on [#28](https://github.com/golang/mock/pull/28).
3 changes: 3 additions & 0 deletions mockgen/tests/vendor_dep/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package vendor_dep

//go:generate mockgen -package vendor_dep -destination mock.go github.com/golang/mock/mockgen/tests/vendor_dep VendorsDep
46 changes: 46 additions & 0 deletions mockgen/tests/vendor_dep/mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions mockgen/tests/vendor_dep/vendor/a/a.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package a

type Ifc interface {
A(string) string
B(int) int
C(chan int) chan int
D(interface{})
E(map[string]interface{})
F([]float64)
}
7 changes: 7 additions & 0 deletions mockgen/tests/vendor_dep/vendor_dep.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package vendor_dep

import "a"

type VendorsDep interface {
Foo() a.Ifc
}

0 comments on commit 77f22c2

Please sign in to comment.