MCPcopy Create free account
hub / github.com/TtTRz/graphify-rs / classify_code_extensions

Function classify_code_extensions

crates/graphify-detect/src/classify.rs:143–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected