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

Function record_change

atomic-repository/tests/state_based_diff_test.rs:60–71  ·  view source on GitHub ↗

Helper to record a change with a message.

(repo: &Repository, message: &str)

Source from the content-addressed store, hash-verified

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

Calls 5

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

Tested by

no test coverage detected