Versions 102 to 318
new file, 165 lines
5+
6+test("numeric cache pages are detached on first and repeated reads, and rollback invalidates them", () => {
32+
37+ const values = [undefined, null, true, "metadata", 42, Array.from({ length: 256 }, (_, n) => n)];
46+ for (let i = 0; i < values.length; i++) assert.deepEqual(cache.read("rows", String(i)), values[i]);
53+
82+
108+
109+test("a rollback drops only what its transaction wrote; a nested commit's writes go with an outer rollback (abso Capacity)", () => {
118+ // A projection scratch scope: rolled back on purpose, and the rows read around it stay cached.
130+ // A nested transaction commits, then the outer one rolls back: both writes are undone, and the cache forgets both.
148+
149+test("a row over the per-row limit is read but not kept, and pushes nothing out (abso Capacity)", () => {
159+ assert.equal(source.reads, reads + 1, "the big row was read from storage once and the small one stayed cached");
- MCP
- compare on this site's /mcp
- CLI
- abso diff 102 318 src/engine/test/state-cache.test.ts --json
- JSON
- /christopher/abso-core/compare/102..318?file=src%2Fengine%2Ftest%2Fstate-cache.test.ts&format=json