MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_detect_cpp

Function test_detect_cpp

atomic-semantic/src/parsers/mod.rs:399–406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

397
398 #[test]
399 fn test_detect_cpp() {
400 assert_eq!(Language::detect("main.cpp"), Some(Language::Cpp));
401 assert_eq!(Language::detect("lib.cc"), Some(Language::Cpp));
402 assert_eq!(Language::detect("util.cxx"), Some(Language::Cpp));
403 assert_eq!(Language::detect("header.hpp"), Some(Language::Cpp));
404 assert_eq!(Language::detect("header.hxx"), Some(Language::Cpp));
405 assert_eq!(Language::detect("header.h"), Some(Language::Cpp));
406 }
407
408 #[test]
409 fn test_detect_c() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected