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

Function main

tests/TestScripts/testRandomOrder.py:61–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 'Longer: {}\nShorter: {}'.format(s2, s1, longer, shorter))
60
61def main():
62 self_test_exe, = sys.argv[1:]
63
64 # We want a random seed for the test, but want to avoid 0,
65 # because it has special meaning
66 seed = random.randint(1, 2 ** 32 - 1)
67
68 list_one_tag = list_tests(self_test_exe, ['generators'], seed)
69 list_two_tags = list_tests(self_test_exe, ['generators', 'matchers'], seed)
70 list_all = list_tests(self_test_exe, [], seed)
71
72 # First, verify that restricting to a subset yields the same order
73 check_is_sublist_of(list_two_tags, list_all)
74 check_is_sublist_of(list_one_tag, list_two_tags)
75
76if __name__ == '__main__':
77 sys.exit(main())

Callers 1

testRandomOrder.pyFile · 0.70

Calls 2

check_is_sublist_ofFunction · 0.85
list_testsFunction · 0.70

Tested by

no test coverage detected