Skip to content

Commit

Permalink
Move generated ExpecterTest to mocks directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Gevrai Jodoin-Tremblay committed Apr 26, 2022
1 parent 9f67b8a commit f9cad3c
Show file tree
Hide file tree
Showing 8 changed files with 513 additions and 353 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ test: mocks
mocks: $(shell find . -type f -name '*.go' -not -name '*_test.go')
go run . --dir pkg/fixtures --output mocks/pkg/fixtures
go run . --all=false --print --dir pkg/fixtures --name RequesterVariadic --structname RequesterVariadicOneArgument --unroll-variadic=False > mocks/pkg/fixtures/RequesterVariadicOneArgument.go
go run . --all=false --print --dir pkg/fixtures --name Expecter --with-expecter > mocks/pkg/fixtures/Expecter.go
@touch mocks

.PHONY: install
Expand Down
242 changes: 242 additions & 0 deletions mocks/pkg/fixtures/Expecter.go

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

103 changes: 0 additions & 103 deletions mocks/pkg/fixtures/ExpecterTest.go

This file was deleted.

31 changes: 31 additions & 0 deletions mocks/pkg/fixtures/example_project/context/CollideWithStdLib.go

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

2 changes: 1 addition & 1 deletion pkg/fixtures/expecterTest.go → pkg/fixtures/expecter.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package test

type ExpecterTest interface {
type Expecter interface {
NoArg() string
NoReturn(str string)
ManyArgsReturns(str string, i int) (strs []string, err error)
Expand Down
Loading

0 comments on commit f9cad3c

Please sign in to comment.