blib/lib/Asterisk/LCR/Storage.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 32 CC 2 SCAR 12.8
CC
2
Cov
0%
search_rates
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.6
1 package Asterisk::LCR::Storage;
2 use base qw /Asterisk::LCR::Object/;
3 use warnings;
4 use strict;
5  
6 sub search_rates
7 {
8 my $self = shift;
9 my $prefix = shift;
10 my $limit = shift;
11  
12 defined $prefix or return;
13 $prefix ne '' or return;
14  
15 my @res = $self->list ($prefix, $limit);
16 return @res if (@res);
17  
18 chop ($prefix);
19 return $self->search_rates ($prefix, $limit);
20 }
21  
22  
23 1;
24  
25  
26 __END__