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

Function test_outcome_set_saved

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

Source from the content-addressed store, hash-verified

360
361#[test]
362fn test_outcome_set_saved() {
363 let header = ChangeHeader::builder().message("Test").build();
364 let change = Change::empty(header);
365 let hash = Hash::of(b"test");
366 let stats = RecordStats::new();
367
368 let mut outcome = RecordOutcome::new(change, hash, stats);
369 outcome.set_saved(true);
370 assert!(outcome.was_saved());
371}
372
373#[test]
374fn test_outcome_set_applied() {

Callers

nothing calls this directly

Calls 3

set_savedMethod · 0.80
buildMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected