File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ def analysis_func(
72
72
html_string += self .get_optimal_target_section (
73
73
optimal_target_functions ,
74
74
toc_list ,
75
- tables
75
+ tables ,
76
+ coverage_url
76
77
)
77
78
78
79
# Create section for how the state of the project will be if
@@ -209,7 +210,8 @@ def get_optimal_target_section(
209
210
self ,
210
211
optimal_target_functions : List [fuzz_data_loader .FunctionProfile ],
211
212
toc_list : List [Tuple [str , str , int ]],
212
- tables : List [str ]
213
+ tables : List [str ],
214
+ coverage_url : str
213
215
) -> str :
214
216
# Table with details about optimal target functions
215
217
html_string = fuzz_html_helpers .html_add_header_with_link (
@@ -242,8 +244,13 @@ def get_optimal_target_section(
242
244
]
243
245
)
244
246
for fd in optimal_target_functions :
247
+ func_cov_url = "%s%s.html#L%d" % (
248
+ coverage_url ,
249
+ fd .function_source_file ,
250
+ fd .function_linenumber
251
+ )
245
252
html_func_row = (
246
- f"<a href=\" # \" ><code class='language-clike'>"
253
+ f"<a href=\" { func_cov_url } \" ><code class='language-clike'>"
247
254
f"{ fuzz_utils .demangle_cpp_func (fd .function_name )} "
248
255
f"</code></a>"
249
256
)
You can’t perform that action at this time.
0 commit comments