Commit 8b433fd
committed
refactor(upload): add c8 ignore for form-data error event handlers
Add c8 ignore comment for form-data and request error event handlers
that require stream failures difficult to test reliably.
The form-data library handles errors internally and emits them via the
'error' event. Testing these error paths would require:
- Simulating stream corruption during multipart encoding
- Forcing the form-data library to fail during boundary generation
- Creating network failures at precise moments during streaming
These scenarios are difficult to reproduce reliably in tests and are
better handled by form-data's own test suite.
Coverage notes:
- Lines 169-170 now properly marked as c8 ignore
- Maintains overall coverage of 81.19%
- Does not reduce coverage of testable code paths1 parent 93c454e commit 8b433fd
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
| |||
0 commit comments