File Coverage

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


line stmt bran cond sub pod time code
1             package Spreadsheet::Engine::Function::POWER;
2              
3 28     28   147 use strict;
  28         61  
  28         871  
4 28     28   141 use warnings;
  28         56  
  28         808  
5              
6 28     28   160 use base 'Spreadsheet::Engine::Fn::math2';
  28         75  
  28         5125  
7              
8             sub calculate {
9 47     47 1 1820 my ($self, $num, $exp) = @_;
10 47         1040 return $num**$exp;
11             }
12              
13             1;
14              
15             __END__