MCPcopy Create free account
hub / github.com/davidblewett/rure-python / test_tostr

Function test_tostr

regex/scripts/regex-match-tests.py:63–67  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

61
62
63def test_tostr(t):
64 lineno, pat, text, groups = t
65 options = map(group_tostr, groups)
66 return 'mat!(match_%s, r"%s", r"%s", %s);' \
67 % (lineno, pat, '' if text == "NULL" else text, ', '.join(options))
68
69
70def group_tostr(g):

Callers 1

print_testsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected