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

Function test_line_ops_insert

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

Source from the content-addressed store, hash-verified

1502
1503 #[test]
1504 fn test_line_ops_insert() {
1505 let ops = LineOps::insert(
1506 test_branch_id(0),
1507 None,
1508 vec![LeafOp::Insert {
1509 after: None,
1510 kind: TokenKind::Word,
1511 content: b"Hello".to_vec(),
1512 }],
1513 );
1514
1515 assert!(ops.is_insert());
1516 assert!(!ops.is_delete());
1517 assert_eq!(ops.leaf_op_count(), 1);
1518 assert_eq!(ops.insert_after(), None);
1519 }
1520
1521 #[test]
1522 fn test_line_ops_insert_after() {

Callers

nothing calls this directly

Calls 2

test_branch_idFunction · 0.85
insertFunction · 0.50

Tested by

no test coverage detected