mod support;
mod agent_fallback_e2e;
mod agent_id_e2e;
mod agents_e2e;
mod bakeoff_gate_e2e;
mod cli_e2e;
mod config_mount;
mod daemon_no_tcp_6637;
mod inference_shared_adapter_e2e;
mod m1_cutline_e2e;
mod mcp_loader_e2e;
mod no_content_e2e;
mod paths_import_mpm_catalog_e2e;
mod permission_prompt_e2e;
mod readiness_e2e;
mod recall_content_e2e;
mod roster_deploy_e2e;
mod search_hits_e2e;
mod session_e2e;
mod task_e2e;
mod thin_clients_uds_10169;
mod tui_client_engine;
#[test]
fn every_tests_file_is_mounted_9302() {
let root = std::path::Path::new(env!("CARGO_MANIFEST_DIR"));
let manifest = std::fs::read_to_string(root.join("Cargo.toml")).expect("read Cargo.toml");
let this = std::fs::read_to_string(root.join("tests/integration.rs")).expect("read root");
let mut orphans = Vec::new();
for entry in std::fs::read_dir(root.join("tests")).expect("read tests/") {
let path = entry.expect("tests/ entry").path();
if path.extension().is_none_or(|ext| ext != "rs") {
continue;
}
let stem = path
.file_stem()
.and_then(|s| s.to_str())
.expect("utf-8 name");
let mounted = this
.lines()
.any(|line| line.trim() == format!("mod {stem};"));
let own_target = manifest.contains(&format!("path = \"tests/{stem}.rs\""));
if !mounted && !own_target {
orphans.push(stem.to_owned());
}
}
orphans.sort();
assert!(
orphans.is_empty(),
"tests/*.rs files no target compiles: {orphans:?}"
);
}