File Coverage

lib/Spreadsheet/Engine/Function/YEAR.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Spreadsheet::Engine::Function::YEAR;
2              
3 28     28   145 use strict;
  28         60  
  28         877  
4 28     28   146 use warnings;
  28         59  
  28         706  
5              
6 28     28   153 use base 'Spreadsheet::Engine::Fn::ymd';
  28         55  
  28         5896  
7              
8             sub _calculate {
9 32     32   61 my ($self, $y, $m, $d) = @_;
10 32         734 return $y;
11             }
12              
13             1;
14              
15             __END__