Test::JSON::More;
use strict;
use warnings;
use Test::Differences;
use parent 'Test::Builder::Module';
our $VERSION = '0.02';
my $JSON;
sub import {
my $class = shift;
my $json_modul
e = shift || 'JSON';
my $caller = caller;
for my $func (qw/ ok_json cmp_json parsed_json ok_json_schema /) {
no strict 'refs'; ## no critic
*{"${caller}::$func"} = \&{"${clas
s}::$func"};
}
$JSON = _load_module($json_module)->new;
}
sub _load_module {
my $module = shift;
my $lib = $module;
$lib =~ s!::!/!g;
require "$lib.pm"; ## no critic
$li
8
This is Perl module B<Test::JSON::More>.
=begin html
<a href="http://travis-ci.org/bayashi/Test-JSON-More"><img src="https://secure.travis-ci.org/bayashi/Test-JSON-More.png?_t=1461806674"/></a>
s.io/r/bayashi/Test-JSON-More"><img src="https://coveralls.io/repos/bayashi/Test-JSON-More/badge.png?_t=1461806674&branch=master"/></a>
=end html
=head1 INSTALLATION
Test::JSON::More installation
Test::JSON::More
Download it, unpack it, then build it as per the usual:
% perl Makefile.PL
% make && make test
Then install it:
% make install
=head1 DOCUMENTATION
Test::JSON::More