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

Function create_test_change

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

Create a simple test change with the given message.

(message: &str)

Source from the content-addressed store, hash-verified

322
323/// Create a simple test change with the given message.
324pub(crate) fn create_test_change(message: &str) -> Change {
325 let header = ChangeHeader::builder()
326 .message(message)
327 .author(Author::new("Test Author", Some("test@example.com")))
328 .build();
329
330 Change::new(header, Vec::new(), Vec::new(), Vec::new())
331}
332
333/// Create a test change with some content.
334pub(super) fn create_test_change_with_content(message: &str, content: &[u8]) -> Change {

Calls 3

authorMethod · 0.80
buildMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected