Versions 2 to 318
new file, 88 lines
8+
9+test("Git writes and reads exact objects while filesystem entries retain no content bytes", async (t) => {
41+ for (const entry of fs.entries.values()) if (entry.kind === "file") assert.equal(entry.data.byteLength, 0);
42+ assert.ok(Number(storage.db.prepare("SELECT MAX(length(data)) AS n FROM git_fs_chunks").get()!.n) <= 65536);
44+ assert.equal((await fs.stat(reference)).size, ((await fs.readFile(reference)) as Uint8Array).byteLength);
46+
47+test("Git scratch replacement failure preserves old contents, metadata and budget", async (t) => {
55+ if (query.startsWith("INSERT INTO git_fs_chunks") && bindings[2] === 1) throw Error("injected chunk failure");
58+ await assert.rejects(() => fs.writeFile("/file", new Uint8Array(70000)), /injected chunk failure/);
69+
70+test("cold Git file recovery preserves canonical rows and active scopes dispose independently", (t) => {
85+ assert.equal(storage.db.prepare("SELECT value FROM canonical_fs_fixture").get()!.value, "preserved");
- MCP
- compare on this site's /mcp
- CLI
- abso diff 2 318 server/test/git-file-contents.test.ts --json
- JSON
- /christopher/abso-core/compare/2..318?file=server%2Ftest%2Fgit-file-contents.test.ts&format=json