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

Function test_graph_section_new

atomic-core/src/change/format_v3/sections.rs:672–682  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

670
671 #[test]
672 fn test_graph_section_new() {
673 let payload = GraphSectionPayload::new("src/main.rs".to_string(), vec![], 0, 1024);
674
675 assert_eq!(payload.path(), "src/main.rs");
676 assert!(payload.ops().is_empty());
677 assert_eq!(payload.op_count(), 0);
678 assert_eq!(payload.content_range(), 0..1024);
679 assert_eq!(payload.content_len(), 1024);
680 assert!(payload.has_content());
681 assert!(payload.is_empty());
682 }
683
684 #[test]
685 fn test_graph_section_with_ops() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected