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

Function create_test_change

atomic-cli/src/commands/change/tests.rs:352–363  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

350 // JsonChange Tests
351
352 fn create_test_change() -> Change {
353 Change::new(
354 ChangeHeader::builder()
355 .message("Test change message")
356 .description("This is a description")
357 .author(Author::new("Test User", Some("test@example.com")))
358 .build(),
359 vec![],
360 vec![],
361 vec![],
362 )
363 }
364
365 fn test_edit_hunk(path: &str, start: u64, end: u64) -> GraphOp<Hash> {
366 let change = Hash::of(format!("{}:{}:{}", path, start, end).as_bytes());

Callers 8

test_format_short_basicFunction · 0.70
test_format_json_basicFunction · 0.70
test_json_change_debugFunction · 0.70
test_json_change_cloneFunction · 0.70

Calls 4

authorMethod · 0.80
buildMethod · 0.45
descriptionMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected