Module: Minitest::GCStats

Defined in:
lib/minitest/gcstats.rb

Constant Summary collapse

VERSION =
"1.2.2"
HASH =
{}

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#gc_statsObject

Returns the value of attribute gc_stats.



6
7
8
# File 'lib/minitest/gcstats.rb', line 6

def gc_stats
  @gc_stats
end

Instance Method Details

#after_teardownObject



32
33
34
35
# File 'lib/minitest/gcstats.rb', line 32

def after_teardown
  self.gc_stats += Minitest::GCStats.current
  super
end

#before_setupObject



27
28
29
30
# File 'lib/minitest/gcstats.rb', line 27

def before_setup
  super
  self.gc_stats = -Minitest::GCStats.current
end