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

Function test_line_ops_display

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

Source from the content-addressed store, hash-verified

1567
1568 #[test]
1569 fn test_line_ops_display() {
1570 let ops = LineOps::insert(
1571 test_branch_id(0),
1572 None,
1573 vec![
1574 LeafOp::Insert {
1575 after: None,
1576 kind: TokenKind::Word,
1577 content: b"Hello".to_vec(),
1578 },
1579 LeafOp::Insert {
1580 after: None,
1581 kind: TokenKind::Word,
1582 content: b"World".to_vec(),
1583 },
1584 ],
1585 );
1586 let display = format!("{}", ops);
1587 assert!(display.contains("insert"));
1588 assert!(display.contains("2 tokens"));
1589 }
1590
1591 #[test]
1592 fn test_line_ops_into_parts() {

Callers

nothing calls this directly

Calls 2

test_branch_idFunction · 0.85
insertFunction · 0.50

Tested by

no test coverage detected