File Coverage

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


line stmt bran cond sub pod time code
1             package Spreadsheet::Engine::Function::STDEVP;
2              
3 28     28   148 use strict;
  28         59  
  28         889  
4 28     28   144 use warnings;
  28         61  
  28         725  
5              
6 28     28   150 use base 'Spreadsheet::Engine::Function::VARP';
  28         62  
  28         8296  
7              
8             sub result_from {
9 35     35 1 75 my ($self, $A) = @_;
10 35 100       150 die Spreadsheet::Engine::Error->div0 unless $A->{count} > 1;
11 28         157 return sqrt $self->SUPER::result_from($A);
12             }
13              
14             1;
15              
16             __END__