line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::Object::Autobox::Autoload::Undef; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1276
|
use 5.010; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
48
|
|
4
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
42
|
|
5
|
1
|
|
|
1
|
|
8
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
44
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
7
|
use Carp 'confess'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
80
|
|
8
|
1
|
|
|
1
|
|
7
|
use Data::Object 'type_undef'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
70
|
|
9
|
1
|
|
|
1
|
|
7
|
use Scalar::Util 'blessed'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
270
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub AUTOLOAD { |
12
|
0
|
|
|
0
|
|
|
my ($package, $method) = our $AUTOLOAD =~ /^(.+)::(.+)$/; |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
my $delegate = 'Data::Object::Undef'; |
15
|
0
|
|
|
|
|
|
my $self = $_[0] = type_undef $_[0]; |
16
|
|
|
|
|
|
|
|
17
|
0
|
0
|
0
|
|
|
|
confess "Undefined subroutine &${delegate}::$method called" |
18
|
|
|
|
|
|
|
unless blessed $self && $self->isa($delegate); |
19
|
|
|
|
|
|
|
|
20
|
0
|
0
|
|
|
|
|
confess "Can't locate object method \"$method\" via package \"$delegate\"" |
21
|
|
|
|
|
|
|
unless my $source = $self->can($method); |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
goto $source; # delegate to Data::Object::Undef ... |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |