class Kapnismology::Result
This is the result of each smoke test. This class makes sense to enforce smoke test to return something known Params of the constructor:
-
passed : Boolean: true -> test passed, false -> test failed
-
data : Hash representing the result of the test
-
message: String with an extra message to provide human readable information
Public Class Methods
new(passed, data, message)
click to toggle source
# File lib/kapnismology/result.rb, line 59 def initialize(passed, data, message) raise ArgumentError, 'passed argument must be true or false' unless !!passed == passed raise ArgumentError, 'data argument must be a hash' unless data.is_a?(Hash) @passed = passed @data = data @message = message @debug_messages = [] @duration = 0 end