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

Have an option to mark lines as "ok that this isn't covered" #53

Closed
davidanthoff opened this issue Mar 18, 2015 · 1 comment
Closed

Comments

@davidanthoff
Copy link
Contributor

I have a situation where I'm calling an external function that returns an int. I know all the values that this external function can return, but I want to make sure my code breaks in case the external function adds another, new return type. So my code looks like this:

ret = somef()
if ret==1
  # do something
elseif ret==2
  # do something
else
  error("This cannot happen with the current version of somef, but might in the future")
end

It would be great if there as a way to mark that line in the else block as "all good that this is not covered", so that it doesn't show up as a red line in the coverage UI.

@vtjnash
Copy link
Member

vtjnash commented Nov 12, 2020

Closed by JuliaCI/CoverageTools.jl#35

@vtjnash vtjnash closed this as completed Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants