-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add integration test to validate type aliases are treated correctly
Signed-off-by: Joe Fitzgerald <[email protected]>
- Loading branch information
1 parent
ac22042
commit 241cc37
Showing
6 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/maxbrunsfeld/counterfeiter/v6/fixtures/dup_packages | ||
|
||
go 1.12 | ||
go 1.22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package extra // import "github.com/maxbrunsfeld/counterfeiter/v6/fixtures/type_aliases/extra" | ||
|
||
import "github.com/maxbrunsfeld/counterfeiter/v6/fixtures/type_aliases/extra/primitive" | ||
|
||
type M = primitive.M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package primitive // import "github.com/maxbrunsfeld/counterfeiter/v6/fixtures/type_aliases/primitive" | ||
|
||
type M map[string]interface{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module github.com/maxbrunsfeld/counterfeiter/v6/fixtures/type_aliases | ||
|
||
go 1.22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package type_aliases // import "github.com/maxbrunsfeld/counterfeiter/v6/fixtures/type_aliases" | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/maxbrunsfeld/counterfeiter/v6/fixtures/type_aliases/extra" | ||
) | ||
|
||
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate | ||
|
||
//counterfeiter:generate . WithAliasedType | ||
type WithAliasedType interface { | ||
FindExample(ctx context.Context, filter extra.M) ([]string, error) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters