()
| 1011 | |
| 1012 | #[test] |
| 1013 | fn test_line_ops_display() { |
| 1014 | let ops = LineOps::insert( |
| 1015 | test_branch_id(0), |
| 1016 | None, |
| 1017 | vec![ |
| 1018 | LeafOp::Insert { |
| 1019 | after: None, |
| 1020 | kind: TokenKind::Word, |
| 1021 | content: b"Hello".to_vec(), |
| 1022 | }, |
| 1023 | LeafOp::Insert { |
| 1024 | after: None, |
| 1025 | kind: TokenKind::Word, |
| 1026 | content: b"World".to_vec(), |
| 1027 | }, |
| 1028 | ], |
| 1029 | ); |
| 1030 | let display = format!("{}", ops); |
| 1031 | assert!(display.contains("insert")); |
| 1032 | assert!(display.contains("2 tokens")); |
| 1033 | } |
| 1034 | |
| 1035 | #[test] |
| 1036 | fn test_line_ops_into_parts() { |
nothing calls this directly
no test coverage detected