lib/Spreadsheet/Engine/Function/STDEV.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::STDEV; | ||||||
2 | |||||||
3 | 28 | 28 | 151 | use strict; | |||
28 | 61 | ||||||
28 | 997 | ||||||
4 | 28 | 28 | 147 | use warnings; | |||
28 | 54 | ||||||
28 | 785 | ||||||
5 | |||||||
6 | 28 | 28 | 176 | use base 'Spreadsheet::Engine::Function::VAR'; | |||
28 | 58 | ||||||
28 | 5930 | ||||||
7 | |||||||
8 | sub result_from { | ||||||
9 | 72 | 72 | 1 | 119 | my ($self, $A) = @_; | ||
10 | 72 | 100 | 306 | die Spreadsheet::Engine::Error->div0 unless $A->{count} > 1; | |||
11 | 58 | 553335 | return sqrt $self->SUPER::result_from($A); | ||||
12 | } | ||||||
13 | |||||||
14 | 1; | ||||||
15 | |||||||
16 | __END__ |