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

rf: does not refactor definitions inside *pkg*_test files #18

Open
magodo opened this issue Apr 22, 2021 · 0 comments
Open

rf: does not refactor definitions inside *pkg*_test files #18

magodo opened this issue Apr 22, 2021 · 0 comments

Comments

@magodo
Copy link

magodo commented Apr 22, 2021

Got following files:

$ ls
foo_test.go  go.mod  go.sum

$ cat foo_test.go
package foo_test

var X int

$ rf -diff 'mv X Y'
cannot find X
rf: errors found during: mv X Y

There is a similar issue #1 got resolved. The discrepency of this issue is that X is defined in the test package, rather than defined elsewhere.
Additionally, changing the package name from foo_test to foo, then this issue doesn't exist.

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

No branches or pull requests

1 participant