()
| 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() { |
nothing calls this directly
no test coverage detected