New test/test_unit.cpp covers previously untested paths:
- callback: null inputs, zero size/num, size*num overflow, normal append, multi-chunk accumulation
- Client: construction with empty/non-empty params, setTimeout (zero and positive)
- Edge cases: special characters in location query, empty query string, default param merging
- Response integrity: search always returns parseable JSON object
- Thread safety: 4 concurrent location() calls with std::call_once CURL init
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
Adds test/test_unit.cpp to cover critical gaps in test coverage. All 22 tests pass (5 existing + 17 new).
New tests
callback (8 tests)
Client construction & config (4 tests)
Edge cases / network (4 tests)
Thread safety (1 test)
What still requires mocking to test
🤖 Generated with Claude Code