Branch Coverage

blib/lib/DBIx/POS/Template.pm
Criterion Covered Total %
branch 40 66 60.6


line true false branch
69 0 2 if $tt
74 2 0 if $arg{'template'} and %{$arg{'template'};}
82 0 3 unless $file
83 0 3 if $file =~ s[::][/]g
93 0 3 unless $self->{$key}
107 3 20 if ($command eq 'desc')
112 5 18 if ($command eq 'name')
118 0 23 if ($command eq 'noreturn')
122 3 20 if ($command eq 'encoding')
133 5 3 if (%{$info;})
136 5 0 if (defined $info->{'name'} and defined $info->{'sql'}) { }
138 1 4 $scope eq 'new' ? :
1 4 $scope eq 'new' ? :
160 0 1 if ($cmd eq 'desc') { }
1 0 elsif ($cmd eq 'param') { }
0 0 elsif ($cmd eq 'sql') { }
180 0 6 if ($cmd eq 'desc') { }
0 6 elsif ($cmd eq 'param') { }
6 0 elsif ($cmd eq 'sql') { }
212 5 0 if (my $enc = $self->{'_enc'})
222 0 0 if @_
228 0 1 if @_
234 0 0 if @_
240 1 6 unless defined $self->{'param'}
242 0 6 unless ref $self->{'param'} eq 'HASH'
243 1 5 unless @_
244 4 1 if @_ == 1
251 4 1 unless $self->{'param'}
253 0 1 if $@
260 0 0 if @_
266 0 6 if @_
281 16 7 unless %arg
283 0 7 unless %{$self->{'_template_default'};}