| lib/Spreadsheet/Engine/Function/COS.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::COS; | ||||||
| 2 | |||||||
| 3 | 28 | 28 | 149 | use strict; | |||
| 28 | 64 | ||||||
| 28 | 915 | ||||||
| 4 | 28 | 28 | 136 | use warnings; | |||
| 28 | 54 | ||||||
| 28 | 836 | ||||||
| 5 | |||||||
| 6 | 28 | 28 | 188 | use base 'Spreadsheet::Engine::Fn::math'; | |||
| 28 | 58 | ||||||
| 28 | 3346 | ||||||
| 7 | |||||||
| 8 | sub calculate { | ||||||
| 9 | 253 | 253 | 1 | 7894 | my ($self, $value) = @_; | ||
| 10 | 253 | 6680 | return cos $value; | ||||
| 11 | } | ||||||
| 12 | |||||||
| 13 | 1; | ||||||
| 14 | |||||||
| 15 | __END__ |