Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_runner.py
Show First 20 Lines • Show All 773 Lines • ▼ Show 20 Lines | def _get_uncovered_rpc_commands(self): | ||||
covered_cmds = set() | covered_cmds = set() | ||||
if not os.path.isfile(coverage_ref_filename): | if not os.path.isfile(coverage_ref_filename): | ||||
raise RuntimeError("No coverage reference found") | raise RuntimeError("No coverage reference found") | ||||
with open(coverage_ref_filename, 'r', encoding="utf8") as f: | with open(coverage_ref_filename, 'r', encoding="utf8") as f: | ||||
all_cmds.update([i.strip() for i in f.readlines()]) | all_cmds.update([i.strip() for i in f.readlines()]) | ||||
for root, dirs, files in os.walk(self.dir): | for root, _, files in os.walk(self.dir): | ||||
for filename in files: | for filename in files: | ||||
if filename.startswith(coverage_file_prefix): | if filename.startswith(coverage_file_prefix): | ||||
coverage_filenames.add(os.path.join(root, filename)) | coverage_filenames.add(os.path.join(root, filename)) | ||||
for filename in coverage_filenames: | for filename in coverage_filenames: | ||||
with open(filename, 'r', encoding="utf8") as f: | with open(filename, 'r', encoding="utf8") as f: | ||||
covered_cmds.update([i.strip() for i in f.readlines()]) | covered_cmds.update([i.strip() for i in f.readlines()]) | ||||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |