Files
picoclaw/pkg
xiaoen 529622b7d3 test(memory): add unit, concurrency, and benchmark tests
Cover all Store interface methods plus edge cases:
- Basic roundtrip, ordering, empty session, tool calls
- Logical truncation (keep last N, keep zero, keep more than exist)
- SetHistory replacing all + resetting skip offset
- Crash recovery with partial JSON lines
- Persistence across store instances
- Concurrent add+read (10 goroutines x 20 msgs)
- Simulated #704 race (summarizer vs main loop)
- Benchmarks for AddMessage and GetHistory (100/1000 msgs)
2026-02-26 08:35:04 +08:00
..
2026-02-25 21:14:19 +11:00
2026-02-25 21:31:07 +11:00
2026-02-18 21:48:23 +02:00
2026-02-25 21:14:19 +11:00
2026-02-25 21:31:07 +11:00
2026-02-18 21:48:23 +02:00
2026-02-24 10:27:49 +11:00
2026-02-18 21:48:23 +02:00
2026-02-25 23:04:41 +08:00
2026-02-20 22:35:16 +02:00