Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make fixtures part of tests (redux) #3118

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

Closed

Conversation

stephenfin
Copy link
Contributor

In commit c71fc9d, we renamed 'fixtures' to 'fixtures_test' to avoid them getting picked up as part of the public API by tools like go-apidiff. Unfortunately a few more of these have crept in in the meantime. Resolve them now.

for f in $(find . -name fixtures.go); do
    git mv -- "$f" "$(dirname $f)/fixtures_test.go"
done

Signed-off-by: Stephen Finucane [email protected]

In commit c71fc9d, we renamed
'fixtures' to 'fixtures_test' to avoid them getting picked up as part of
the public API by tools like go-apidiff. Unfortunately a few more of
these have crept in in the meantime. Resolve them now.

    for f in $(find . -name fixtures.go); do
        git mv -- "$f" "$(dirname $f)/fixtures_test.go"
    done

Signed-off-by: Stephen Finucane <[email protected]>
@github-actions github-actions bot added the semver:major Breaking change label Jul 17, 2024
Copy link
Contributor

@mandre mandre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not going to work for reasons explained in #2811. These files are imported in other tests and we need to keep them public.

@mandre mandre added the hold Do not merge label Jul 17, 2024
@stephenfin stephenfin closed this Jul 17, 2024
@stephenfin stephenfin deleted the non-public-fixtures branch July 17, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hold Do not merge semver:major Breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants