Class: Hegel::Report::Failure
- Inherits:
-
Struct
- Object
- Struct
- Hegel::Report::Failure
- Defined in:
- lib/hegel/report.rb,
sig/hegel.rbs
Overview
One failure's rendered ingredients. test_cases and discarded are
the generation phase's own counts up to that failure's first
appearance (see Hegel::Runner::GenerationStats), not the shrink
phase's. entries is the [:draw, name, value] / [:note, message] list
Hegel::TestCase recorded on the final replay that produced this
failure, in call order, still un-#inspect'd/un-#to_s'd (see
Hegel::TestCase#record_draw and #note for why). blob is the string
Hegel.test(reproduce_failure:) accepts to replay this same failure.
Instance Attribute Summary collapse
-
#blob ⇒ Object
Returns the value of attribute blob.
-
#discarded ⇒ Object
Returns the value of attribute discarded.
-
#entries ⇒ Object
Returns the value of attribute entries.
-
#test_cases ⇒ Object
Returns the value of attribute test_cases.
Instance Method Summary collapse
-
#initialize ⇒ Failure
constructor
A new instance of Failure.
Constructor Details
#initialize ⇒ Failure
Returns a new instance of Failure.
340 |
# File 'sig/hegel.rbs', line 340
def initialize: (test_cases: Integer, discarded: Integer, entries: Array[[:draw, String, untyped] | [:note, untyped]], blob: String) -> void
|
Instance Attribute Details
#blob ⇒ Object
Returns the value of attribute blob
21 22 23 |
# File 'lib/hegel/report.rb', line 21 def blob @blob end |
#discarded ⇒ Object
Returns the value of attribute discarded
21 22 23 |
# File 'lib/hegel/report.rb', line 21 def discarded @discarded end |
#entries ⇒ Object
Returns the value of attribute entries
21 22 23 |
# File 'lib/hegel/report.rb', line 21 def entries @entries end |
#test_cases ⇒ Object
Returns the value of attribute test_cases
21 22 23 |
# File 'lib/hegel/report.rb', line 21 def test_cases @test_cases end |