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
cgen,pref: add -coverage
support
#21154
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work.
@felipensp, I've tested running this: if true {
println('branch 1')
if true {
println('branch 1.1')
if true {
println('branch 1.1.1')
} else {
println('branch 1.1.2')
}
} else {
println('branch 1.2')
if true {
println('branch 1.2.1')
} else {
println('branch 1.2.2')
}
}
} else {
println('branch 2')
if true {
println('branch 2.1')
if true {
println('branch 2.1.1')
} else {
println('branch 2.1.2')
}
} else {
println('branch 2.2')
if true {
println('branch 2.2.1')
} else {
println('branch 2.2.2')
}
}
} with:
Why does it print all the .v files for all modules (used in the program), given that for most programs, most of their functionality, will not be used? I think that skipping all the ones, for which there is 0 coverage will be more useful and more compact. |
Enable using
v -cov output-file run file.v
orv -coverage output-file run file.v
.Currently it is working with one file only.