mirror of
https://github.com/tiennm99/rplace.git
synced 2026-10-11 03:13:48 +00:00
test: add Redis integration tests with Testcontainers
Docker-based tests with real Redis verifying: - BITFIELD write → GETRANGE read round-trip for all 32 colors - Pixel placement at canvas boundaries and various positions - Pixel overwrite correctness - 5-bit boundary isolation (adjacent pixels don't corrupt) - Batch atomicity (100 pixels in single BITFIELD) - Rate limiter Lua script: credit grant, deduction, regen, cap, rejection Test commands: npm test (unit), npm run test:integration (Docker), npm run test:all (both). 82 total tests.
This commit is contained in:
1 parent
fcddb1f9c5
commit
8e1f8c4049
5 files changed
+2434
-2
No files matched your search
Generated
+2182
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user