// SPDX-FileCopyrightText: 2024 Simon Bruder // // SPDX-License-Identifier: MPL-2.0 use embed_licensing::collect; #[test] fn test_macro() { // This is more of a smoke test, as the macro can’t be called in a mocked environment. let licensing = collect!(); let _exists = licensing .packages .iter() .find(|pkg| pkg.name == "embed-licensing") .unwrap(); assert!(licensing .licenses .contains(&spdx::license_id("MPL-2.0").unwrap())); }