Class: Mutant::Test

Inherits:
Object
  • Object
show all
Includes:
AbstractType, Adamantium::Flat
Defined in:
lib/mutant/test.rb

Overview

Abstract base class for test that might kill a mutation

Defined Under Namespace

Classes: Report

Instance Method Summary collapse

Instance Method Details

#identificationString

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 test identification

Returns:

  • (String)


70
71
72
# File 'lib/mutant/test.rb', line 70

def identification
  "#{self.class::PREFIX}:#{subject_identification}"
end

#runTest::Result

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.

Run tests

Returns:

  • (Test::Result)


62
# File 'lib/mutant/test.rb', line 62

abstract_method :run

#subject_identificationString

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 subject identification

This method is used for current mutants primitive test selection.

Returns:

  • (String)


83
# File 'lib/mutant/test.rb', line 83

abstract_method :subject_identification