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

Function create_test_entry_with_header

atomic-cli/src/commands/log/tests.rs:406–421  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

404 }
405
406 fn create_test_entry_with_header() -> HistoryEntry {
407 let header = ChangeHeader::builder()
408 .message("Test change message")
409 .description("This is a longer description.")
410 .author(Author::new("Test User", Some("test@example.com")))
411 .build();
412
413 HistoryEntry::new(
414 42,
415 NodeId::from(1),
416 create_test_hash(),
417 create_test_merkle(),
418 )
419 .with_change_header(header)
420 .with_tagged(true)
421 }
422
423 #[test]
424 fn test_json_log_entry_from_entry_without_header() {

Calls 8

create_test_hashFunction · 0.85
create_test_merkleFunction · 0.85
authorMethod · 0.80
with_change_headerMethod · 0.80
buildMethod · 0.45
descriptionMethod · 0.45
messageMethod · 0.45
with_taggedMethod · 0.45

Tested by

no test coverage detected