Method: MiniTest::Unit::TestCase.benchmark_methods

Defined in:
lib/minitest/benchmark.rb

.benchmark_methodsObject

Returns the benchmark methods (methods that start with bench_) for that class.


45
46
47
# File 'lib/minitest/benchmark.rb', line 45

def self.benchmark_methods # :nodoc:
  public_instance_methods(true).grep(/^bench_/).map { |m| m.to_s }.sort
end