Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ikolomiyets
Copy link

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.

Igor Kolomiyets 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