Class: MiniTest::Perf::Test
- Inherits:
-
Object
- Object
- MiniTest::Perf::Test
- Defined in:
- lib/minitest/perf/test.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#run ⇒ Object
readonly
Returns the value of attribute run.
-
#suite ⇒ Object
readonly
Returns the value of attribute suite.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(run, suite, name, total) ⇒ Test
constructor
A new instance of Test.
- #persist ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/minitest/perf/test.rb', line 4 def name @name end |
#run ⇒ Object (readonly)
Returns the value of attribute run.
4 5 6 |
# File 'lib/minitest/perf/test.rb', line 4 def run @run end |
#suite ⇒ Object (readonly)
Returns the value of attribute suite.
4 5 6 |
# File 'lib/minitest/perf/test.rb', line 4 def suite @suite end |
#total ⇒ Object (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
#persist ⇒ Object
13 14 15 |
# File 'lib/minitest/perf/test.rb', line 13 def persist Perf.persistence.write(self) end |