blib/lib/Code/Perl/Expr/SubName.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 13 | 13 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 2 | 0.0 |
total | 18 | 20 | 90.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | # $Header: /home/fergal/my/cvs/Code-Perl/lib/Code/Perl/Expr/SubName.pm,v 1.1 2003/06/17 15:11:11 fergal Exp $ | ||||||
2 | |||||||
3 | 1 | 1 | 6 | use strict; | |||
1 | 2 | ||||||
1 | 45 | ||||||
4 | |||||||
5 | package Code::Perl::Expr::SubName; | ||||||
6 | |||||||
7 | 1 | 1 | 5 | use base 'Code::Perl::Expr::Constant'; | |||
1 | 2 | ||||||
1 | 76 | ||||||
8 | |||||||
9 | 1 | 1 | 6 | use Carp 'confess'; | |||
1 | 2 | ||||||
1 | 112 | ||||||
10 | |||||||
11 | sub eval | ||||||
12 | { | ||||||
13 | 2 | 2 | 0 | 27 | my $self = shift; | ||
14 | |||||||
15 | 2 | 68 | return $self->getValue | ||||
16 | } | ||||||
17 | |||||||
18 | sub perl | ||||||
19 | { | ||||||
20 | 3 | 3 | 0 | 19 | my $self = shift; | ||
21 | |||||||
22 | 3 | 314 | return $self->getValue; | ||||
23 | } | ||||||
24 | |||||||
25 | 1; |