()
| 18 | |
| 19 | #[test] |
| 20 | fn test_semantic_line_from_bytes() { |
| 21 | let content = b"line1\nline2\nline3\n"; |
| 22 | let lines = SemanticLine::from_bytes(content); |
| 23 | assert_eq!(lines.len(), 3); |
| 24 | assert_eq!(lines[0].line_num(), 1); |
| 25 | assert_eq!(lines[1].line_num(), 2); |
| 26 | assert_eq!(lines[2].line_num(), 3); |
| 27 | } |
| 28 | |
| 29 | #[test] |
| 30 | fn test_semantic_line_content_str() { |
nothing calls this directly
no outgoing calls
no test coverage detected