Acme-Devel-Hide-Tiny
view release on metacpan or search on metacpan
"type" : "git",
"url" : "https://github.com/dagolden/Acme-Devel-Hide-Tiny.git",
"web" : "https://github.com/dagolden/Acme-Devel-Hide-Tiny"
}
},
"version" : "0.002",
"x_authority" : "cpan:DAGOLDEN",
"x_contributors" : [
"Graham Knop <haarg@haarg.org>"
],
"x_serialization_backend" : "Cpanel::JSON::XS version 3.0225"
}
NAME
Acme::Devel::Hide::Tiny - Hide a perl module for testing, in one
statement
VERSION
version 0.002
SYNOPSIS
# in 'foo.t', assume we want to hide Cpanel::JSON::XS
# hide Cpanel::JSON::XS -> Cpanel/JSON/XS.pm
use lib map {
my $m = $_;
sub { return unless $_[1] eq $m; die "Can't locate $_[1] in \@INC (hidden)\n"; }
} qw{Cpanel/JSON/XS.pm};
DESCRIPTION
The Devel::Hide and Test::Without::Module modules are very helpful
development tools. Unfortunately, using them in your .t files adds a
test dependency. Maybe you don't want to do that.
lib/Acme/Devel/Hide/Tiny.pm view on Meta::CPAN
=head1 NAME
Acme::Devel::Hide::Tiny - Hide a perl module for testing, in one statement
=head1 VERSION
version 0.002
=head1 SYNOPSIS
# in 'foo.t', assume we want to hide Cpanel::JSON::XS
# hide Cpanel::JSON::XS -> Cpanel/JSON/XS.pm
use lib map {
my $m = $_;
sub { return unless $_[1] eq $m; die "Can't locate $_[1] in \@INC (hidden)\n"; }
} qw{Cpanel/JSON/XS.pm};
=head1 DESCRIPTION
The L<Devel::Hide> and L<Test::Without::Module> modules are very helpful
development tools. Unfortunately, using them in your F<.t> files adds a
test dependency. Maybe you don't want to do that.
( run in 0.275 second using v1.01-cache-2.11-cpan-4d50c553e7e )