Skip to content

test: rename test-wipe-lib.sh to test_is_usb_device.sh (FR-096) - #46

Open
Avicennasis wants to merge 1 commit into
mainfrom
fix/fr-096-test-names
Open

Avicennasis wants to merge 1 commit into
mainfrom
fix/fr-096-test-names

Conversation

@Avicennasis

Copy link
Copy Markdown
Member

Closes #48088.

tests/test-wipe-lib.sh (hyphen) and tests/test_wipe-lib.sh (underscore) differ by one character, but they are not duplicates — they test different functions:

  • test-wipe-lib.shis_usb_device()
  • test_wipe-lib.shdetect_drive_type()
  • test_wipe-lib.batsnist_method_for_type()

There is no overlapping coverage, so nothing was merged; the misleading hyphen/underscore symmetry was the actual hazard. The hyphenated file is renamed to test_is_usb_device.sh and its header now says which function it covers.

🤖 Generated with opencode

tests/test-wipe-lib.sh and tests/test_wipe-lib.sh differed by one character
but test different functions (is_usb_device vs detect_drive_type). Rename the
hyphenated one to say what it covers.

@Avicennasis Avicennasis left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Reviewed exact head d5bdec9b84041385074fc383296fc3e69fbe6534. The rename is complete in the tree, executable mode is preserved, and the header now distinguishes this is_usb_device() coverage from the underscore-named detect_drive_type() test. The renamed test passed, as did the available test_autorun0, overwrite-rounds, setup-results-dir, and verify-wipe shell suites. git diff --check is clean and GitHub's checks are green.

No issue found. I could not run the separate .bats suite because bats is not installed in this environment; this PR does not alter that suite.

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.

1 participant