File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,8 @@ package body Annotations.Dynamic_Html is
358
358
(" coverage_level" , String'(Source.Get (" coverage_level" )));
359
359
Simplified.Set_Field
360
360
(" hunk_filename" , String'(Source.Get (" hunk_filename" )));
361
+ Simplified.Set_Field
362
+ (" missing_source" , Boolean'(Source.Get (" missing_source" )));
361
363
362
364
if Source.Has_Field (" project" ) then
363
365
-- Project name is optional. Add it only when relevant
@@ -397,15 +399,10 @@ package body Annotations.Dynamic_Html is
397
399
Clear (Pp.Current_Decisions);
398
400
Clear (Pp.Current_Conditions);
399
401
400
- if not Info.Has_Source then
401
- Skip := True;
402
- return ;
403
- end if ;
404
-
405
402
Skip := False;
406
403
404
+ Source.Set_Field (" missing_source" , not Info.Has_Source);
407
405
-- Compute the coverage stats and store them into a JSON dictionary
408
-
409
406
Stats.Set_Field (" no_code" , Info.Stats (No_Code));
410
407
Stats.Set_Field (" covered" , Info.Stats (Covered));
411
408
Stats.Set_Field (" partially_covered" , Info.Stats (Partially_Covered));
You can’t perform that action at this time.
0 commit comments