Class: Cucumber::Core::Test::Result::UnknownDuration

Inherits:
Object
  • Object
show all
Includes:
Messages::TimeConversion
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/result.rb

Constant Summary

Constants included from Messages::TimeConversion

Messages::TimeConversion::NANOSECONDS_PER_SECOND

Instance Method Summary collapse

Methods included from Messages::TimeConversion

#duration_to_seconds, #seconds_to_duration, #time_to_timestamp, #timestamp_to_time

Instance Method Details

#nanosecondsObject



425
426
427
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/result.rb', line 425

def nanoseconds
  raise "#nanoseconds only allowed to be used in #tap block"
end

#tap(&block) ⇒ Object



421
422
423
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/result.rb', line 421

def tap(&block)
  self
end

#to_message_durationObject



429
430
431
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/result.rb', line 429

def to_message_duration
  Cucumber::Messages::Duration.new(seconds: 0, nanos: 0)
end