Class: Buildkite::TestCollector::MinDurationSpanFilter
- Inherits:
-
Object
- Object
- Buildkite::TestCollector::MinDurationSpanFilter
- Defined in:
- lib/buildkite/test_collector.rb
Instance Method Summary collapse
- #call(span) ⇒ Object
-
#initialize(min_duration) ⇒ MinDurationSpanFilter
constructor
A new instance of MinDurationSpanFilter.
Constructor Details
#initialize(min_duration) ⇒ MinDurationSpanFilter
Returns a new instance of MinDurationSpanFilter.
94 95 96 |
# File 'lib/buildkite/test_collector.rb', line 94 def initialize(min_duration) @min_duration = min_duration end |
Instance Method Details
#call(span) ⇒ Object
98 99 100 |
# File 'lib/buildkite/test_collector.rb', line 98 def call(span) span.duration > @min_duration end |