msimerson / mail-dmarc

Mail::DMARC, a complete DMARC implementation in Perl
Other
33 stars 23 forks source link

Undeclared dependency JSON #172

Closed eserte closed 4 years ago

eserte commented 4 years ago

t/09.HTTP.t fails if JSON.pm is not installed:

#   Failed test 'use Mail::DMARC::HTTP;'
#   at t/09.HTTP.t line 21.
#     Tried to use 'Mail::DMARC::HTTP'.
#     Error:  Can't locate JSON.pm in @INC (you may need to install the JSON module) (@INC contains: ...  .) at lib/Mail/DMARC/HTTP.pm line 12.
# BEGIN failed--compilation aborted at lib/Mail/DMARC/HTTP.pm line 12.
# Compilation failed in require at t/09.HTTP.t line 21.
# BEGIN failed--compilation aborted at t/09.HTTP.t line 21.
Undefined subroutine &Mail::DMARC::HTTP::serve_validator called at t/09.HTTP.t line 26.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 2 just after 2.
t/09.HTTP.t .................................. 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/2 subtests