spawn/test
A 2f75c5b695
refactor: reduce complexity in test/mock.sh by extracting embedded script (#1112)
Extracted the large 270-line embedded mock curl script from the
setup_mock_curl() function into a separate file (mock-curl-script.sh).
This reduces setup_mock_curl() from 270 lines to 6 lines, improving
readability and maintainability.

The refactoring:
- Creates test/mock-curl-script.sh with all mock curl implementation
- Simplifies setup_mock_curl() to copy the external script
- Maintains identical functionality (all tests pass)
- Makes the mock curl logic easier to understand and modify

Agent: complexity-hunter

Co-authored-by: Spawn Refactor Service <refactor@spawn.service>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-14 12:43:59 -05:00
..
fixtures test: add missing API assertion fixtures and body validation for 8 cloud providers (#1107) 2026-02-14 11:46:49 -05:00
mock-curl-script.sh refactor: reduce complexity in test/mock.sh by extracting embedded script (#1112) 2026-02-14 12:43:59 -05:00
mock.sh refactor: reduce complexity in test/mock.sh by extracting embedded script (#1112) 2026-02-14 12:43:59 -05:00
qa-dry-run.sh feat: qa bot and emails (#565) 2026-02-11 20:19:45 -08:00
record.sh refactor: reduce complexity in test/mock.sh and test/record.sh (#1102) 2026-02-14 10:43:19 -05:00
run.sh fix(security): harden weak crypto fallbacks, key validation, and temp paths (#1039) 2026-02-13 21:43:37 -05:00
update-readme.py QA-Bot setup (#335) 2026-02-10 19:51:07 -08:00