Module: Mutant::Result
Overview
Namespace and mixon module for results
Defined Under Namespace
Modules: ClassMethods, Coverage Classes: Env, Mutation, Subject, Test
Class Method Summary collapse
-
.included(host) ⇒ undefined
private
Hook called when module gets included.
Instance Method Summary collapse
-
#fail? ⇒ Boolean
private
Test if operation is failing.
-
#overhead ⇒ Float
private
Return overhead.
Class Method Details
.included(host) ⇒ undefined
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.
Hook called when module gets included
99 100 101 102 103 104 |
# File 'lib/mutant/result.rb', line 99 def self.included(host) host.class_eval do include Adamantium::Flat, Anima::Update extend ClassMethods end end |
Instance Method Details
#fail? ⇒ Boolean
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.
Test if operation is failing
77 78 79 |
# File 'lib/mutant/result.rb', line 77 def fail? !success? end |
#overhead ⇒ Float
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.
Return overhead
87 88 89 |
# File 'lib/mutant/result.rb', line 87 def overhead runtime - killtime end |