Module: Mutest::Result::Coverage Private
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Coverage mixin
Constant Summary collapse
- FULL_COVERAGE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Rational(1).freeze
Instance Method Summary collapse
-
#coverage ⇒ Rational
private
Observed coverage.
Instance Method Details
#coverage ⇒ Rational
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Observed coverage
12 13 14 15 16 17 18 |
# File 'lib/mutest/result.rb', line 12 def coverage if amount_mutation_results.zero? FULL_COVERAGE else Rational(amount_mutations_killed, amount_mutation_results) end end |