Skip to content

Commit

Permalink
Added prodection against missing optional dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanwills-optus committed Oct 1, 2018
1 parent 577c08d commit 1b580e2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions t/00-load.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ use_ok('Data::Context::Finder::File');
use_ok('Data::Context::Instance');
use_ok('Data::Context::Loader');
use_ok('Data::Context::Loader::File');
use_ok('Data::Context::Loader::File::XML');
use_ok('Data::Context::Loader::File::JSON');
use_ok('Data::Context::Loader::File::JS');
use_ok('Data::Context::Loader::File::YAML');
if ( eval { require XML::Simple } ) {
use_ok('Data::Context::Loader::File::XML');
}
if ( eval { require JSON::XS } ) {
use_ok('Data::Context::Loader::File::JSON');
use_ok('Data::Context::Loader::File::JS');
}
if ( eval { require YAML::XS } ) {
use_ok('Data::Context::Loader::File::YAML');
}
use_ok('Data::Context::Log');
use_ok('Data::Context::Util');

Expand Down

0 comments on commit 1b580e2

Please sign in to comment.