Skip to content

馃И [testing improvement] add edge case tests for folder_of - #7

Merged
rolze merged 1 commit into
mainfrom
testing-improvement-folder-of-12426925021129806568
May 20, 2026
Merged

rolze merged 1 commit into
mainfrom
testing-improvement-folder-of-12426925021129806568

Conversation

@rolze

@rolze rolze commented May 20, 2026

Copy link
Copy Markdown
Owner

Added comprehensive unit tests for the folder_of function in mex/src/db.rs. The tests cover various scenarios including:

  • Normal and nested paths
  • Paths with no slashes
  • Empty strings
  • Leading and trailing slashes
  • Multiple consecutive slashes
  • Only slash path

These tests ensure the function handles edge cases correctly and provide a safety net for future refactoring.

Added comprehensive unit tests for the `folder_of` function in `mex/src/db.rs`.
The tests cover various scenarios including:
- Normal and nested paths
- Paths with no slashes
- Empty strings
- Leading and trailing slashes
- Multiple consecutive slashes
- Only slash path

These tests ensure the function handles edge cases correctly and provide a safety net for future refactoring.

Co-authored-by: rolze <1905145+rolze@users.noreply.github.com>
@rolze
rolze merged commit e1aa7c5 into main May 20, 2026
1 check passed
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