blib/lib/File/Attributes/Base.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 18 | 18 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 6 | 6 | 100.0 |
pod | 3 | 3 | 100.0 |
total | 27 | 27 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | #!/usr/bin/perl | ||||||
2 | # Base.pm | ||||||
3 | # Copyright (c) 2006 Jonathan Rockway |
||||||
4 | |||||||
5 | # see POD after __END__ | ||||||
6 | |||||||
7 | package File::Attributes::Base; | ||||||
8 | 12 | 12 | 70041 | use strict; | |||
12 | 25 | ||||||
12 | 958 | ||||||
9 | 12 | 12 | 65 | use warnings; | |||
12 | 22 | ||||||
12 | 654 | ||||||
10 | 12 | 12 | 66 | use Carp; | |||
12 | 23 | ||||||
12 | 2445 | ||||||
11 | |||||||
12 | sub new { | ||||||
13 | 19 | 19 | 1 | 1549541 | my $class = shift; | ||
14 | 19 | 111 | my $self = \my $foo; | ||||
15 | 19 | 52 | bless $self, $class; | ||||
16 | 19 | 66 | return $self; | ||||
17 | } | ||||||
18 | |||||||
19 | sub priority { | ||||||
20 | 6 | 6 | 1 | 12 | my $self = shift; | ||
21 | 6 | 51 | return 0; | ||||
22 | } | ||||||
23 | |||||||
24 | sub applicable { | ||||||
25 | 1 | 1 | 1 | 5 | my $self = shift; | ||
26 | 1 | 2 | my $filename = shift; | ||||
27 | 1 | 6 | return 0; | ||||
28 | } | ||||||
29 | |||||||
30 | 1; | ||||||
31 | __END__ |