From 1e05a4a9a0855547607adbbadaa5b975a06b816b Mon Sep 17 00:00:00 2001 From: matt wilkie Date: Tue, 6 Oct 2026 22:41:42 -0700 Subject: [PATCH 1/2] Retire the divergent test mirror and dead public surface C6 / Beads mdo-6w5.2 (epic mdo-6w5, PR order 2 of 6; stacked on the C1 branch). - tests/cli.rs re-implemented temp_output_for as temp_output_for_test and had already lost stem sanitization (diverged from production). The four call sites now call mdo_cli::temp_output_for directly, so tests compute the same per-source private paths production does, sanitization included. The mirror is deleted, along with the Hash/Hasher imports it alone needed. - The one-line derive_output alias had a single caller; main.rs now calls the real target, input.with_extension("html"), and lib no longer exposes the alias. - SETUP_SAMPLE_FILE_NAME / SETUP_SAMPLE_MARKDOWN had zero external callers; both are now private. (Windows SetupSample? not referenced: mdo-setup and mdo-open never touch them.) - wrapper.rs's own empty_path_dir duplication is intentionally untouched: recorded in the issue as having an honest reason. Gates: fmt --check, clippy -D warnings, cargo test --all-targets --all-features --locked (90 tests) all green, including the Linux --open tests that exercise the corrected temp-output path contract. Beads-Ref: mdo-6w5.2 Agent-Signature: kilo-kilo-auto-efficient on behalf of matt --- src/lib.rs | 8 ++------ src/main.rs | 6 +++--- tests/cli.rs | 33 +++++++++------------------------ 3 files changed, 14 insertions(+), 33 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 6188564..26a262e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,8 +29,8 @@ pub mod windows_setup; const SIMPLE_CSS: &str = include_str!("../assets/simple.min.css"); const APP_DISPLAY_NAME: &str = "mdo"; const APP_VERSION: &str = env!("CARGO_PKG_VERSION"); -pub const SETUP_SAMPLE_FILE_NAME: &str = "welcome-to-open-as-html-with-mdo.md"; -pub const SETUP_SAMPLE_MARKDOWN: &str = "\ +const SETUP_SAMPLE_FILE_NAME: &str = "welcome-to-open-as-html-with-mdo.md"; +const SETUP_SAMPLE_MARKDOWN: &str = "\ # Welcome to the world of Open as HTML with mdo If you are reading this in your browser, mdo rendered Markdown as HTML and @@ -135,10 +135,6 @@ const THEME_TOGGLE: &str = r#"