summaryrefslogtreecommitdiff
path: root/test/output.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-29 17:01:35 -0300
committerGabriel Schneider <[email protected]>2026-10-29 21:13:33 -0300
commit70de5ec5ff3dad01afcc45244ad5e5a481486da6 (patch)
treecd4b723dcc2cfd94c4ba2361c134927b0e2df60b /test/output.zig
parent349790339897466f323ff28748916aa48aa344f7 (diff)
downloadpardes-70de5ec5ff3dad01afcc45244ad5e5a481486da6.tar.gz
pardes-70de5ec5ff3dad01afcc45244ad5e5a481486da6.zip
dump: one walker dump of the whole session, by name across builds, for Restore, -l, Handover and the store; dump.zig's hand-written schema gone
A dump is walk.zig's walk of the core with a table of every type it reaches (fields, enum and union names, number widths), read back by name; terminals are ghostty's snapshot (screens, history, kitty images); a failed load frees what it made. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/output.zig')
-rw-r--r--test/output.zig17
1 files changed, 0 insertions, 17 deletions
diff --git a/test/output.zig b/test/output.zig
index 530db77c..2d872bd1 100644
--- a/test/output.zig
+++ b/test/output.zig
@@ -495,23 +495,6 @@ test "Mini syntax colors survive toggles themes and rendering without source acc
}
}
-test "Mini restore rejects inconsistent metadata before publishing a pane" {
- const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true });
- defer p.deinit();
- const id = p.freeSlot().?;
- const serial = p.next_serial;
- for ([_]pardes.dump.File{
- .{ .content = "x", .mini_source = "/source.zig", .mini_colors_b64 = "AA==" },
- .{ .content = "x", .origin = "Mini", .mini_source = "/source.zig", .mini_colors_b64 = "" },
- .{ .content = "x", .origin = "Mini", .mini_source = "/source.zig", .mini_colors_b64 = "BQ==" },
- .{ .content = "x", .origin = "Mini", .mini_colors_b64 = "AA==" },
- }) |saved| {
- try std.testing.expectError(error.InvalidMini, panes.File.restore(p, id, .{ .kind = .file, .tag = "", .body = "", .file = saved }));
- try std.testing.expect(p.panes[id] == null);
- try std.testing.expectEqual(serial, p.next_serial);
- }
-}
-
test "Mini failures leave its existing snapshot and focus unchanged" {
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true });
defer p.deinit();