Skip to content

test: enhance test coverage for i18n and middleware functionalities#102

Merged
soulteary merged 3 commits intomainfrom
2026-01-07-2csw
Jan 7, 2026
Merged

test: enhance test coverage for i18n and middleware functionalities#102
soulteary merged 3 commits intomainfrom
2026-01-07-2csw

Conversation

@soulteary
Copy link
Copy Markdown
Owner

No description provided.

- Added new test cases for valid and invalid locale codes in i18n tests.
- Introduced error handling and case insensitivity tests for directory scanning in io tests.
- Expanded middleware tests to cover request body handling and error scenarios in dumper functionality.
- Implemented edge case tests for rate limiting and hook functionalities, ensuring robust behavior under various conditions.
- Initialized result slice in ScanDirByExt function for clarity.
- Updated LoadLocaleFiles function to return an empty list instead of a fatal error when embedFS is unavailable, allowing tests to run without populated embedFS.
- Improved error handling in LoadLocaleFiles to prevent fatal errors when embedFS is unavailable.
- Added new test cases for error scenarios in i18n, ensuring better coverage and robustness.
@soulteary soulteary merged commit 995e6e5 into main Jan 7, 2026
3 checks passed
@soulteary soulteary deleted the 2026-01-07-2csw branch January 7, 2026 16:19
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