Class: Canopus::Result

Inherits:
Data
  • Object
show all
Defined in:
sig/test_runner.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#line ⇒ Integer? (readonly)

Returns the value of attribute line.

Returns:

  • (Integer, nil)


28
29
30
# File 'sig/test_runner.rbs', line 28

def line
  @line
end

#message ⇒ String? (readonly)

Returns the value of attribute message.

Returns:

  • (String, nil)


29
30
31
# File 'sig/test_runner.rbs', line 29

def message
  @message
end

#path ⇒ String? (readonly)

Returns the value of attribute path.

Returns:

  • (String, nil)


27
28
29
# File 'sig/test_runner.rbs', line 27

def path
  @path
end

#status ⇒ :running, ... (readonly)

Returns the value of attribute status.

Returns:

  • (:running, :success, :failure, :skipped)


26
27
28
# File 'sig/test_runner.rbs', line 26

def status
  @status
end

Class Method Details

.new ⇒ instance

Parameters:

  • status (:running, :success, :failure, :skipped)
  • path (String, nil)
  • line (Integer, nil)
  • message (String, nil)

Returns:

  • (instance)


30
# File 'sig/test_runner.rbs', line 30

def self.new: (:running | :success | :failure | :skipped status, String? path, Integer? line, String? message) -> instance