spawn/test
A 11eff028a1
refactor: reduce complexity in shared/common.sh and test/mock.sh (#1128)
Extract pattern-matching logic in _strip_api_base() into separate helper functions (_strip_gcore_endpoint, _strip_scaleway_endpoint) to reduce function complexity from 36 lines to organized cases with extracted handlers.

Refactor ensure_api_token_with_provider() in shared/common.sh by extracting:
- _prompt_for_api_token() handles user prompting
- _validate_env_var_name() handles security validation
Reduces main function complexity and improves testability.

Agent: complexity-hunter

Co-authored-by: spawn-refactor-bot <refactor@openrouter.ai>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-14 16:24:41 -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 shared/common.sh and test/mock.sh (#1128) 2026-02-14 16:24:41 -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 discovery.sh, record.sh, and common.sh (#1123) 2026-02-14 15:44:05 -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