()
| 141 | |
| 142 | #[test] |
| 143 | fn classify_code_extensions() { |
| 144 | for ext in &[ |
| 145 | ".py", ".rs", ".ts", ".go", ".java", ".cpp", ".js", ".jsx", ".tsx", ".c", ".h", ".rb", |
| 146 | ".swift", ".kt", ".cs", ".lua", ".zig", ".jl", ".ex", ".mm", |
| 147 | ] { |
| 148 | let p = PathBuf::from(format!("foo{ext}")); |
| 149 | assert_eq!( |
| 150 | classify_file(&p), |
| 151 | Some(FileType::Code), |
| 152 | "expected Code for {ext}" |
| 153 | ); |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | #[test] |
| 158 | fn classify_doc_extensions() { |
nothing calls this directly
no outgoing calls
no test coverage detected