Skip to content

Commit

Permalink
Fix bugs and code formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Chan <[email protected]>
  • Loading branch information
arthurscchan committed Nov 21, 2022
1 parent 58ad832 commit a328a26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/fuzz_introspector/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def get_node_coverage_hitcount(

if not profile.func_is_entrypoint(demangled_name):
raise AnalysisError(
"First node in calltree seems to be non-fuzzer function"
"First node in calltree is non-fuzzer function"
)
coverage_data = profile.coverage.get_hit_details(demangled_name)

Expand Down
4 changes: 4 additions & 0 deletions src/fuzz_introspector/code_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,11 +606,15 @@ def load_jvm_coverage(
cov_entry = cov_entry.replace(".java", "")
executed_lines = []
missing_lines = []
d_executed_lines = []
d_missing_lines = []
for line in cl.findall('line'):
if line.attrib['ci'] > "0":
executed_lines.append((int(line.attrib['nr']), 1000))
d_executed_lines.append(int(line.attrib['nr']))
else:
missing_lines.append((int(line.attrib['nr']), 0))
d_missing_lines.append(int(line.attrib['nr']))

cp.file_map[cov_entry] = executed_lines
cp.dual_file_map[cov_entry] = dict()
Expand Down

0 comments on commit a328a26

Please sign in to comment.