Fix YARD docs to have 100% coverage again
This commit is contained in:
parent
4856ed5251
commit
ddec012680
1 changed files with 10 additions and 0 deletions
|
@ -8,6 +8,12 @@ module Mutant
|
|||
class Counter
|
||||
include Equalizer.new(:count, :fails)
|
||||
|
||||
# Return count
|
||||
#
|
||||
# @return [Fixnum]
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
attr_reader :count
|
||||
|
||||
# Return fail count
|
||||
|
@ -105,6 +111,8 @@ module Mutant
|
|||
# @return [false]
|
||||
# otherwise
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
def success?
|
||||
@counts[:subject].nonzero? && !errors?
|
||||
end
|
||||
|
@ -131,6 +139,8 @@ module Mutant
|
|||
# @return [false]
|
||||
# otherwise
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
def errors?
|
||||
@killers.values.any? do |counter|
|
||||
counter.nonzero?
|
||||
|
|
Loading…
Add table
Reference in a new issue