MCPcopy
hub / github.com/MinishLab/semble / test_detect_language

Function test_detect_language

tests/test_files.py:16–20  ·  view source on GitHub ↗

Test the detect_language function.

()

Source from the content-addressed store, hash-verified

14
15
16def test_detect_language() -> None:
17 """Test the detect_language function."""
18 assert detect_language(Path("a.py")) == "python"
19 assert detect_language(Path("b.js")) == "javascript"
20 assert detect_language(Path("c.txt")) is None
21
22
23def test_language_sets_are_consistent() -> None:

Callers

nothing calls this directly

Calls 1

detect_languageFunction · 0.90

Tested by

no test coverage detected