Class: Buildkite::TestCollector::MinDurationSpanFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/buildkite/test_collector.rb

Instance Method Summary collapse

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