summaryrefslogtreecommitdiff
path: root/test/fs_namespace.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 20:41:32 -0300
committerGabriel Schneider <[email protected]>2026-11-05 22:07:55 -0300
commit4c3dbce20f11204f6d4bfb715239beae74259e7f (patch)
tree7cc261bdf39843b347b1b1c27829795b2e216774 /test/fs_namespace.zig
parent50914b0e04ac0129b11bff0f0007d5cedbfc7f8d (diff)
downloadpardes-4c3dbce20f11204f6d4bfb715239beae74259e7f.tar.gz
pardes-4c3dbce20f11204f6d4bfb715239beae74259e7f.zip
fields #38, the jump list, the language servers' question and the core's clock are fields of their nouns: Jump.zig is the jump list's type (list, n, cur, force, its own len annotation) and the session's jumps a Jump where it was jumps, njumps, jcur and jump_force; lsp/Ask.zig is the question's (seq, last, wait) and the session's lsp_ask an Ask where it was lsp_seq, lsp_last and lsp_wait; the clock is the session's clock, a Clock (now_ns, stepped_ns, started) where it was now_ns, stepped_ns and clock_started; a view opened still starts with no query's mark on its jumps and one closed leaves the staying view's (views.zig), as when the mark was a field of its own; callers in 26 files read p.jumps.n, p.lsp_ask.wait, p.clock.now_ns (macos.zig's lsp_wait tests by text, built nowhere here; dump.zig, the persistence agent's, only where it names lsp_seq); a dump written before this change loads these as their defaults once: an Upgrade or Restore from it comes back with no jumps, no language question awaited and its clock unstarted (jumps' kind changed, so the decoder says so), and the wire's semantics change; gates on tui: core-test 960/960, behaviour-test 238/238, pane-test 171/172 (1 skipped), snap all 108 scripts ok; gui unit-test 1518/1519 (1 skipped)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/fs_namespace.zig')
-rw-r--r--test/fs_namespace.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fs_namespace.zig b/test/fs_namespace.zig
index 3a918a28..00b2461a 100644
--- a/test/fs_namespace.zig
+++ b/test/fs_namespace.zig
@@ -86,7 +86,7 @@ test "transactional restore preserves host capabilities and advances pane identi
const p = try pardes.Pardes.init(gpa, .{ .tty_only = true, .cols = 91, .rows = 37 });
defer p.deinit();
const pane = try p.setTestFile("before\n");
- p.lsp_seq = 41;
+ p.lsp_ask.seq = 41;
p.pipe.seq = 73;
if (@hasField(pardes.CellPixels, "w")) p.cell_pixels = .{ .w = 9, .h = 18 };
p.native_images = true;
@@ -95,7 +95,7 @@ test "transactional restore preserves host capabilities and advances pane identi
try pardes.dump.dumpState(p);
const restored = try pardes.dump.restore(p, p.dump_out.?, "test");
defer restored.deinit();
- try std.testing.expectEqual(@as(u32, 41), restored.lsp_seq);
+ try std.testing.expectEqual(@as(u32, 41), restored.lsp_ask.seq);
try std.testing.expectEqual(@as(u32, 73), restored.pipe.seq);
try std.testing.expectEqual(p.cell_pixels, restored.cell_pixels);
try std.testing.expect(restored.native_images);
@@ -113,7 +113,7 @@ test "transactional restore preserves host capabilities and advances pane identi
));
try std.testing.expect(p.panes[0] == pane);
try std.testing.expectEqualStrings("before\n", pane.file.?.content);
- try std.testing.expectEqual(@as(u32, 41), p.lsp_seq);
+ try std.testing.expectEqual(@as(u32, 41), p.lsp_ask.seq);
try std.testing.expectEqualStrings("/tmp/session.sock", p.fs.socket_path);
}