crates/gunnar-front/tests/one_mesh_probe.rs
//! **Gunnar's front runs the ONE shared mesh probe** (P4c, A28 M11): the dial, the verdict, its
//! levels and when it is said are Skidbladnir `nordisk_pairing::frontside::mesh_probe` (feature
//! `mesh-probe`), as Holger's front does. What is Gunnar's: its plain ports (the control plane,
//! the replication listener, the forge) and its runner. Reads the tree only.
#[test]
fn the_front_carries_no_copy_of_the_mesh_probe() {
let src =
std::fs::read_to_string(concat!(env!("CARGO_MANIFEST_DIR"), "/src/mesh_probe.rs")).unwrap();
for gone in [
"pub fn verdict",
"fn dial",
"pub fn levels",
"pub fn due",
"pub struct Box3",
"pub fn probe",
] {
assert!(
!src.contains(gone),
"mesh_probe.rs still carries `{gone}`: it is nordisk-pairing::frontside::mesh_probe's"
);
}
assert!(src.contains("nordisk_pairing::frontside::mesh_probe"));
let manifest =
std::fs::read_to_string(concat!(env!("CARGO_MANIFEST_DIR"), "/Cargo.toml")).unwrap();
assert!(
manifest.contains("\"mesh-probe\""),
"the front turns the shared probe on"
);
}