-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Description
Description
The argument parser currently has limited test coverage for edge cases. Add comprehensive unit tests covering boundary values, invalid inputs, and type coercion edge cases.
Requirements
- Test max and min values for all integer types (u32, i32, u64, i64)
- Test empty string and whitespace-only string inputs
- Test deeply nested Vec and Map structures
- Test invalid JSON (malformed, trailing commas, wrong brackets)
- Test null values in non-optional positions
- Target: 90%+ coverage of
parse_args()
Suggested Execution
- Branch:
git checkout -b test/arg-parser-edge-cases - Open
src/runtime/executor.rs(orparser.rsafter refactor) - Add test module at bottom of file with
#[cfg(test)] - Write tests for every edge case listed
- Run
cargo testand verify all pass - Commit:
test: add edge case unit tests for argument parser
Acceptance Criteria
- Tests for all integer boundary values
- Tests for invalid JSON inputs
- Tests for deeply nested structures
- Tests for null in non-optional positions
- All tests pass
- Coverage of
parse_args()reaches 90%+
Reactions are currently unavailable