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

Function create_test_change

atomic-repository/src/repository/tests/mod.rs:30–37  ·  view source on GitHub ↗

Create a simple test change with the given message.

(message: &str)

Source from the content-addressed store, hash-verified

28
29/// Create a simple test change with the given message.
30pub(super) fn create_test_change(message: &str) -> Change {
31 let header = ChangeHeader::builder()
32 .message(message)
33 .author(Author::new("Test Author", Some("test@example.com")))
34 .build();
35
36 Change::new(header, Vec::new(), Vec::new(), Vec::new())
37}
38
39/// Create a test change with some content.
40pub(super) fn create_test_change_with_content(message: &str, content: &[u8]) -> Change {

Callers 6

test_repo_save_changeFunction · 0.70
test_repo_load_changeFunction · 0.70
test_repo_has_changeFunction · 0.70
test_repo_delete_changeFunction · 0.70
test_repo_count_changesFunction · 0.70
test_repo_iter_changesFunction · 0.70

Calls 3

authorMethod · 0.80
buildMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected