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



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

def describe_to(_visitor, *_args)
  self
end

#to_messageObject



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

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

#with_filtered_backtrace(_filter) ⇒ Object



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

def with_filtered_backtrace(_filter)
  self
end