模块 Test::Unit::OmissionHandler

公共类方法

included(base) 点击以切换源代码
# File test-unit-3.6.7/lib/test/unit/omission.rb, line 153
def included(base)
  base.exception_handler(:handle_omitted_error)
end

私有实例方法

handle_omitted_error(exception) 点击以切换源代码
# File test-unit-3.6.7/lib/test/unit/omission.rb, line 159
def handle_omitted_error(exception)
  return false unless exception.is_a?(OmittedError)
  omission = Omission.new(name,
                          filter_backtrace(exception.backtrace),
                          exception.message,
                          :method_name => @method_name)
  add_omission(omission)
  true
end