summaryrefslogtreecommitdiff
path: root/test/fs_namespace.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 20:39:55 -0300
committerGabriel Schneider <[email protected]>2026-11-05 22:07:27 -0300
commit50914b0e04ac0129b11bff0f0007d5cedbfc7f8d (patch)
treefdb18c730b1b5908c8e4048dec6606ca730890c2 /test/fs_namespace.zig
parentce4ac94f7887025afabad92402e5f04a276da9a4 (diff)
downloadpardes-50914b0e04ac0129b11bff0f0007d5cedbfc7f8d.tar.gz
pardes-50914b0e04ac0129b11bff0f0007d5cedbfc7f8d.zip
fields #37, a column is one Column: the four parallel arrays a column's own state was kept in (col_panes, col_n, col_weight, col_serial) are the session's cols: [MAX_COLS]Column, a struct of panes, n, weight and serial (acme's Column, cols.c), so a column shifted, saved or reset is one assignment where it was four (layout.reorderColumn, dropColumn, insertColumn, firstColumn, joinFits, Finder.open; joinFits and the resets now give back a column's panes beyond its count too, which nothing reads); its tag stays the session's col_tags, as a view opened takes the live one's columns but tags of its own (views.open), and col_x and col_w stay with the rects, worked out each sync; the uses in 20 files read p.cols[c].n for p.col_n[c] and so on, tests that compared the arrays whole compare the columns whole (or their weights, layout.zig's weightsOf); views.zig's per-view fields name cols; a dump written before this change loads its columns as the default once: an Upgrade or Restore from it comes back with its columns empty and its panes in none of them, and the wire's semantics change (the digest walks cols); dump.zig and Handover.zig, the persistence agent's, are edited only where they name these fields; 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, 2 insertions, 4 deletions
diff --git a/test/fs_namespace.zig b/test/fs_namespace.zig
index 2fda05fd..3a918a28 100644
--- a/test/fs_namespace.zig
+++ b/test/fs_namespace.zig
@@ -262,8 +262,7 @@ test "owned cwd failed file opens never publish a pane or retain a reservation"
const name = try std.fmt.bufPrint(&path, "/virtual/pane/{d}/body", .{source.serial});
const slot = p.freeSlot().?;
const serial = p.next_serial;
- const columns = p.col_panes;
- const counts = p.col_n;
+ const columns = p.cols;
allocator.fail_index = allocator.alloc_index + failure;
const opened = pardes.panes.File.open(p, slot, name, 0) catch |err| {
try std.testing.expect(err == error.OutOfMemory or err == error.ReadFailed or err == error.WriteFailed);
@@ -271,8 +270,7 @@ test "owned cwd failed file opens never publish a pane or retain a reservation"
try std.testing.expect(!p.reserved_slots[slot]);
try std.testing.expectEqual(serial, p.next_serial);
try std.testing.expectEqual(slot, p.freeSlot().?);
- try std.testing.expectEqualDeep(columns, p.col_panes);
- try std.testing.expectEqualDeep(counts, p.col_n);
+ try std.testing.expectEqualDeep(columns, p.cols);
try std.testing.expectEqual(@as(usize, 0), p.effects_len);
try std.testing.expectEqualStrings("/source/directory", source.cwdSlice());
allocator.fail_index = std.math.maxInt(usize);