test: Add comprehensive tests for claude_config handler
- 31 test cases for name validation (valid/invalid patterns) - Security tests for path traversal and injection attacks - Content size limit enforcement tests - Base64 encoding verification tests - JSON serialization tests - Route mounting tests - Edge case tests (empty body, null body, etc.) - Benchmarks for isValidName and base64 encoding Handler coverage: 40.1% → 73.2% Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
538ea57ed4
commit
214d1c8a4c
1185
internal/handlers/claude_config_test.go
Normal file
1185
internal/handlers/claude_config_test.go
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user