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

Move test helpers from docs_test.go to helpers_test.go #1846

Closed
wants to merge 3 commits into from

Conversation

dolmen
Copy link
Contributor

@dolmen dolmen commented Dec 21, 2023

What type of PR is this?

  • cleanup

What this PR does / why we need it:

Refactor unit tests to move test helpers (testApp, expectFileContent) from docs_test.go into the existing helpers_test.go. Those helpers are used by both docs_test.go and fish_test.go.

Why? I will soon propose to add build tags in docs.go to allow to skip the features it provides, and those dependencies get in the way.

Release Notes

NONE

dearchap and others added 3 commits August 21, 2022 14:15
Correct the documentation for precedence
Move test helpers (which are also used in fish_test.go) out of
docs_test.go and into the existing helpers_test.go.

This will allow to use build tags to exclude features exposed by
docs.go.
@dolmen dolmen requested a review from a team as a code owner December 21, 2023 11:42
@dolmen dolmen marked this pull request as draft December 21, 2023 12:18
@dolmen dolmen closed this Dec 21, 2023
@dolmen
Copy link
Contributor Author

dolmen commented Dec 21, 2023

Wong branch.

@dolmen
Copy link
Contributor Author

dolmen commented Dec 21, 2023

Build tag is already available in #1375.

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.

None yet

2 participants