Class: Mutest::Matcher::Compiler Private

Inherits:
Object
  • Object
show all
Includes:
AST::Sexp
Defined in:
lib/mutest/matcher/compiler.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Compiler for complex matchers

Defined Under Namespace

Classes: SubjectPrefix

Instance Method Summary collapse

Instance Method Details

#resultMatcher

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.

Generated matcher



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/mutest/matcher/compiler.rb', line 10

def result
  Filter.new(
    Chain.new(config.match_expressions.map(&:matcher)),
    Morpher::Evaluator::Predicate::Boolean::And.new(
      [
        ignored_subjects,
        filtered_subjects
      ]
    )
  )
end