Arange code in a better way
This commit is contained in:
parent
e321d7a00d
commit
98116a63d9
1 changed files with 11 additions and 11 deletions
|
@ -31,17 +31,7 @@ module Mutant
|
||||||
host.memoize :coverage
|
host.memoize :coverage
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end # Coverage
|
||||||
|
|
||||||
# Test if operation is failing
|
|
||||||
#
|
|
||||||
# @return [Boolean]
|
|
||||||
#
|
|
||||||
# @api private
|
|
||||||
#
|
|
||||||
def fail?
|
|
||||||
!success?
|
|
||||||
end
|
|
||||||
|
|
||||||
# Class level mixin
|
# Class level mixin
|
||||||
module ClassMethods
|
module ClassMethods
|
||||||
|
@ -64,6 +54,16 @@ module Mutant
|
||||||
end
|
end
|
||||||
memoize name
|
memoize name
|
||||||
end
|
end
|
||||||
|
end # ClassMethods
|
||||||
|
|
||||||
|
# Test if operation is failing
|
||||||
|
#
|
||||||
|
# @return [Boolean]
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
|
#
|
||||||
|
def fail?
|
||||||
|
!success?
|
||||||
end
|
end
|
||||||
|
|
||||||
# Return overhead
|
# Return overhead
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue