Files
clawsec/skills
David Abutbul cd7bdd95a0 auto-claude: subtask-5-2 - Write unit tests for feed reader
Added comprehensive unit tests for feed-reader module covering:
- Package specifier parsing (parseAffectedSpecifier)
- Feed payload validation (isValidFeedPayload)
- Ed25519 signature verification (verifySignedPayload)
- Checksum URL generation (defaultChecksumsUrl)
- Local feed loading with signature/checksum verification
- Security validation and error handling

Enhanced test harness with crypto utilities:
- generateEd25519KeyPair() for test key generation
- signPayload() for creating test signatures

All 24 tests passing.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-27 21:27:03 +02:00
..