Class: Minitest::Perf::Test

Inherits:
Object
  • Object
show all
Defined in:
lib/minitest/perf/test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(run, suite, name, total) ⇒ Test

Returns a new instance of Test.



6
7
8
9
10
11
# File 'lib/minitest/perf/test.rb', line 6

def initialize(run, suite, name, total)
  @run    = run
  @suite  = suite
  @name   = name
  @total  = total
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/minitest/perf/test.rb', line 4

def name
  @name
end

#runObject (readonly)

Returns the value of attribute run.



4
5
6
# File 'lib/minitest/perf/test.rb', line 4

def run
  @run
end

#suiteObject (readonly)

Returns the value of attribute suite.



4
5
6
# File 'lib/minitest/perf/test.rb', line 4

def suite
  @suite
end

#totalObject (readonly)

Returns the value of attribute total.



4
5
6
# File 'lib/minitest/perf/test.rb', line 4

def total
  @total
end

Instance Method Details

#persistObject



13
14
15
# File 'lib/minitest/perf/test.rb', line 13

def persist
  Perf.persistence.write(self)
end