The built-in coverage in Ruby 1.9 is great, but it only offers line-by-line coverage.
It would be better if we could determine which parts of each line have been run e.g:
# File 'coverage_example.rb'
true ? 'always run' : 'never run'
Coverage would return:
0..28 => 1
0..21 => 1,
22..33 => 0
#3 Updated by Yusuke Endoh almost 4 years ago
- Category set to lib
- Status changed from Assigned to Feedback
- Assignee deleted (
- Target version set to 2.0.0
Hello, sorry for very late response...
I agree that C1 coverage is very helpful. But I have no plan to
implement the feature. It will be a tough task.
Your contribution is wanted. If anyone writes a patch, please
Yusuke Endoh firstname.lastname@example.org