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