summaryrefslogtreecommitdiff
path: root/test/replicas.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 22:03:14 -0300
committerGabriel Schneider <[email protected]>2026-11-18 22:23:51 -0300
commit99f5b10eccd95aa0066ea6fe6bb75f367ab56a47 (patch)
tree813596ea84318a7bae4fd7416ba463de8e3b7107 /test/replicas.zig
parent92d553123673376adf6126ab90d49a22c5b833d2 (diff)
downloadpardes-99f5b10eccd95aa0066ea6fe6bb75f367ab56a47.tar.gz
pardes-99f5b10eccd95aa0066ea6fe6bb75f367ab56a47.zip
core: src/ becomes core/, pardes.zig its root.zig (the reorganisation's tree, step 2d), and every mention of a src/ path follows: the build's paths, the core's imports of its root, the tests that read the repository's files by path (lspbench's, look.zig's spans over core/look.zig), the comments that cite files, the documents and the manual (the typst corpus reads core/tutor.txt and core/plumbing); left as they were: the /src tree's served names (src/pardes.zig and the rest are the 9P tree's, not the repository's), the CHANGELOG's history, fixtures that are only strings; fs-unit-test runs from the core's root (a module of the core rooted at fs.zig had the runtime's and the devices' `core` be fs.zig); nothing else changes: the ledger (pardes.test.* now root.test.*), frames byte-identical, replicas and process-test the base's
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/replicas.zig')
-rw-r--r--test/replicas.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/replicas.zig b/test/replicas.zig
index 07557924..a122ac9f 100644
--- a/test/replicas.zig
+++ b/test/replicas.zig
@@ -1,5 +1,5 @@
//! pardes-replicas: a session and its clients in one process
-//! (src/replica.zig), each a process of its own for what a process holds
+//! (core/replica.zig), each a process of its own for what a process holds
//! (`Proc`): the session's own frontend typing in its view and drawing it,
//! and each client (a terminal's loop or a window's, by turns) joined from
//! the session's dump for a view of its own, typing at once over its own
@@ -10,7 +10,7 @@
//! and joins again for its view, and those past the views a session has
//! are refused until one is let go.
//!
-//! Terminals cross as screen state (src/term/screen_state.zig): the session's
+//! Terminals cross as screen state (core/term/screen_state.zig): the session's
//! shell pane runs a full-screen program and then a `yes` flood (`--flood`
//! MB of it) while the clients type, its output stepped by the authority
//! and sent to each replica as deltas, once a frame and before any input
@@ -22,7 +22,7 @@
//! zig build replicas -Dplatform=tui -Doptimize=ReleaseFast -- --screen-state <dir>
//!
//! `--echo` types a corpus into a shell instead, with and without the
-//! predicted echo (src/term/echo.zig), and gates what it draws: below, at
+//! predicted echo (core/term/echo.zig), and gates what it draws: below, at
//! "predicted echo". `--screen-state` runs recorded pty streams through
//! screen_state's soak and measures its encoder: below, at screenState.
//!
@@ -1280,7 +1280,7 @@ fn run(r: Run, dir: []const u8, totals: *Totals) !void {
}
}
// ...and every file's text the authority's, byte for byte: a digest
- // takes a text of 4 KiB and up by its length (src/walk.zig).
+ // takes a text of 4 KiB and up by its length (core/walk.zig).
for (a.core.panes, 0..) |slot, pid| {
const f = (slot orelse continue).file orelse continue;
const mine = if (rp.core().panes[pid]) |pane| pane.file else null;
@@ -1380,7 +1380,7 @@ fn diffCase(dir: []const u8) !bool {
return ok;
}
-/// Looks the plumber takes (src/plumbing), each as the authority's input
+/// Looks the plumber takes (core/plumbing), each as the authority's input
/// and as a replica's own: a URL (its web port: no disk asked, so a
/// replica's own look speculates whole and is confirmed with no rollback),
/// and a commit hash in a git work tree (Diff's `git show`, its `.git`
@@ -1557,7 +1557,7 @@ fn sendUnit(q: *std.PriorityQueue(Msg, void, Msg.order), n: *u64, unit: []const
// plain echo, no marks). Each key's echo comes back 2 ms after the authority
// writes it, as a shell's. The client types at a typist's pace and in bursts;
// each of its frames (60 Hz, a phase of its own) is what its screen shows:
-// the predicted echo where it is drawn (src/term/echo.zig), the screen state
+// the predicted echo where it is drawn (core/term/echo.zig), the screen state
// under it. Per key the shell echoed at a prompt or in cat: the time from
// the key to its character on that screen, with prediction and without. Per
// key predicted: whether the authority's screen, right after its echo,