Class: Bparity::Verification::Runner
- Inherits:
-
Object
- Object
- Bparity::Verification::Runner
- Defined in:
- lib/bparity/verification.rb
Instance Attribute Summary collapse
-
#results ⇒ Object
readonly
Returns the value of attribute results.
Instance Method Summary collapse
-
#initialize(bundle:, adapter:, mode: nil) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
- #success? ⇒ Boolean
Constructor Details
#initialize(bundle:, adapter:, mode: nil) ⇒ Runner
Returns a new instance of Runner.
299 300 301 |
# File 'lib/bparity/verification.rb', line 299 def initialize(bundle:, adapter:, mode: nil) @replay = TraceReplay.new(bundle:, adapter:, mode:) end |
Instance Attribute Details
#results ⇒ Object (readonly)
Returns the value of attribute results.
297 298 299 |
# File 'lib/bparity/verification.rb', line 297 def results @results end |
Instance Method Details
#run ⇒ Object
303 304 305 |
# File 'lib/bparity/verification.rb', line 303 def run @results = @replay.run end |
#success? ⇒ Boolean
307 |
# File 'lib/bparity/verification.rb', line 307 def success? = results&.none? { |result| result.status == :fail } |