line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CHI::t::Constants; |
2
|
|
|
|
|
|
|
$CHI::t::Constants::VERSION = '0.59'; |
3
|
1
|
|
|
1
|
|
465
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
4
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
22
|
|
5
|
1
|
|
|
1
|
|
306
|
use CHI::Test; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use base qw(CHI::Test::Class); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub test_import : Tests { |
9
|
|
|
|
|
|
|
{ |
10
|
|
|
|
|
|
|
package Foo; |
11
|
|
|
|
|
|
|
$Foo::VERSION = '0.59'; |
12
|
|
|
|
|
|
|
use CHI::Constants qw(CHI_Meta_Namespace); |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
{ |
15
|
|
|
|
|
|
|
package Bar; |
16
|
|
|
|
|
|
|
$Bar::VERSION = '0.59'; |
17
|
|
|
|
|
|
|
use CHI::Constants qw(:all); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
{ |
20
|
|
|
|
|
|
|
package Baz; |
21
|
|
|
|
|
|
|
$Baz::VERSION = '0.59'; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
is( Foo::CHI_Meta_Namespace, '_CHI_METACACHE' ); |
24
|
|
|
|
|
|
|
is( Bar::CHI_Meta_Namespace, '_CHI_METACACHE' ); |
25
|
|
|
|
|
|
|
ok( Bar->can('CHI_Meta_Namespace') ); |
26
|
|
|
|
|
|
|
ok( !Baz->can('CHI_Meta_Namespace') ); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |