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

Function create_test_change

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

Source from the content-addressed store, hash-verified

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

Calls 4

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

Tested by

no test coverage detected