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

Function test_line_ops_into_parts

atomic-core/src/change/ops.rs:1036–1042  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1034
1035 #[test]
1036 fn test_line_ops_into_parts() {
1037 let ops = LineOps::delete(test_branch_id(7), vec![]);
1038 let (branch_id, operation) = ops.into_parts();
1039
1040 assert_eq!(branch_id, test_branch_id(7));
1041 assert!(matches!(operation, BranchOp::Delete { .. }));
1042 }
1043
1044 #[test]
1045 fn test_line_ops_content_range() {

Callers

nothing calls this directly

Calls 2

test_branch_idFunction · 0.85
into_partsMethod · 0.45

Tested by

no test coverage detected