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

Function test_outcome_add_files

atomic-repository/src/record/tests.rs:388–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

386
387#[test]
388fn test_outcome_add_files() {
389 let header = ChangeHeader::builder().message("Test").build();
390 let change = Change::empty(header);
391 let hash = Hash::of(b"test");
392 let stats = RecordStats::new();
393
394 let mut outcome = RecordOutcome::new(change, hash, stats);
395 outcome.add_recorded_file("src/main.rs".to_string());
396 outcome.add_skipped_file("src/test.rs".to_string());
397
398 assert_eq!(outcome.recorded_files().len(), 1);
399 assert_eq!(outcome.skipped_files().len(), 1);
400}
401
402#[test]
403fn test_outcome_add_error() {

Callers

nothing calls this directly

Calls 4

add_recorded_fileMethod · 0.80
add_skipped_fileMethod · 0.80
buildMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected