xtask/tests/retired.rs
//! **A retired product is cut away completely** (the owner, 2026-10-25: "it is not used").
//! Nothing in this repository names it: no crate, reserved name, fixture, doc or test.
//! A CHANGELOG may record that it went. The word is assembled here, so this guard does not
//! name it either.
#[test]
fn the_retired_product_is_named_nowhere_in_this_repository() {
let word = ["nj", "ord"].concat();
let root = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).parent().expect("xtask sits in the repo").to_path_buf();
let out = std::process::Command::new("git")
.args(["grep", "-I", "-i", "-n", "-e", &word, "--", ".", ":(exclude)CHANGELOG*", ":(exclude)**/CHANGELOG*"])
.current_dir(&root)
.output()
.expect("git grep runs");
assert_eq!(out.status.code(), Some(1), "`git grep -i` found the retired product in {} (exit {:?}):\n{}{}", root.display(), out.status.code(), String::from_utf8_lossy(&out.stdout), String::from_utf8_lossy(&out.stderr));
}