Class: Mutant::Integration

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

Overview

Abstract base class mutant test framework integrations

Direct Known Subclasses

Null

Defined Under Namespace

Classes: Null

Constant Summary collapse

REGISTRY =
{}

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.lookup(name) ⇒ Integration

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.

Lookup integration for name

Parameters:

  • name (String)

Returns:



18
19
20
# File 'lib/mutant/integration.rb', line 18

def self.lookup(name)
  REGISTRY.fetch(name)
end

Instance Method Details

#all_testsEnumerable<Test>

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 all available tests by integration

Returns:

  • (Enumerable<Test>)


53
# File 'lib/mutant/integration.rb', line 53

abstract_method :all_tests

#setupself

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.

Perform integration setup

Returns:

  • (self)


43
44
45
# File 'lib/mutant/integration.rb', line 43

def setup
  self
end