mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-20 18:23:47 +00:00
722ea83b5d
16 test cases covering: - Basic rate limiting with Allow() (limit enforcement, different IPs) - Sliding window behavior (time-based expiry, partial expiry) - Edge cases (zero limit, large limit, empty IP) - Cleanup routine (full cleanup, partial cleanup) - Concurrent access (thread safety with 100 parallel attempts) - Middleware integration (allowed/denied paths, X-Forwarded-For) First test file for internal/api package.