/usr/share/perl5/CHI/t/Constants.pm is in libchi-perl 0.60-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | package CHI::t::Constants;
$CHI::t::Constants::VERSION = '0.60';
use strict;
use warnings;
use CHI::Test;
use base qw(CHI::Test::Class);
sub test_import : Tests {
{
package Foo;
$Foo::VERSION = '0.60';
use CHI::Constants qw(CHI_Meta_Namespace);
}
{
package Bar;
$Bar::VERSION = '0.60';
use CHI::Constants qw(:all);
}
{
package Baz;
$Baz::VERSION = '0.60';
}
is( Foo::CHI_Meta_Namespace, '_CHI_METACACHE' );
is( Bar::CHI_Meta_Namespace, '_CHI_METACACHE' );
ok( Bar->can('CHI_Meta_Namespace') );
ok( !Baz->can('CHI_Meta_Namespace') );
}
1;
|