Class: Sapphire::Testing::TestResult

Inherits:
Object
  • Object
show all
Defined in:
lib/sapphire/Testing/TestResult.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, text, message, stack, execution_time, id) ⇒ TestResult

Returns a new instance of TestResult.



13
14
15
16
17
18
19
20
# File 'lib/sapphire/Testing/TestResult.rb', line 13

def initialize(type, text, message, stack, execution_time, id)
  @myId = id
  @text = text
  @execution_time = execution_time
  @message = message
  @stack = stack
  @type = type
end

Instance Attribute Details

#execution_timeObject (readonly)

Returns the value of attribute execution_time.



5
6
7
# File 'lib/sapphire/Testing/TestResult.rb', line 5

def execution_time
  @execution_time
end

#messageObject (readonly)

Returns the value of attribute message.



6
7
8
# File 'lib/sapphire/Testing/TestResult.rb', line 6

def message
  @message
end

#myIdObject (readonly)

Returns the value of attribute myId.



7
8
9
# File 'lib/sapphire/Testing/TestResult.rb', line 7

def myId
  @myId
end

#stackObject (readonly)

Returns the value of attribute stack.



10
11
12
# File 'lib/sapphire/Testing/TestResult.rb', line 10

def stack
  @stack
end

#textObject (readonly)

Returns the value of attribute text.



8
9
10
# File 'lib/sapphire/Testing/TestResult.rb', line 8

def text
  @text
end

#typeObject (readonly)

Returns the value of attribute type.



9
10
11
# File 'lib/sapphire/Testing/TestResult.rb', line 9

def type
  @type
end