MCPcopy Index your code
hub / github.com/RustPython/RustPython / list_regex

Method list_regex

Lib/test/test_regrtest.py:657–662  ·  view source on GitHub ↗
(line_format, tests)

Source from the content-addressed store, hash-verified

655 return 's' if count != 1 else ''
656
657 def list_regex(line_format, tests):
658 count = len(tests)
659 names = ' '.join(sorted(tests))
660 regex = line_format % (count, plural(count))
661 regex = r'%s:\n %s$' % (regex, names)
662 return regex
663
664 if skipped:
665 regex = list_regex('%s test%s skipped', skipped)

Callers

nothing calls this directly

Calls 4

lenFunction · 0.85
sortedFunction · 0.85
pluralFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected