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

Function record_change

atomic-repository/tests/it/state_based_diff_test.rs:65–76  ·  view source on GitHub ↗

Helper to record a change with a message.

(repo: &Repository, message: &str)

Source from the content-addressed store, hash-verified

63
64/// Helper to record a change with a message.
65fn record_change(repo: &Repository, message: &str) -> Hash {
66 let header = ChangeHeader::builder()
67 .message(message)
68 .author(Author::new("Test", Some("test@example.com")))
69 .build();
70
71 let outcome = repo
72 .record(working_copy(repo), header, RecordOptions::default())
73 .expect("Failed to record");
74
75 *outcome.hash()
76}
77
78// StateBeforeChange Tests
79

Calls 6

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

Tested by

no test coverage detected