Class: Cucumber::Core::Test::Result::Unknown

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/core/test/result.rb

Overview

Null object for results. Represents the state where we haven’t run anything yet

Instance Method Summary collapse

Instance Method Details

#describe_to(_visitor, *_args) ⇒ Object



40
41
42
# File 'lib/cucumber/core/test/result.rb', line 40

def describe_to(_visitor, *_args)
  self
end

#to_messageObject



48
49
50
51
52
53
# File 'lib/cucumber/core/test/result.rb', line 48

def to_message
  Cucumber::Messages::TestStepResult.new(
    status: Cucumber::Messages::TestStepResultStatus::UNKNOWN,
    duration: UnknownDuration.new.to_message_duration
  )
end

#with_filtered_backtrace(_filter) ⇒ Object



44
45
46
# File 'lib/cucumber/core/test/result.rb', line 44

def with_filtered_backtrace(_filter)
  self
end