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

Function test_line_ops_insert

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

Source from the content-addressed store, hash-verified

1282
1283 #[test]
1284 fn test_line_ops_insert() {
1285 let ops = LineOps::insert(
1286 test_branch_id(0),
1287 None,
1288 vec![LeafOp::Insert {
1289 after: None,
1290 kind: TokenKind::Word,
1291 content: b"Hello".to_vec(),
1292 }],
1293 );
1294
1295 assert!(ops.is_insert());
1296 assert!(!ops.is_delete());
1297 assert_eq!(ops.leaf_op_count(), 1);
1298 assert_eq!(ops.insert_after(), None);
1299 }
1300
1301 #[test]
1302 fn test_line_ops_insert_after() {

Callers

nothing calls this directly

Calls 1

test_branch_idFunction · 0.85

Tested by

no test coverage detected