-
Notifications
You must be signed in to change notification settings - Fork 2.1k
opts: improve and cleanup MountOpt tests #6768
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors and improves the MountOpt tests in the opts package. The changes consolidate multiple small test functions into well-organized table-driven tests, improve test coverage, and make the test suite easier to maintain.
Changes:
- Consolidated error tests into a single
TestMountOptErrorsfunction with comprehensive test cases - Refactored readonly and volume-nocopy tests into table-driven formats with expanded coverage
- Added comprehensive
TestMountOptVolumeOptionstest covering volume labels, drivers, and options - Renamed
TestMountOptSetBindNoErrorBindtoTestMountOptSourceTargetAliasesfor clarity - Removed duplicate
TestMountOptSetVolumeNoError(aliases are mount-type agnostic)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
540f7f0 to
a6e8f7d
Compare
…test Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Setting the source and target paths is not tied to the mount-type, so these tests where covering the same code. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
a6e8f7d to
77e02a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
See individual commits for details
- Human readable description for the release notes
- A picture of a cute animal (not mandatory but encouraged)