tarpaulin icon indicating copy to clipboard operation
tarpaulin copied to clipboard

Is it possible to support function coverage?

Open heisen-li opened this issue 3 years ago • 1 comments

The result I got after running is only the row coverage, which is not enough in my work. Branch coverage is in the roadmap, so is there a similar plan for function coverage?

heisen-li avatar Dec 14 '21 02:12 heisen-li

It's definitely possible, just no ones asked for it before! I guess the big questions would be how would the UX look like for function coverage, especially how would it interact with the current reporting types: coveralls, cobertura, lcov, etc.

I could probably quite trivially map the entire span of a function to a single logical line and then any lines hit in a function would be mapped to the first line of the function. But I'd rather not jump straight into the simplest solution in case it ends up being bad :sweat_smile:.

Do you have any idea how you'd want this to look? And also anymore insights on your use case?

xd009642 avatar Dec 14 '21 16:12 xd009642