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:
|
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:
|
# :stopdoc:
|
||||||
class << self; attr_accessor :io_lock; end
|
class << self; attr_accessor :io_lock; end
|
||||||
self.io_lock = Mutex.new
|
self.io_lock = Mutex.new
|
||||||
|
@ -84,10 +88,6 @@ module Minitest
|
||||||
:random
|
:random
|
||||||
end
|
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.
|
# Runs a single test with setup/teardown hooks.
|
||||||
|
|
||||||
|
@ -212,7 +212,7 @@ module Minitest
|
||||||
neuter_exception e
|
neuter_exception e
|
||||||
end
|
end
|
||||||
|
|
||||||
def neuter_exception e
|
def neuter_exception e # :nodoc:
|
||||||
bt = e.backtrace
|
bt = e.backtrace
|
||||||
msg = e.message.dup
|
msg = e.message.dup
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@ module Minitest
|
||||||
new_exception RuntimeError, msg, bt, true # but if this raises, we die
|
new_exception RuntimeError, msg, bt, true # but if this raises, we die
|
||||||
end
|
end
|
||||||
|
|
||||||
def new_exception klass, msg, bt, kill = false
|
def new_exception klass, msg, bt, kill = false # :nodoc:
|
||||||
ne = klass.new msg
|
ne = klass.new msg
|
||||||
ne.set_backtrace bt
|
ne.set_backtrace bt
|
||||||
|
|
||||||
|
|
|
@ -277,8 +277,8 @@ module Minitest # :nodoc:
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Work < Queue
|
class Work < Queue # :nodoc:
|
||||||
def initialize jobs = []
|
def initialize jobs = [] # :nodoc:
|
||||||
super()
|
super()
|
||||||
|
|
||||||
jobs.each do |job|
|
jobs.each do |job|
|
||||||
|
@ -289,7 +289,7 @@ class Work < Queue
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Integer
|
class Integer # :nodoc:
|
||||||
def threads_do(jobs) # :nodoc:
|
def threads_do(jobs) # :nodoc:
|
||||||
require "thread"
|
require "thread"
|
||||||
q = Work.new jobs
|
q = Work.new jobs
|
||||||
|
|
Loading…
Reference in New Issue