Module: Mutant::Result

Included in:
Env, Mutation, Subject, Test
Defined in:
lib/mutant/result.rb

Overview

Namespace and mixon module for results

Defined Under Namespace

Modules: ClassMethods, Coverage Classes: Env, Mutation, Subject, Test

Class Method Summary collapse

Instance Method Summary collapse

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

Parameters:

  • host (Class, Module)

Returns:

  • (undefined)


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

Returns:

  • (Boolean)


77
78
79
# File 'lib/mutant/result.rb', line 77

def fail?
  !success?
end

#overheadFloat

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

Returns:

  • (Float)


87
88
89
# File 'lib/mutant/result.rb', line 87

def overhead
  runtime - killtime
end