lib/Spreadsheet/Engine/Function/SQRT.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 2 | 2 | 100.0 |
total | 19 | 19 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Spreadsheet::Engine::Function::SQRT; | ||||||
2 | |||||||
3 | 28 | 28 | 147 | use strict; | |||
28 | 60 | ||||||
28 | 3676 | ||||||
4 | 28 | 28 | 151 | use warnings; | |||
28 | 64 | ||||||
28 | 750 | ||||||
5 | |||||||
6 | 28 | 28 | 151 | use base 'Spreadsheet::Engine::Fn::math'; | |||
28 | 62 | ||||||
28 | 4102 | ||||||
7 | |||||||
8 | 644 | 644 | 1 | 2136 | sub signature { '>=0' } | ||
9 | |||||||
10 | sub calculate { | ||||||
11 | 311 | 311 | 1 | 9150 | my ($self, $value) = @_; | ||
12 | 311 | 6651 | return sqrt $value; | ||||
13 | } | ||||||
14 | |||||||
15 | 1; | ||||||
16 | |||||||
17 | __END__ |