| lib/Spreadsheet/Engine/Function/ISERR.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 12 | 12 | 100.0 |
| branch | n/a | ||
| condition | 3 | 3 | 100.0 |
| subroutine | 4 | 4 | 100.0 |
| pod | 1 | 1 | 100.0 |
| total | 20 | 20 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Spreadsheet::Engine::Function::ISERR; | ||||||
| 2 | |||||||
| 3 | 28 | 28 | 197 | use strict; | |||
| 28 | 56 | ||||||
| 28 | 881 | ||||||
| 4 | 28 | 28 | 142 | use warnings; | |||
| 28 | 58 | ||||||
| 28 | 745 | ||||||
| 5 | |||||||
| 6 | 28 | 28 | 139 | use base 'Spreadsheet::Engine::Fn::logical'; | |||
| 28 | 52 | ||||||
| 28 | 4406 | ||||||
| 7 | |||||||
| 8 | sub calculate { | ||||||
| 9 | 182 | 182 | 1 | 286 | my $self = shift; | ||
| 10 | 182 | 582 | my $op = $self->next_operand; | ||||
| 11 | 182 | 100 | 4070 | return $op->is_error && !$op->is_na; | |||
| 12 | } | ||||||
| 13 | |||||||
| 14 | 1; | ||||||
| 15 | |||||||
| 16 | __END__ |