line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
3706
|
use 5.008; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
99
|
|
2
|
1
|
|
|
1
|
|
9
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
55
|
|
3
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
73
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Data::Domain::URI_TEST; |
6
|
|
|
|
|
|
|
our $VERSION = '1.100850'; |
7
|
|
|
|
|
|
|
# ABSTRACT: Test companion class for the URI data domain class |
8
|
1
|
|
|
1
|
|
5
|
use Test::More; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
11
|
|
9
|
1
|
|
|
1
|
|
864
|
use Data::Domain::URI ':all'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
161
|
|
10
|
1
|
|
|
1
|
|
6
|
use parent qw(Test::CompanionClasses::Base); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
11
|
1
|
|
|
1
|
|
3218
|
use constant PLAN => 4 * keys %Data::Domain::URI::map; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
68
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub run { |
14
|
1
|
|
|
1
|
1
|
6864
|
my $self = shift; |
15
|
1
|
|
|
|
|
7
|
while (my ($shortcut, $rel_pkg) = each %Data::Domain::URI::map) { |
16
|
1
|
|
|
1
|
|
5
|
no strict 'refs'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
129
|
|
17
|
4
|
|
|
|
|
1386
|
my $domain = *{$shortcut}{CODE}->(); |
|
4
|
|
|
|
|
22
|
|
18
|
4
|
|
|
|
|
100965
|
isa_ok($domain, "Data::Domain::$rel_pkg"); |
19
|
4
|
|
|
|
|
2129
|
isa_ok($domain, 'Data::Domain::SemanticAdapter'); |
20
|
4
|
|
|
|
|
1760
|
isa_ok($domain->adaptee, "Data::Semantic::$rel_pkg"); |
21
|
4
|
|
|
|
|
1727
|
isa_ok($domain->adaptee, 'Data::Semantic::RegexpAdapter'); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |