thing-core: layout tests build

This commit is contained in:
Meta Vens 2026-11-28 05:02:17 +01:00
commit 36b4d20cdf

View file

@ -18,7 +18,7 @@ use thing_testkit::mem_state::MemState;
use thing_testkit::measure::FixedMeasure;
use thing_testkit::state::{self, Swarm};
fn goldens() -> PathBuf {
fn golden_dir() -> PathBuf {
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/goldens")
}
@ -96,7 +96,7 @@ fn stem(fixture: Fixture) -> String {
fn check(fixture: Fixture, suffix: &str, frame: &LayoutFrame) -> String {
let text = fixture_text(fixture, frame);
golden::check(&goldens(), &format!("layout-{}{suffix}.txt", stem(fixture)), text.as_bytes());
golden::check(&golden_dir(), &format!("layout-{}{suffix}.txt", stem(fixture)), text.as_bytes());
text
}