Files
higress/plugins/wasm-go/extensions
johnlanni 14e7aca426 test(ai-proxy): add unit tests for Claude Code mode
Add comprehensive unit tests for Claude Code mode:
- Test claudeProviderInitializer validation and capabilities
- Test header logic for beta=true query parameter
- Test buildClaudeTextGenRequest for standard and Claude Code modes
- Test system prompt injection when missing
- Test Bash tool injection when missing
- Test deduplication of existing system prompt and tools
- Test constants and GetApiName

Note: TransformRequestHeaders and TransformRequestBody tests are skipped
as they require WASM runtime. Core logic is tested indirectly through
buildClaudeTextGenRequest tests.
2026-02-07 08:32:52 +08:00
..
2025-08-26 14:41:05 +08:00