File Coverage

blib/lib/Acme/Time/Aubergine.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 0 1 0.0
total 22 23 95.6


line stmt bran cond sub pod time code
1             package Acme::Time::Aubergine;
2 3     3   28047 use strict;
  3         8  
  3         127  
3              
4             BEGIN {
5 3     3   17 use Exporter();
  3         6  
  3         63  
6 3     3   34 use vars qw (@ISA @EXPORT $times );
  3         7  
  3         236  
7 3     3   546 use Acme::Time::FooClock;
  3         5  
  3         215  
8 3     3   51 @ISA = qw (Exporter);
9 3         9 @EXPORT = qw ( veggietime );
10              
11 3         172 $times = [
12             'Tomato', 'Aubergine', 'Carrot', 'Garlic',
13             'Spring Onion', 'Pumpkin', 'Asparagus', 'Onion',
14             'Sweetcorn', 'Brussel Sprout', 'Red Pepper', 'Cabbage',
15             ];
16             }
17              
18             =head1 NAME
19              
20             Acme::Time::Aubergine - Vegetable clock, in the King's English. Or is it
21             the Queen?
22              
23             =head1 SYNOPSIS
24              
25             use Acme::Time::Aubergine;
26             print veggietime("5:38");
27              
28             See Acme::Time::Asparagus and Acme::Time::FooClock for more details.
29              
30             =cut
31              
32             # sub veggietime {{{
33              
34             sub veggietime {
35 3     3 0 19 return Acme::Time::FooClock::time(shift);
36             } # }}}
37              
38             1;
39