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

Function record_all

atomic-repository/src/repository/tests/verify_tests.rs:9–19  ·  view source on GitHub ↗
(repo: &Repository, message: &str)

Source from the content-addressed store, hash-verified

7use atomic_core::types::Hash;
8
9fn record_all(repo: &Repository, message: &str) -> Result<RecordOutcome, RecordError> {
10 let header = ChangeHeader::new(message);
11 repo.record(
12 repo.require_working_copy_id().unwrap(),
13 header,
14 RecordOptions::new()
15 .with_all(true)
16 .save_to_store(true)
17 .apply_after_record(true),
18 )
19}
20
21/// A clean, freshly-recorded working copy verifies healthy.
22#[test]

Calls 6

apply_after_recordMethod · 0.80
save_to_storeMethod · 0.80
recordMethod · 0.45
unwrapMethod · 0.45
with_allMethod · 0.45

Tested by

no test coverage detected