MCPcopy
hub / github.com/mitmproxy/mitmproxy / main

Function main

test/filename_matching.py:58–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57
58def main():
59 exitcode = 0
60
61 missing_test_files = check_src_files_have_test()
62 if missing_test_files:
63 exitcode += 1
64 for f, p in sorted(missing_test_files):
65 print(f"{f} MUST have a matching test file: {p}")
66
67 unknown_test_files = check_test_files_have_src()
68 if unknown_test_files:
69 # TODO: enable this in the future
70 # exitcode += 1
71 for f, p in sorted(unknown_test_files):
72 print(f"{f} DOES NOT MATCH a source file! Expected to find: {p}")
73
74 sys.exit(exitcode)
75
76
77if __name__ == "__main__":

Callers 1

Calls 3

exitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…