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

test: separate test cases in util/tag-selector tests #268

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

loloicci
Copy link

@loloicci loloicci commented Feb 14, 2024

What does this do / why do we need it?

This PR separates tests in util_test.go and tag_selector_test.go into sub test cases.
This improves the output of these tests and makes clear what tests succeed/fail.

How this PR fixes the problem?

Use testing.T's method Run when asserting each case.

What should your reviewer look out for in this PR?

You can see what the test changed into with go test ./... -run='Compare|TagSelector' -v

Check lists

  • Test passed
  • Coding style (indentation, etc)

Additional Comments (if any)

{Please write here}

Which issue(s) does this PR fix?

I made no ISSUEs corresponding to this PR.

Separate tests in util_test.go and tag_selector_test.go
into sub test cases.
This improves the output of these tests
and make clear what tests succeed/fail.
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

1 participant