File Coverage

lib/Spreadsheet/Engine/Function/VARP.pm
Criterion Covered Total %
statement 12 12 100.0
branch 1 2 50.0
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 18 19 94.7


line stmt bran cond sub pod time code
1             package Spreadsheet::Engine::Function::VARP;
2              
3 28     28   163 use strict;
  28         59  
  28         1086  
4 28     28   152 use warnings;
  28         60  
  28         698  
5              
6 28     28   147 use base 'Spreadsheet::Engine::Function::VAR';
  28         56  
  28         8919  
7              
8             sub result_from {
9 36     36 1 57 my ($self, $A) = @_;
10 36 50       112 die Spreadsheet::Engine::Error->div0 unless $A->{count} > 1;
11 36         205 return $A->{sk} / $A->{count};
12             }
13              
14             1;
15              
16             __END__