File Coverage

lib/Spreadsheet/Engine/Function/REPT.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::REPT;
2              
3 28     28   146 use strict;
  28         63  
  28         1299  
4 28     28   359 use warnings;
  28         54  
  28         742  
5              
6 28     28   216 use base 'Spreadsheet::Engine::Fn::text';
  28         56  
  28         4046  
7              
8 234     234 1 993 sub signature { 't', '>=0' }
9              
10             sub calculate {
11 96     96 1 4865 my ($self, $string, $times) = @_;
12 96         631 return $string x $times;
13             }
14              
15             1;
16              
17             __END__