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

Missing coverage for macros that add new lines #41043

Open
bramtayl opened this issue Jun 1, 2021 · 0 comments
Open

Missing coverage for macros that add new lines #41043

bramtayl opened this issue Jun 1, 2021 · 0 comments

Comments

@bramtayl
Copy link
Contributor

bramtayl commented Jun 1, 2021

Macros that add new lines do not seem to be being tracked properly by coverage. Consider the following example:

macro adds_more_lines()
    quote
        "code"
    end
end

function add_more_lines()
    @add_more_lines
end

add_more_lines()

If a user runs this code, one would expect all lines to show up as covered. However, the line inside the function does not seem to be showing up as covered. See JuliaAudio/PortAudio.jl#76 for an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants