Class: Mutant::CLI::Command::Session::Subject Private

Inherits:
SessionCommand show all
Includes:
Reporter::CLI::Printer::AliveResults
Defined in:
lib/mutant/cli/command/session.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.

Show

API:

  • private

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.

API:

  • private

'subject'
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.

API:

  • private

'List subjects or show alive mutations for a specific subject'
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.

API:

  • private

[].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.

API:

  • private

(superclass::OPTIONS + i[add_verbose_option]).freeze
HEADER_FORMAT =

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.

API:

  • private

'%-6s  %-6s  %s'
ROW_FORMAT =

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.

API:

  • private

'%-6s  %-6s  %s'

Constants included from Reporter::CLI::Printer::AliveResults

Reporter::CLI::Printer::AliveResults::ALIVE_EXPLANATION

Constants inherited from Mutant::CLI::Command::Session

RESULTS_DIR

Instance Method Summary collapse

Methods included from Reporter::CLI::Printer::AliveResults

#print_alive_results

Methods inherited from SessionCommand

#action, #display_config

Methods inherited from Mutant::CLI::Command

#call, command_name, #full_name, parse, short_description

Instance Method Details

#parse_remaining_arguments(arguments) ⇒ Object

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.

API:

  • private



184
185
186
187
188
189
190
191
192
193
# File 'lib/mutant/cli/command/session.rb', line 184

def parse_remaining_arguments(arguments)
  case arguments.length
  when 0 then Either::Right.new(self)
  when 1
    @expression = Mutant::Util.one(arguments)
    Either::Right.new(self)
  else
    Either::Left.new('Expected zero or one subject expression argument')
  end
end