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

Function test_result_record_error

atomic-core/src/record/detect.rs:1209–1215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1207
1208 #[test]
1209 fn test_result_record_error() {
1210 let mut result = DetectResult::new();
1211 result.record_error("test.rs".to_string(), "error".to_string());
1212
1213 assert!(result.has_errors());
1214 assert_eq!(result.errors.len(), 1);
1215 }
1216
1217 #[test]
1218 fn test_result_iterators() {

Callers

nothing calls this directly

Calls 1

record_errorMethod · 0.45

Tested by

no test coverage detected