()
| 249 | |
| 250 | |
| 251 | def test_guess_lexer(): |
| 252 | assert Traceback._guess_lexer("foo.py", "code") == "python" |
| 253 | code_python = "#! usr/bin/env python\nimport this" |
| 254 | assert Traceback._guess_lexer("foo", code_python) == "python" |
| 255 | assert Traceback._guess_lexer("foo", "foo\nbnar") == "text" |
| 256 | |
| 257 | |
| 258 | def test_guess_lexer_yaml_j2(): |
nothing calls this directly
no test coverage detected