vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/test/tc_resolver.rb
# Returns a new resolver whose send_plain_message method always returns
# nil for the response, and a RuntimeError for the error.
Returns a new resolver whose send_plain_message method always returns
nil for the response, and a RuntimeError for the error.
Returns a new resolver whose send_plain_message method always returns nil for the response and a RuntimeError for the error .
def resolver_returning_error
    resolver = Dnsruby::Resolver.new
    def resolver.send_plain_message(_message)
      [nil, CustomError.new]
    end
    resolver
  end
def resolver_returning_error resolver = Dnsruby :: Resolver . new def resolver . send_plain_message ( _message ) [ nil , CustomError . new ] end resolver end
Returns a new resolver whose send_plain_message method always returns
nil for the response, and a RuntimeError for the error.
Returns a new resolver whose send_plain_message method always returns nil for the response and a RuntimeError for the error .