Skip to content

Commit

Permalink
prove that imported foreign interfaces are found
Browse files Browse the repository at this point in the history
- Fixes #87
- Fixes #88
  • Loading branch information
joefitzgerald committed Oct 14, 2018
1 parent d68f4b0 commit d8c3326
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fixtures/something_remote.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package fixtures

import "github.com/maxbrunsfeld/counterfeiter/fixtures/aliased_package"

//go:generate counterfeiter . SomethingWithForeignInterface

// SomethingWithForeignInterface is an interface that embeds a foreign interface.
type SomethingWithForeignInterface interface {
the_aliased_package.InAliasedPackage
}
1 change: 1 addition & 0 deletions integration/roundtrip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ func runTests(useGopath bool, t *testing.T, when spec.G, it spec.S) {
t("SecondInterface", "multiple_interfaces.go")
t("RequestFactory", "request_factory.go")
t("ReusesArgTypes", "reuses_arg_types.go")
t("SomethingWithForeignInterface", "something_remote.go", filepath.Join("aliased_package", "in_aliased_package.go"))
t("Something", "something.go")
t("SomethingFactory", "typed_function.go")

Expand Down

0 comments on commit d8c3326

Please sign in to comment.