MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_result_counters

Function test_result_counters

atomic-core/src/record/workflow/detect/tests.rs:292–300  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

290
291#[test]
292fn test_result_counters() {
293 let mut result = DetectionResult::new();
294 result.increment_scanned();
295 result.increment_scanned();
296 result.increment_skipped();
297
298 assert_eq!(result.files_scanned(), 2);
299 assert_eq!(result.files_skipped(), 1);
300}
301
302#[test]
303fn test_result_getters() {

Callers

nothing calls this directly

Calls 2

increment_scannedMethod · 0.80
increment_skippedMethod · 0.80

Tested by

no test coverage detected