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

Function test_outcome_set_saved

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

Source from the content-addressed store, hash-verified

352
353#[test]
354fn test_outcome_set_saved() {
355 let header = ChangeHeader::builder().message("Test").build();
356 let change = Change::empty(header);
357 let hash = Hash::of(b"test");
358 let stats = RecordStats::new();
359
360 let mut outcome = RecordOutcome::new(change, hash, stats);
361 outcome.set_saved(true);
362 assert!(outcome.was_saved());
363}
364
365#[test]
366fn 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