Branch Coverage

blib/lib/Class/DBI/Plugin/AbstractCount.pm
Criterion Covered Total %
branch 19 24 79.1


line true false branch
25 9 1 if (ref $_[0]) { }
26 0 9 unless ref $_[0] eq 'HASH'
32 0 1 if @_ % 2
37 0 10 unless $class->can('retrieve_from_sql')
48 8 12 if exists $columns{$column}
51 5 7 if exists $accessors{$column}
56 1 6 if $column =~ /^-(?:and|or|nest|(?:(not_)?(?:like|between)))$/
59 6 0 if (index($column, '(') > 0 and index($column, ')') > 1)
64 8 22 unless ($token =~ /\W/)
65 5 3 if exists $columns{$token}
66 3 0 if exists $accessors{$token}
74 3 3 if $normalized ne $column