File Coverage

lib/Spreadsheet/Engine/Function/MONTH.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::MONTH;
2              
3 28     28   149 use strict;
  28         135  
  28         897  
4 28     28   142 use warnings;
  28         57  
  28         896  
5              
6 28     28   174 use base 'Spreadsheet::Engine::Fn::ymd';
  28         56  
  28         6648  
7              
8             sub _calculate {
9 79     79   220 my ($self, $y, $m, $d) = @_;
10 79         1799 return $m;
11             }
12              
13             1;
14              
15             __END__