MCPcopy Create free account
hub / github.com/catchorg/Catch2 / none_to_empty_str

Function none_to_empty_str

tests/TestScripts/testRandomOrder.py:23–27  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

21import xml.etree.ElementTree as ET
22
23def none_to_empty_str(e):
24 if e is None:
25 return ""
26 assert type(e) is str
27 return e
28
29def list_tests(self_test_exe, tags, rng_seed):
30 cmd = [self_test_exe, '--reporter', 'xml', '--list-tests', '--order', 'rand',

Callers 1

list_testsFunction · 0.85

Calls 1

typeClass · 0.50

Tested by

no test coverage detected