-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for package import of type alias
- Loading branch information
1 parent
ab5b7bc
commit 9311dad
Showing
6 changed files
with
98 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
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
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 alias | ||
|
||
import "github.com/matryer/moq/pkg/moq/testpackages/typealiaspkgimport/internal/message" | ||
|
||
type Message = message.Message |
3 changes: 3 additions & 0 deletions
3
pkg/moq/testpackages/typealiaspkgimport/internal/message/message.go
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 message | ||
|
||
type Message struct{} |
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,7 @@ | ||
package typealiaspkgimport | ||
|
||
import "github.com/matryer/moq/pkg/moq/testpackages/typealiaspkgimport/alias" | ||
|
||
type Processor interface { | ||
Process(msg alias.Message) error | ||
} |
74 changes: 74 additions & 0 deletions
74
pkg/moq/testpackages/typealiaspkgimport/processor_moq.golden.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.