summaryrefslogtreecommitdiff
path: root/test/panes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/panes.zig')
-rw-r--r--test/panes.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/panes.zig b/test/panes.zig
index f99f9d56..1c861070 100644
--- a/test/panes.zig
+++ b/test/panes.zig
@@ -2039,7 +2039,7 @@ test "file history survives PDF fallback restoration and allocation failures" {
var succeeded = false;
for (0..256) |failure| {
var failing = std.testing.FailingAllocator.init(std.testing.allocator, .{ .fail_index = failure });
- if (Pardes.initFromDump(failing.allocator(), .{ .tty_only = true }, saved)) |p| {
+ if (pardes.dump.initFromDump(failing.allocator(), .{ .tty_only = true }, saved)) |p| {
defer p.deinit();
const pane = p.panes[0].?;
try std.testing.expect(pane.file != null);
@@ -2416,8 +2416,8 @@ const OutputTests = struct {
neighbor_colored = neighbor_colored or style != 0;
try std.testing.expect(neighbor_colored);
- try p.dumpState();
- const restored = try Pardes.initFromDump(p.gpa, .{ .tty_only = true }, p.dump_out.?);
+ try pardes.dump.dumpState(p);
+ const restored = try pardes.dump.initFromDump(p.gpa, .{ .tty_only = true }, p.dump_out.?);
defer restored.deinit();
const restored_source = restored.panes[0].?;
const restored_id = pane.search_pane.?;
@@ -2520,8 +2520,8 @@ const OutputTests = struct {
try std.testing.expectEqual(.match, file.location_rows[next].kind);
const wrapped = panes.Output.nextResult(file.content, file.location_rows, path, .{ .line = 99 });
try std.testing.expectEqual(@as(usize, 2), file.location_rows[wrapped].at.line);
- try p.dumpState();
- const restored = try Pardes.initFromDump(p.gpa, .{ .tty_only = true }, p.dump_out.?);
+ try pardes.dump.dumpState(p);
+ const restored = try pardes.dump.initFromDump(p.gpa, .{ .tty_only = true }, p.dump_out.?);
defer restored.deinit();
const restored_file = &restored.panes[pane.search_pane.?].?.file.?;
try std.testing.expectEqualStrings(file.content, restored_file.content);