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

Function record

libatomic/tests/query_view_service_test.rs:11–21  ·  view source on GitHub ↗
(repo: &Repository, message: &str)

Source from the content-addressed store, hash-verified

9use prost::Message;
10
11fn record(repo: &Repository, message: &str) {
12 repo.record(
13 repo.require_working_copy_id().unwrap(),
14 ChangeHeader::new(message),
15 RecordOptions::new()
16 .with_all(true)
17 .save_to_store(true)
18 .apply_after_record(true),
19 )
20 .unwrap();
21}
22
23async fn fixture() -> (tempfile::TempDir, LocalService, pb::RepositoryRef) {
24 let dir = tempfile::tempdir().unwrap();

Calls 6

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

Tested by

no test coverage detected