Module: Minitest::Covers::InstanceMethods
- Defined in:
- lib/minitest/covers.rb
Instance Method Summary collapse
Instance Method Details
#after_teardown ⇒ Object
91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/minitest/covers.rb', line 91 def after_teardown super ensure begin call_log = call_log_enabled? ? RSpec::Covers.call_log_probe.stop_example : empty_call_log after_snapshot = RSpec::Covers.coverage_probe.snapshot executed = RSpec::Covers.coverage_probe.difference(@rspec_covers_before_snapshot || {}, after_snapshot) RSpec::Covers.process_example(ExampleAdapter.new(self), executed, call_log) ensure Thread.current[:rspec_covers_expectation_object_ids] = nil end end |
#assert(test, msg = nil) ⇒ Object
79 80 81 82 |
# File 'lib/minitest/covers.rb', line 79 def assert(test, msg = nil) RSpec::Covers.record_expectation_actual(test) super end |
#before_setup ⇒ Object
84 85 86 87 88 89 |
# File 'lib/minitest/covers.rb', line 84 def before_setup Thread.current[:rspec_covers_expectation_object_ids] = [] @rspec_covers_before_snapshot = RSpec::Covers.coverage_probe.snapshot RSpec::Covers.call_log_probe.start_example if call_log_enabled? super end |