File Coverage

lib/Spreadsheet/Engine/Function/VLOOKUP.pm
Criterion Covered Total %
statement 14 14 100.0
branch 1 2 50.0
condition n/a
subroutine 4 4 100.0
pod n/a
total 19 20 95.0


line stmt bran cond sub pod time code
1             package Spreadsheet::Engine::Function::VLOOKUP;
2              
3 28     28   156 use strict;
  28         61  
  28         929  
4 28     28   143 use warnings;
  28         55  
  28         744  
5              
6 28     28   146 use base 'Spreadsheet::Engine::Function::HLOOKUP';
  28         69  
  28         7648  
7              
8             sub _crincs {
9 28     28   57 my $self = shift;
10 28         96 my ($rangesheetdata, $rangecol1num, $nrangecols, $rangerow1num, $nrangerows)
11             = $self->_range_data;
12 28         113 my $of = $self->_offset_op;
13 28 50       684 die Spreadsheet::Engine::Error->ref if $of->value > $nrangerows;
14 28         225 return (0, 0, 0, 1);
15             }
16              
17             1;
18              
19             __END__