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

Function test_outcome_add_files

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

Source from the content-addressed store, hash-verified

371
372#[test]
373fn test_outcome_add_files() {
374 let header = ChangeHeader::builder().message("Test").build();
375 let change = Change::empty(header);
376 let hash = Hash::of(b"test");
377 let stats = RecordStats::new();
378
379 let mut outcome = RecordOutcome::new(change, hash, stats);
380 outcome.add_recorded_file("src/main.rs".to_string());
381 outcome.add_skipped_file("src/test.rs".to_string());
382
383 assert_eq!(outcome.recorded_files().len(), 1);
384 assert_eq!(outcome.skipped_files().len(), 1);
385}
386
387#[test]
388fn 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