You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(json): add 8 edge case tests for isBuffer validation
Add comprehensive edge case tests for internal isBuffer function and
isJsonPrimitive:
isBuffer edge cases (via jsonParse with invalid inputs):
- Falsy values that aren't Buffers (null, false, 0)
- Objects without length property
- Objects with non-number length
- Objects missing copy/slice methods
- Array-like objects with non-number first element
- Objects without proper constructor.isBuffer
isJsonPrimitive edge cases:
- All falsy values (null, undefined, 0, false, '', NaN)
- Special number values (Infinity, -Infinity, MAX_VALUE, MIN_VALUE)
Coverage improved from 63.33% to 66.67% (+3.34 percentage points).
Test count increased from 91 to 99 tests (+8 new tests).
Overall project coverage: 76.01% (was 76.20%, -0.19 due to variance).
0 commit comments