(text)
| 185 | def test_custom_types_work_for_top_level_and_compiled_paths(): |
| 186 | @with_pattern(r"[ab]") |
| 187 | def ab(text): |
| 188 | return {"a": 1, "b": 2}[text] |
| 189 | |
| 190 | top_level = parse("test {result:ab}", "test a", extra_types={"ab": ab}) |
| 191 | parser = compile("test {result:ab}", extra_types={"ab": ab}) |
nothing calls this directly
no outgoing calls
no test coverage detected