Class: Trainer::XCResult::ActionTestSummaryGroup
- Inherits:
-
ActionTestSummaryIdentifiableObject
- Object
- AbstractObject
- ActionAbstractTestSummary
- ActionTestSummaryIdentifiableObject
- Trainer::XCResult::ActionTestSummaryGroup
- Defined in:
- trainer/lib/trainer/xcresult.rb
Overview
-
ActionTestSummaryGroup
-
Supertype: ActionTestSummaryIdentifiableObject
-
Kind: object
-
Properties: + duration: Double + subtests: [ActionTestSummaryIdentifiableObject]
-
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#subtests ⇒ Object
Returns the value of attribute subtests.
Attributes inherited from ActionTestSummaryIdentifiableObject
Attributes inherited from ActionAbstractTestSummary
Attributes inherited from AbstractObject
Instance Method Summary collapse
- #all_subtests ⇒ Object
-
#initialize(data, parent) ⇒ ActionTestSummaryGroup
constructor
A new instance of ActionTestSummaryGroup.
Methods inherited from ActionTestSummaryIdentifiableObject
Methods inherited from AbstractObject
Constructor Details
#initialize(data, parent) ⇒ ActionTestSummaryGroup
Returns a new instance of ActionTestSummaryGroup.
133 134 135 136 137 138 139 |
# File 'trainer/lib/trainer/xcresult.rb', line 133 def initialize(data, parent) self.duration = fetch_value(data, "duration").to_f self.subtests = fetch_values(data, "subtests").map do |subtests_data| ActionTestSummaryIdentifiableObject.create(subtests_data, self) end super(data, parent) end |
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration.
131 132 133 |
# File 'trainer/lib/trainer/xcresult.rb', line 131 def duration @duration end |
#subtests ⇒ Object
Returns the value of attribute subtests.
132 133 134 |
# File 'trainer/lib/trainer/xcresult.rb', line 132 def subtests @subtests end |
Instance Method Details
#all_subtests ⇒ Object
141 142 143 |
# File 'trainer/lib/trainer/xcresult.rb', line 141 def all_subtests return subtests.map(&:all_subtests).flatten end |