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

Function record

atomic-repository/tests/view_setid_test.rs:28–37  ·  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 header = ChangeHeader::builder()
30 .message(message)
31 .author(Author::new("Test", Some("test@example.com")))
32 .build();
33 *repo
34 .record(header, RecordOptions::default())
35 .expect("record")
36 .hash()
37}
38
39#[test]
40fn view_set_id_round_trips_home_after_split_and_reinsert() {

Calls 5

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

Tested by

no test coverage detected