ignore http/form-data warning from the coverage

This commit is contained in:
HoneyryderChuck 2021-02-19 16:19:02 +00:00
parent a050b5a403
commit 3ed3dcaa43

View File

@ -23,6 +23,7 @@ module HTTPX
end
def load_dependencies(*)
# :nocov:
begin
unless defined?(HTTP::FormData)
# in order not to break legacy code, we'll keep loading http/form_data for them.
@ -33,6 +34,7 @@ module HTTPX
end
rescue LoadError
end
# :nocov:
require "httpx/plugins/multipart/encoder"
require "httpx/plugins/multipart/part"
require "httpx/plugins/multipart/mime_type_detector"