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

Function record

atomic-repository/tests/it/view_setid_test.rs:34–43  ·  view source on GitHub ↗
(repo: &Repository, message: &str)

Source from the content-addressed store, hash-verified

32}
33
34fn record(repo: &Repository, message: &str) -> Hash {
35 let header = ChangeHeader::builder()
36 .message(message)
37 .author(Author::new("Test", Some("test@example.com")))
38 .build();
39 *repo
40 .record(working_copy(repo), header, RecordOptions::default())
41 .expect("record")
42 .hash()
43}
44
45#[test]
46fn view_set_id_round_trips_home_after_split_and_reinsert() {

Calls 6

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

Tested by

no test coverage detected