Skip to content

🧪 [testing improvement] Add edge case tests for FileUtils filename me… - #364

Open
keeganwitt wants to merge 1 commit into
groovy:masterfrom
keeganwitt:testing-improvement-fileutils-edge-cases-14163158433031442846
Open

🧪 [testing improvement] Add edge case tests for FileUtils filename me…#364
keeganwitt wants to merge 1 commit into
groovy:masterfrom
keeganwitt:testing-improvement-fileutils-edge-cases-14163158433031442846

Conversation

@keeganwitt

Copy link
Copy Markdown
Member

…thods

Added comprehensive edge case tests for getFileExtension and getNameWithoutExtension methods in FileUtils.java. Scenarios covered:

  • Standard file with extension
  • File with multiple dots (multiple extensions)
  • File with no extension
  • Hidden files (leading dot)
  • Directory references ('.', '..')
  • File ending with a dot
  • Empty string
  • Path with dots in directory names

These tests increase the reliability and coverage of the core utility methods used for filename manipulation.

…thods

Added comprehensive edge case tests for `getFileExtension` and `getNameWithoutExtension` methods in `FileUtils.java`.
Scenarios covered:
- Standard file with extension
- File with multiple dots (multiple extensions)
- File with no extension
- Hidden files (leading dot)
- Directory references ('.', '..')
- File ending with a dot
- Empty string
- Path with dots in directory names

These tests increase the reliability and coverage of the core utility methods used for filename manipulation.

Co-authored-by: keeganwitt <64612+keeganwitt@users.noreply.github.com>
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