Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip isolating cover instructions when native coverage is available #21

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

the-mikedavis
Copy link
Member

If OTP is compiled with native coverage support (OTP 27+ plus JIT), cover does not attempt to inject counters into the code, so isolating the cover instructions fails. We can skip that step when we detect native coverage support.

Connects #20

If OTP is compiled with native coverage support (OTP 27+ plus JIT),
`cover` does not attempt to inject counters into the code, so
isolating the cover instructions fails. We can skip that step when we
detect native coverage support.
Copy link

codecov bot commented Feb 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.06%. Comparing base (7d75f5f) to head (0b6b816).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #21      +/-   ##
==========================================
+ Coverage   86.05%   86.06%   +0.01%     
==========================================
  Files           3        3              
  Lines         932      933       +1     
==========================================
+ Hits          802      803       +1     
  Misses        130      130              
Flag Coverage Δ
erlang-24 81.39% <100.00%> (+0.02%) ⬆️
erlang-25 83.33% <100.00%> (+0.01%) ⬆️
erlang-26 78.04% <100.00%> (+0.02%) ⬆️
os-ubuntu-latest 86.06% <100.00%> (+0.01%) ⬆️
os-windows-latest 83.33% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@dumbbell dumbbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dumbbell dumbbell added this to the v0.3.0 milestone Mar 5, 2024
@dumbbell dumbbell added the enhancement New feature or request label Mar 5, 2024
@dumbbell dumbbell merged commit 35a84ab into main Mar 5, 2024
10 checks passed
@dumbbell dumbbell deleted the md-native-cover branch March 5, 2024 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants