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 aad3571 commit fe03e28
Show file tree
Hide file tree
Showing 8 changed files with 481 additions and 352 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
241 changes: 241 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.

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

This file was deleted.

2 changes: 1 addition & 1 deletion mocks/pkg/fixtures/RequesterVariadicOneArgument.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 fe03e28

Please sign in to comment.