Oregami
Repositories/oxedyne/fe2o3

oxedyne/fe2o3/tests/no_mutable_literals.rs

810 bytes, 1 run

created by r1870400018:75269, which is this file's identity for as long as the history lasts, whatever it is later renamed to

download · who wrote it · its history

1//! The mutable-literal gate over the whole kit (D-20261026-02): every `fe2o3_*` crate in one pass,
2//! so a new crate is covered without anyone remembering. It fails on a hard-coded location, host,
3//! model id, timing or limit absent from `mutable_literals.jdat`, and on an entry there that is no
4//! longer found, so the baseline only shrinks. Regenerate it after a migration with
5//! `cargo run -p oxedyne_fe2o3_jdat --bin lint_mutable -- --root . --write`.
6
7use oxedyne_fe2o3_core::prelude::*;
8use oxedyne_fe2o3_jdat::lint;
9
10use std::path::PathBuf;
11
12
13#[test]
14fn test_no_new_mutable_literals() -> Outcome<()> {
15 let root = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
16 let rep = res!(lint::check_tree(&root, &root.join("mutable_literals.jdat")));
17 assert!(rep.is_clean(), "\n{}", rep);
18 Ok(())
19}