-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
34 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
mock_test.go | ||
*.a |
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 integrationgcexportdata | ||
|
||
//go:generate go build -o sampletext.a . | ||
//go:generate go build -o require.a ../../testutil/require | ||
//go:generate go run ../../cmd/go-mockgen |
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,16 @@ | ||
force: true | ||
disable-formatting: true | ||
mocks: | ||
- filename: mock_test.go | ||
package: integrationgcexportdata | ||
interfaces: | ||
- Banana | ||
path: github.com/derision-test/go-mockgen/internal/integration-gcexportdata | ||
source-files: | ||
- sampletext.go | ||
archives: | ||
# need to include sources for this as its a direct dependency | ||
# (a package from which we're generating mocks) | ||
- github.com/derision-test/go-mockgen/internal/integration-gcexportdata=sampletext.a | ||
# don't need to include sources for this, as its an indirect dependency | ||
- github.com/derision-test/go-mockgen/testutil/require=require.a |
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 integrationgcexportdata | ||
|
||
import mockrequire "github.com/derision-test/go-mockgen/testutil/require" | ||
|
||
type Banana interface { | ||
DoSomething() mockrequire.CallInstanceAsserter | ||
} |
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