| lib/Spreadsheet/Engine/Function/SIN.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 11 | 11 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 4 | 4 | 100.0 |
| pod | 1 | 1 | 100.0 |
| total | 16 | 16 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Spreadsheet::Engine::Function::SIN; | ||||||
| 2 | |||||||
| 3 | 28 | 28 | 158 | use strict; | |||
| 28 | 78 | ||||||
| 28 | 1108 | ||||||
| 4 | 28 | 28 | 149 | use warnings; | |||
| 28 | 53 | ||||||
| 28 | 760 | ||||||
| 5 | |||||||
| 6 | 28 | 28 | 154 | use base 'Spreadsheet::Engine::Fn::math'; | |||
| 28 | 397 | ||||||
| 28 | 4173 | ||||||
| 7 | |||||||
| 8 | sub calculate { | ||||||
| 9 | 49 | 49 | 1 | 1523 | my ($self, $value) = @_; | ||
| 10 | 49 | 1141 | return sin $value; | ||||
| 11 | } | ||||||
| 12 | |||||||
| 13 | 1; | ||||||
| 14 | |||||||
| 15 | __END__ |