File Coverage

blib/lib/Catalyst/Plugin/Flavour/Data.pm
Criterion Covered Total %
statement 12 13 92.3
branch n/a
condition n/a
subroutine 4 5 80.0
pod n/a
total 16 18 88.8


line stmt bran cond sub pod time code
1             package Catalyst::Plugin::Flavour::Data;
2 1     1   5 use strict;
  1         1  
  1         25  
3 1     1   4 use warnings;
  1         2  
  1         30  
4 1     1   3 use base qw/Class::Accessor::Fast/;
  1         0  
  1         98  
5              
6             use overload (
7 0     0     q{""} => sub { shift->flavour },
8 1     1   3 );
  1         1  
  1         8  
9              
10             __PACKAGE__->mk_accessors(qw/fn flavour year month day/);
11              
12             *yr = \&year;
13             *mo = \&month;
14             *da = \&day;
15              
16             1;