| lib/Spreadsheet/Engine/Function/LOG10.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::LOG10; | ||||||
| 2 | |||||||
| 3 | 28 | 28 | 161 | use strict; | |||
| 28 | 61 | ||||||
| 28 | 922 | ||||||
| 4 | 28 | 28 | 147 | use warnings; | |||
| 28 | 67 | ||||||
| 28 | 968 | ||||||
| 5 | |||||||
| 6 | 28 | 28 | 1179 | use base 'Spreadsheet::Engine::Fn::math'; | |||
| 28 | 71 | ||||||
| 28 | 4495 | ||||||
| 7 | |||||||
| 8 | 420 | 420 | 1 | 1399 | sub signature { '>0' } | ||
| 9 | |||||||
| 10 | sub calculate { | ||||||
| 11 | 129 | 129 | 1 | 3906 | my ($self, $value) = @_; | ||
| 12 | 129 | 3369 | return log($value) / log(10); | ||||
| 13 | } | ||||||
| 14 | |||||||
| 15 | 1; | ||||||
| 16 | |||||||
| 17 | __END__ |