Skip to content

Commit

Permalink
fixup! WIP: cover: Use native coverage if enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorng committed Nov 7, 2023
1 parent 4f24c8c commit ea1f4dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/tools/src/cover.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2740,4 +2740,9 @@ html_encoding(utf8) ->
"utf-8".

has_native_coverage() ->
erlang:system_info(line_coverage).
try
erlang:system_info(coverage) =:= line_counters
catch
error:badarg ->
false
end.

0 comments on commit ea1f4dc

Please sign in to comment.