provenant-cli 0.0.8

Provenant is a high-performance Rust scanner for licenses, packages, and source provenance.
Documentation
#[cfg(all(test, feature = "golden-tests"))]
mod golden_tests {
    use std::path::PathBuf;

    use crate::parsers::golden_test_utils::compare_package_data_parser_only;
    use crate::parsers::{BunLockParser, PackageParser};

    #[test]
    fn test_golden_bun_lock_basic() {
        let test_file = PathBuf::from("testdata/bun/basic/bun.lock");
        let expected_file = PathBuf::from("testdata/bun/golden/basic-bun-lock-expected.json");

        let package_data = BunLockParser::extract_first_package(&test_file);

        match compare_package_data_parser_only(&package_data, &expected_file) {
            Ok(_) => (),
            Err(e) => panic!("Golden test failed: {}", e),
        }
    }
}