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

Function test_line_ops_display

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

Source from the content-addressed store, hash-verified

1347
1348 #[test]
1349 fn test_line_ops_display() {
1350 let ops = LineOps::insert(
1351 test_branch_id(0),
1352 None,
1353 vec![
1354 LeafOp::Insert {
1355 after: None,
1356 kind: TokenKind::Word,
1357 content: b"Hello".to_vec(),
1358 },
1359 LeafOp::Insert {
1360 after: None,
1361 kind: TokenKind::Word,
1362 content: b"World".to_vec(),
1363 },
1364 ],
1365 );
1366 let display = format!("{}", ops);
1367 assert!(display.contains("insert"));
1368 assert!(display.contains("2 tokens"));
1369 }
1370
1371 #[test]
1372 fn test_line_ops_into_parts() {

Callers

nothing calls this directly

Calls 1

test_branch_idFunction · 0.85

Tested by

no test coverage detected