Test the detect_language function.
()
| 14 | |
| 15 | |
| 16 | def 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 | |
| 23 | def test_language_sets_are_consistent() -> None: |
nothing calls this directly
no test coverage detected