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

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

Overview

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

Constant Summary

Constants included from BooleanMethods

BooleanMethods::TYPES

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BooleanMethods

#ok?

Class Method Details

.ok?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/cucumber/core/test/result/unknown.rb', line 14

def self.ok?
  false
end

Instance Method Details

#describe_to(_visitor, *_args) ⇒ Object



18
19
20
# File 'lib/cucumber/core/test/result/unknown.rb', line 18

def describe_to(_visitor, *_args)
  self
end

#to_messageObject



26
27
28
29
30
31
# File 'lib/cucumber/core/test/result/unknown.rb', line 26

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

#to_symObject



33
34
35
# File 'lib/cucumber/core/test/result/unknown.rb', line 33

def to_sym
  :unknown
end

#with_filtered_backtrace(_filter) ⇒ Object



22
23
24
# File 'lib/cucumber/core/test/result/unknown.rb', line 22

def with_filtered_backtrace(_filter)
  self
end