get rake dcov back to 100%
[git-p4: depot-paths = "//src/minitest/dev/": change = 13580]
This commit is contained in:
parent
3a77687e8b
commit
dcdd882fbe
|
@ -18,6 +18,10 @@ module Minitest
|
|||
|
||||
PASSTHROUGH_EXCEPTIONS = [NoMemoryError, SignalException, SystemExit] # :nodoc:
|
||||
|
||||
SETUP_METHODS = %w[ before_setup setup after_setup ] # :nodoc:
|
||||
|
||||
TEARDOWN_METHODS = %w[ before_teardown teardown after_teardown ] # :nodoc:
|
||||
|
||||
# :stopdoc:
|
||||
class << self; attr_accessor :io_lock; end
|
||||
self.io_lock = Mutex.new
|
||||
|
@ -84,10 +88,6 @@ module Minitest
|
|||
:random
|
||||
end
|
||||
|
||||
SETUP_METHODS = %w[ before_setup setup after_setup ] # :nodoc:
|
||||
|
||||
TEARDOWN_METHODS = %w[ before_teardown teardown after_teardown ] # :nodoc:
|
||||
|
||||
##
|
||||
# Runs a single test with setup/teardown hooks.
|
||||
|
||||
|
@ -212,7 +212,7 @@ module Minitest
|
|||
neuter_exception e
|
||||
end
|
||||
|
||||
def neuter_exception e
|
||||
def neuter_exception e # :nodoc:
|
||||
bt = e.backtrace
|
||||
msg = e.message.dup
|
||||
|
||||
|
@ -223,7 +223,7 @@ module Minitest
|
|||
new_exception RuntimeError, msg, bt, true # but if this raises, we die
|
||||
end
|
||||
|
||||
def new_exception klass, msg, bt, kill = false
|
||||
def new_exception klass, msg, bt, kill = false # :nodoc:
|
||||
ne = klass.new msg
|
||||
ne.set_backtrace bt
|
||||
|
||||
|
|
|
@ -277,8 +277,8 @@ module Minitest # :nodoc:
|
|||
end
|
||||
end
|
||||
|
||||
class Work < Queue
|
||||
def initialize jobs = []
|
||||
class Work < Queue # :nodoc:
|
||||
def initialize jobs = [] # :nodoc:
|
||||
super()
|
||||
|
||||
jobs.each do |job|
|
||||
|
@ -289,7 +289,7 @@ class Work < Queue
|
|||
end
|
||||
end
|
||||
|
||||
class Integer
|
||||
class Integer # :nodoc:
|
||||
def threads_do(jobs) # :nodoc:
|
||||
require "thread"
|
||||
q = Work.new jobs
|
||||
|
|
Loading…
Reference in New Issue