(
#[case] test_case: &AllocationTestCase,
)
| 83 | #[case(&ALLOCATION_TEST_CASES[7])] |
| 84 | #[test_log::test] |
| 85 | fn test_allocation_tracking( |
| 86 | #[case] test_case: &AllocationTestCase, |
| 87 | ) -> Result<(), Box<dyn std::error::Error>> { |
| 88 | let temp_dir = TempDir::new()?; |
| 89 | let binary = compile_c_source(test_case.source, test_case.name, temp_dir.path())?; |
| 90 | |
| 91 | let (events, thread_handle) = shared::track_binary(&binary)?; |
| 92 | |
| 93 | assert_events_snapshot!(test_case.name, events); |
| 94 | |
| 95 | thread_handle.join().unwrap(); |
| 96 | |
| 97 | Ok(()) |
| 98 | } |
nothing calls this directly
no test coverage detected