test: enhance test coverage for i18n and middleware functionalities#102
Merged
test: enhance test coverage for i18n and middleware functionalities#102
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.