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

Function test_result_record_error

atomic-core/src/output/repo/tree.rs:1267–1274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1265
1266 #[test]
1267 fn test_result_record_error() {
1268 let mut result = TreeCollectResult::new();
1269
1270 result.record_error("test.rs".to_string(), "error message".to_string());
1271
1272 assert!(result.has_errors());
1273 assert_eq!(result.errors.len(), 1);
1274 }
1275
1276 #[test]
1277 fn test_result_has_errors() {

Callers

nothing calls this directly

Calls 1

record_errorMethod · 0.45

Tested by

no test coverage detected