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

Function create_test_change

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

Create a simple test change with the given message.

(message: &str)

Source from the content-addressed store, hash-verified

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