From 70de5ec5ff3dad01afcc45244ad5e5a481486da6 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 29 Oct 2026 17:01:35 -0300 Subject: 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 --- test/output.zig | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'test/output.zig') 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(); -- cgit v1.3