Branch Coverage

blib/lib/DBIx/POS/Template.pm
Criterion Covered Total %
branch 43 74 58.1


line true false branch
40 0 1 if exists $CACHE{$file} and ref $CACHE{$file}
65 0 2 if (exists $CACHE{$file})
67 0 0 unless ref $CACHE{$file}
77 0 2 if $tt
82 2 0 if $arg{'template'} and %{$arg{'template'};}
104 0 3 if $file =~ s[::][/]g
106 0 3 unless -e $file
108 0 3 unless -e $file
116 0 3 unless $self->{$key}
130 3 20 if ($command eq 'desc')
135 5 18 if ($command eq 'name')
141 0 23 if ($command eq 'noreturn')
145 3 20 if ($command eq 'encoding')
156 5 3 if (%{$info;})
159 5 0 if (defined $info->{'name'} and defined $info->{'sql'}) { }
161 5 0 if ($enc)
165 1 4 $scope eq 'new' ? :
1 4 $scope eq 'new' ? :
187 0 1 if ($cmd eq 'desc') { }
1 0 elsif ($cmd eq 'param') { }
0 0 elsif ($cmd eq 'sql') { }
207 0 6 if ($cmd eq 'desc') { }
0 6 elsif ($cmd eq 'param') { }
6 0 elsif ($cmd eq 'sql') { }
245 0 0 if @_
251 0 1 if @_
257 0 0 if @_
263 1 6 unless defined $self->{'param'}
265 0 6 unless ref $self->{'param'} eq 'HASH'
266 1 5 unless @_
267 4 1 if @_ == 1
274 4 1 unless $self->{'param'}
276 0 1 if $@
283 0 0 if @_
289 0 6 if @_
309 7 0 %{$self->{'_template_default'};} ? :
7 16 %arg ? :