class RSpec::LongTimeSpecsProfiler::Stat

Attributes

count[R]
description[R]
location[R]
total_time[R]

Public Class Methods

new(location, examples) click to toggle source
# File lib/rspec/long_time_specs_profiler.rb, line 36
def initialize(location, examples)
  @location = location
  @count = examples.length
  @total_time = examples.inject(0.0) { |total, e| total + e.execution_result[:run_time] }
  @description = examples.first.example_group.top_level_description unless examples.empty?
end