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

Function test_add_hunk

atomic-core/src/record/builder.rs:682–692  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

680
681 #[test]
682 fn test_add_hunk() {
683 let mut builder = RecordBuilder::new();
684
685 // Create a simple file add graph_op
686 let graph_op = create_test_file_add_hunk();
687 let index = builder.add_hunk(graph_op);
688
689 assert_eq!(index, 0);
690 assert_eq!(builder.hunk_count(), 1);
691 assert!(!builder.is_empty());
692 }
693
694 #[test]
695 fn test_add_multiple_hunks() {

Callers

nothing calls this directly

Calls 2

add_hunkMethod · 0.45

Tested by

no test coverage detected