File Coverage

blib/lib/DBR/ResultSet/Empty.pm
Criterion Covered Total %
statement 12 24 50.0
branch 0 6 0.0
condition n/a
subroutine 4 16 25.0
pod 0 12 0.0
total 16 58 27.5


line stmt bran cond sub pod time code
1             package DBR::ResultSet::Empty;
2              
3 18     18   106 use strict;
  18         37  
  18         1803  
4             #use base 'DBR::Common';
5 18     18   8646 use DBR::Misc::Dummy;
  18         52  
  18         442  
6 18     18   113 use Carp;
  18         39  
  18         1304  
7             use constant ({
8 18         5468 DUMMY => bless([],'DBR::Misc::Dummy')
9 18     18   109 });
  18         40  
10 0     0 0   sub new { bless( [], shift ) } # minimal reference
11              
12 0     0 0   sub delete {croak "Mass delete is not allowed. No cookie for you!"}
13 0     0 0   sub each { 1 }
14 0     0 0   sub split { {} }
15 0 0   0 0   sub values { wantarray?():[]; }
16              
17 0     0 0   sub dummy_record{ DUMMY }
18 0 0   0 0   sub hashmap_multi { wantarray?():{} }
19 0 0   0 0   sub hashmap_single{ wantarray?():{} }
20              
21 0     0 0   sub next { DUMMY }
22 0     0 0   sub where { DUMMY }
23 0     0 0   sub count { 0 }
24              
25 0     0 0   sub TO_JSON { [] }
26              
27             1;