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.
This pull request significantly expands and improves the test coverage for the project, especially around configuration serialization/deserialization and parser edge cases. It introduces a new test module for configuration roundtrip tests, adds comprehensive parser edge case tests, and improves documentation of existing tests. Additionally, it updates development dependencies to support the new tests.
New and Expanded Test Coverage:
src/tests/config_roundtrip.rswith tests forUserConfigserialization/deserialization, including roundtrip, custom values, partial configs, and format stability.src/tests/parser_edge.rsto cover edge cases in the parser, such as empty input, missing/invalid fields, unknown fields, malformed lines, whitespace handling, and real-world output.src/tests/source_error.rsto test error handling and output offetch_hyprctl_binds.Test Infrastructure:
tempfileas a development dependency inCargo.tomlto support temporary file creation in tests.src/tests/mod.rsfor configuration roundtrip, parser edge cases, and source error tests.Test Documentation Improvements:
src/tests/icons.rs,src/tests/models.rs,src/tests/parser.rs, andsrc/tests/table.rsto clarify test intent and improve maintainability. [1] [2] [3] [4] [5] [6]