Skip to content

Commit

Permalink
add basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
Strum355 committed Feb 12, 2024
1 parent b6d22b4 commit 4c3cd04
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 0 deletions.
Binary file removed input.a
Binary file not shown.
1 change: 1 addition & 0 deletions internal/integration-gcexportdata/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mock_test.go
4 changes: 4 additions & 0 deletions internal/integration-gcexportdata/gen.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package integrationgcexportdata

//go:generate go build -o sampletext.a .
//go:generate go run ../../cmd/go-mockgen
12 changes: 12 additions & 0 deletions internal/integration-gcexportdata/mockgen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
force: true
disable-formatting: true
mocks:
- filename: mock_test.go
package: integrationgcexportdata_test
interfaces:
- Banana
path: github.com/derision-test/go-mockgen/internal/integration-gcexportdata
source-files:
- sampletext.go
archives:
- github.com/derision-test/go-mockgen/internal/integration-gcexportdata=sampletext.a
Binary file added internal/integration-gcexportdata/sampletext.a
Binary file not shown.
5 changes: 5 additions & 0 deletions internal/integration-gcexportdata/sampletext.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package integrationgcexportdata

type Banana interface {
DoSomething() error
}

0 comments on commit 4c3cd04

Please sign in to comment.