beam-core 0.8.0

Shared core types and workflow/session logic for beam
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::{path::PathBuf, process::Command};

#[test]
fn rust_source_files_stay_within_the_line_limit() {
    let workspace_root = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
        .parent()
        .and_then(|path| path.parent())
        .expect("beam-core should be in the workspace crates directory")
        .to_path_buf();
    let check = workspace_root.join("scripts/check-rust-line-count.sh");

    let status = Command::new("bash")
        .arg(&check)
        .status()
        .unwrap_or_else(|error| panic!("failed to run {}: {error}", check.display()));

    assert!(status.success(), "Rust source file line-count check failed");
}