Versions 5 to 318
new file, 70 lines
8+
15+ storage.sql.exec("INSERT INTO git_pack_spool VALUES (?, ?, ?)", "abandoned", 0, new Uint8Array([1, 2]));
21+
22+test("pack spool verifies real pack bytes and serves bounded ranges across chunk boundaries", async (t) => {
29+ for (let i = 0; i < 4; i++) oids.push(await git.writeBlob({ fs, dir, blob: randomBytes(180000) }));
37+ assert.equal(await spool.ingest(source(), 1000000), Buffer.from(bytes.subarray(-20)).toString("hex"));
41+ assert.deepEqual(spool.read(start, length), new Uint8Array(bytes.subarray(start, start + length)));
- MCP
- compare on this site's /mcp
- CLI
- abso diff 5 318 server/test/git-pack-spool.test.ts --json
- JSON
- /christopher/abso-core/compare/5..318?file=server%2Ftest%2Fgit-pack-spool.test.ts&format=json