Skip to content

Commit

Permalink
attempt to reproduce #174
Browse files Browse the repository at this point in the history
- seems to work as expected
  • Loading branch information
joefitzgerald committed Apr 1, 2021
1 parent 1cc33e2 commit 0002986
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fixtures/externalpkg/aliased_interface.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package externalpkg

//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
//counterfeiter:generate github.com/maxbrunsfeld/counterfeiter/v6/fixtures/internalpkg.Context
67 changes: 67 additions & 0 deletions fixtures/externalpkg/externalpkgfakes/fake_context.go

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

8 changes: 8 additions & 0 deletions fixtures/internalpkg/aliased_interface.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package internalpkg

import "github.com/maxbrunsfeld/counterfeiter/v6/fixtures/internalpkg/internal"

//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
//counterfeiter:generate . Context

type Context = internal.Context
5 changes: 5 additions & 0 deletions fixtures/internalpkg/internal/internal_interface.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package internal

type Context interface {
DoSomething()
}
67 changes: 67 additions & 0 deletions fixtures/internalpkg/internalpkgfakes/fake_context.go

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

0 comments on commit 0002986

Please sign in to comment.