Sha256: ce567bf0df032d13c32cefaef8987bd5f234f83706b707d9f185948f67c2143b
Contents?: true
Size: 525 Bytes
Versions: 1
Compression:
Stored size: 525 Bytes
Contents
# frozen_string_literal: true module Cucumber module Formatter class DurationExtractor attr_reader :result_duration def initialize(result) @result_duration = 0 result.describe_to(self) end def passed(*) end def failed(*) end def undefined(*) end def skipped(*) end def pending(*) end def exception(*) end def duration(duration, *) duration.tap { |dur| @result_duration = dur.nanoseconds / 10**9.0 } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber-4.0.0.rc.1 | lib/cucumber/formatter/duration_extractor.rb |