module Minitest::StackProfPlugin

Public Class Methods

include_setup_and_teardown=(flag) click to toggle source
# File lib/minitest/stackprof_plugin.rb, line 9
def self.include_setup_and_teardown=(flag)
    @include_setup_and_teardown = !!flag
end
include_setup_and_teardown?() click to toggle source
# File lib/minitest/stackprof_plugin.rb, line 5
def self.include_setup_and_teardown?
    @include_setup_and_teardown
end

Public Instance Methods

after_setup() click to toggle source
Calls superclass method
# File lib/minitest/stackprof_plugin.rb, line 20
def after_setup
    super
    if !StackProfPlugin.include_setup_and_teardown?
        StackProf.start(raw: true)
    end
end
after_teardown() click to toggle source
Calls superclass method
# File lib/minitest/stackprof_plugin.rb, line 34
def after_teardown
    super
    if StackProfPlugin.include_setup_and_teardown?
        StackProf.stop
    end
end
before_setup() click to toggle source
Calls superclass method
# File lib/minitest/stackprof_plugin.rb, line 13
def before_setup
    if StackProfPlugin.include_setup_and_teardown?
        StackProf.start(raw: true)
    end
    super
end
before_teardown() click to toggle source
Calls superclass method
# File lib/minitest/stackprof_plugin.rb, line 27
def before_teardown
    super
    if !StackProfPlugin.include_setup_and_teardown?
        StackProf.stop
    end
end