Skip to content

#262: Adding "test" mode for the Fakes to get generated intot he same package#263

Open
ikolomiyets wants to merge 9 commits intomaxbrunsfeld:mainfrom
ikolomiyets:master
Open

#262: Adding "test" mode for the Fakes to get generated intot he same package#263
ikolomiyets wants to merge 9 commits intomaxbrunsfeld:mainfrom
ikolomiyets:master

Conversation

@ikolomiyets
Copy link
Copy Markdown

This PR is related to the issue #262.
The idea here is that a new argument '-t' is getting introduced which is mutually exclusive with '-p' and '-o' as it is generates fake implementation to the same package into the _test.go package.

ikolomiyets and others added 9 commits October 5, 2023 18:22
counterfeiter to generate fakes in the same package
in the _test.go files, so in case the interface is
defined in the same package where it is used there
won't be circular dependency.
…y, in case fakes are generated into the same package's _test.go file.
Ensured that '-t' option is not mixed up with '-p' or '-o'.
Revering io.Discard back to ioutil.Discard as it is irrelevant to this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant