Skip to content

Commit

Permalink
+ Rdoc improvements
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 5949]
  • Loading branch information
zenspider committed Nov 6, 2010
1 parent d1e1394 commit 754d87a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/minitest/benchmark.rb
Expand Up @@ -39,12 +39,16 @@ def self.bench_linear min, max, step = 10
end

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

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

##
# Returns all test suites that have benchmark methods.

def self.benchmark_suites
TestCase.test_suites.reject { |s| s.benchmark_methods.empty? }
end
Expand Down

0 comments on commit 754d87a

Please sign in to comment.