Summary
The cursor encoding helper (base64 encode/decode of pagination metadata) is used across all paginated endpoints but has no unit tests. Tests should confirm round-trip correctness and safe handling of edge cases like empty cursors and malformed input.
Scope
- Test encode followed by decode returns the original value for a standard cursor object
- Test decoding an empty string returns null without throwing
- Test decoding a non-base64 string returns null without throwing
- Test cursor object with special characters (spaces, slashes) survives the round trip
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The cursor encoding helper (base64 encode/decode of pagination metadata) is used across all paginated endpoints but has no unit tests. Tests should confirm round-trip correctness and safe handling of edge cases like empty cursors and malformed input.
Scope
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram