()
| 793 | |
| 794 | #[test] |
| 795 | fn test_tokenize_simple_content() { |
| 796 | let content = b"fn main() {\n println!(\"hello\");\n}\n"; |
| 797 | let ops = tokenize_content_for_display("src/main.rs", content, Encoding::Utf8); |
| 798 | |
| 799 | assert_eq!(ops.path(), "src/main.rs"); |
| 800 | assert!(ops.is_create()); |
| 801 | assert!(ops.line_count() > 0); |
| 802 | assert!(ops.token_count() > 0); |
| 803 | } |
| 804 | |
| 805 | #[test] |
| 806 | fn test_tokenize_empty_content() { |
nothing calls this directly
no test coverage detected