MCPcopy Create free account
hub / github.com/argotorg/solidity / find_ids_in_test_file

Function find_ids_in_test_file

scripts/error_codes.py:126–129  ·  view source on GitHub ↗
(file_name)

Source from the content-addressed store, hash-verified

124
125
126def find_ids_in_test_file(file_name):
127 source = read_file(file_name)
128 pattern = r"^// (.*Error|Warning|Info) \d\d\d\d:"
129 return {m.group(0)[-5:-1] for m in re.finditer(pattern, source, flags=re.MULTILINE)}
130
131
132def find_ids_in_test_files(file_names):

Callers 1

find_ids_in_test_filesFunction · 0.85

Calls 1

read_fileFunction · 0.85

Tested by

no test coverage detected