Loading
test(s3s/http): add comprehensive error case tests for aws_chunked_stream (#354) (#423)
Adds 8 new test cases to improve test coverage for the aws_chunked_stream parser:
New Error Case Tests:
- `test_format_error_invalid_chunk_size` - Invalid hex in chunk size
- `test_format_error_missing_crlf` - Malformed chunk metadata
- `test_signature_mismatch` - Wrong chunk signature verification
- `test_incomplete_stream` - Stream ends prematurely
- `test_underlying_error` - Underlying stream error propagation
- `test_signed_mode_requires_signature` - Signature required in signed mode
- `test_trailer_signature_mismatch` - Trailer signature verification failure
- `test_trailer_format_error_invalid_header` - Malformed trailer headers
These tests ensure all error paths (FormatError, SignatureMismatch, Incomplete, Underlying) are properly covered and verified. Test count increased from 80 to 88.
Part of stream parser review for #354.
Signed-off-by:
Kefu Chai <tchaikov@gmail.com>