lib/Spreadsheet/Engine/Function/PRODUCT.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 13 | 13 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 6 | 6 | 100.0 |
pod | 2 | 2 | 100.0 |
total | 21 | 21 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Spreadsheet::Engine::Function::PRODUCT; | ||||||
2 | |||||||
3 | 28 | 28 | 154 | use strict; | |||
28 | 64 | ||||||
28 | 1086 | ||||||
4 | 28 | 28 | 149 | use warnings; | |||
28 | 59 | ||||||
28 | 742 | ||||||
5 | |||||||
6 | 28 | 28 | 242 | use base 'Spreadsheet::Engine::Fn::series'; | |||
28 | 56 | ||||||
28 | 5492 | ||||||
7 | |||||||
8 | sub calculate { | ||||||
9 | return sub { | ||||||
10 | 272 | 272 | 459 | my ($in, $total) = @_; | |||
11 | 272 | 5469 | return $total * $in->value; | ||||
12 | 102 | 102 | 1 | 754 | }; | ||
13 | } | ||||||
14 | |||||||
15 | 102 | 102 | 1 | 239 | sub accumulator { 1 } | ||
16 | |||||||
17 | 1; | ||||||
18 | |||||||
19 | __END__ |