Class: Mutant::CLI::Command::Util::Mutation Private

Inherits:
Mutant::CLI::Command::Util show all
Defined in:
lib/mutant/cli/command/util.rb

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.

Defined Under Namespace

Classes: Target

Constant Summary collapse

NAME =

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

'mutation'
SHORT_DESCRIPTION =

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

'Print mutations of a code snippet'
SUBCOMMANDS =

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

[].freeze
OPTIONS =

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

%i[add_target_options].freeze

Instance Method Summary collapse

Methods inherited from Mutant::CLI::Command

#call, command_name, #full_name, parse, short_description

Instance Method Details

#actionObject

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.



16
17
18
19
20
21
22
23
24
25
# File 'lib/mutant/cli/command/util.rb', line 16

def action
  @ignore_patterns.map! do |syntax|
    AST::Pattern.parse(syntax).from_right do |message|
      return Either::Left.new(message)
    end
  end

  @targets.each(&method(:print_mutations))
  Either::Right.new(nil)
end