Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/holger

xtask/tests/the_open_build_links_no_paid_crate.rs

//! ★ **Open Holger links nothing paid** (A5 L-Trust, lane SC 2026-10-22): Holger Pro lives in
//! Vetra's private monetize-impl and reaches a box only as signed wasm, so this workspace's
//! lock and the server's default and metered trees name no monetize-impl crate. The same
//! check `cargo xtask free-tree` runs, here as a test so every suite carries it.

#[path = "../src/paid_guard.rs"]
#[allow(dead_code)]
mod paid_guard;

#[test]
fn the_lock_and_the_default_and_metered_servers_link_no_paid_crate() {
    let root = std::path::Path::new(env!("CARGO_MANIFEST_DIR"))
        .parent()
        .expect("the workspace root")
        .to_path_buf();
    let cargo = std::env::var("CARGO").unwrap_or_else(|_| "cargo".into());
    match paid_guard::check(&root, &cargo) {
        Ok(said) => assert_eq!(
            said.len(),
            1 + paid_guard::ROWS.len(),
            "every check said what it read: {said:?}"
        ),
        Err(bad) => panic!("open Holger links paid code:\n{}", bad.join("\n")),
    }
}