Class: Cucumber::Core::Test::Result::UnknownDuration
- Inherits:
-
Object
- Object
- Cucumber::Core::Test::Result::UnknownDuration
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
Messages::TimeConversion::NANOSECONDS_PER_SECOND
Instance Method Summary
collapse
#duration_to_seconds, #seconds_to_duration, #time_to_timestamp, #timestamp_to_time
Instance Method Details
#nanoseconds ⇒ Object
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_duration ⇒ Object
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
|