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

Function test_outcome_set_saved

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

Source from the content-addressed store, hash-verified

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