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

Function record

atomic-cli/tests/unrecord_integration_test.rs:28–39  ·  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 *repo
30 .record(
31 ChangeHeader::builder()
32 .message(message)
33 .author(Author::new("Test", Some("test@example.com")))
34 .build(),
35 RecordOptions::default(),
36 )
37 .unwrap()
38 .hash()
39}
40
41fn fixture() -> (TempDir, Vec<Hash>) {
42 let dir = TempDir::new().unwrap();

Callers 2

fixtureFunction · 0.70

Calls 6

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

Tested by

no test coverage detected