MCPcopy Create free account
hub / github.com/coooodeer/parse-rust / ab

Function ab

tests/test_python_api_integration.py:187–188  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

185def 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})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected