lib/Spreadsheet/Engine/Function/LN.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::LN; | ||||||
2 | |||||||
3 | 28 | 28 | 148 | use strict; | |||
28 | 57 | ||||||
28 | 886 | ||||||
4 | 28 | 28 | 149 | use warnings; | |||
28 | 53 | ||||||
28 | 745 | ||||||
5 | |||||||
6 | 28 | 28 | 139 | use base 'Spreadsheet::Engine::Fn::math'; | |||
28 | 64 | ||||||
28 | 3972 | ||||||
7 | |||||||
8 | 768 | 768 | 1 | 2554 | sub signature { '>0' } | ||
9 | |||||||
10 | sub calculate { | ||||||
11 | 281 | 281 | 1 | 8527 | my ($self, $value) = @_; | ||
12 | 281 | 6992 | return log $value; | ||||
13 | } | ||||||
14 | |||||||
15 | 1; | ||||||
16 | |||||||
17 | __END__ |