lib: banner purge + WHY-only comment sweep (rule 8)
Every // ---- section banner dies (132 -> 0): names carry the WHAT. Narration deleted (filename restatements, run-with lines, what-the- next-line-does); every ref/hare cite, task cite, divergence, ABI/ layout contract, and ownership qualifier kept (borrowed-view lines restored where the sweep over-cut). Comment-only proven: all 442 walk-workdir .s and 32 import-probe .s byte-identical before/after; libbyteid 56-roster all-ID.
This commit is contained in:
@@ -92,8 +92,6 @@ fn gettmpdir() str = {
|
||||
};
|
||||
};
|
||||
|
||||
// ---- 1: XDG_CONFIG_HOME=<tmpl>/cfg → <tmpl>/cfg/myapp --------------
|
||||
|
||||
@test fn test_config_xdg_set() void = {
|
||||
let tmpl = gettmpdir();
|
||||
let exp = expected(tmpl, "cfg", "myapp");
|
||||
@@ -101,8 +99,6 @@ fn gettmpdir() str = {
|
||||
assert(!(!streq(got, exp)));
|
||||
};
|
||||
|
||||
// ---- 2: XDG_CACHE_HOME="relative/path" → fallback to $HOME/.cache --
|
||||
//
|
||||
// Exercises Hare's `if (!path::abs(path)) yield;` branch — a
|
||||
// non-absolute XDG_*_HOME silently falls through to the HOME path.
|
||||
|
||||
@@ -113,8 +109,6 @@ fn gettmpdir() str = {
|
||||
assert(!(!streq(got, exp)));
|
||||
};
|
||||
|
||||
// ---- 3: XDG_DATA_HOME unset → fallback to $HOME/.local/share -------
|
||||
|
||||
@test fn test_data_unset_fallback() void = {
|
||||
let tmpl = gettmpdir();
|
||||
let exp = expected(tmpl, ".local/share", "myapp");
|
||||
@@ -122,8 +116,6 @@ fn gettmpdir() str = {
|
||||
assert(!(!streq(got, exp)));
|
||||
};
|
||||
|
||||
// ---- 4: XDG_STATE_HOME unset → fallback to $HOME/.local/state ------
|
||||
|
||||
@test fn test_state_unset_fallback() void = {
|
||||
let tmpl = gettmpdir();
|
||||
let exp = expected(tmpl, ".local/state", "myapp");
|
||||
|
||||
Reference in New Issue
Block a user