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

Function record

atomic-cli/tests/it/unrecord_integration_test.rs:28–41  ·  view source on GitHub ↗
(repo: &Repository, message: &str)

Source from the content-addressed store, hash-verified

26}
27
28fn record(repo: &Repository, message: &str) -> Hash {
29 let working_copy = repo.require_working_copy_id().unwrap();
30 *repo
31 .record(
32 working_copy,
33 ChangeHeader::builder()
34 .message(message)
35 .author(Author::new("Test", Some("test@example.com")))
36 .build(),
37 RecordOptions::default(),
38 )
39 .unwrap()
40 .hash()
41}
42
43fn fixture() -> (TempDir, Vec<Hash>) {
44 let dir = TempDir::new().unwrap();

Calls 7

authorMethod · 0.80
unwrapMethod · 0.45
hashMethod · 0.45
recordMethod · 0.45
buildMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected