Branch Coverage

blib/lib/DBIx/Fast/Transaction.pm
Criterion Covered Total %
branch 30 56 53.5


line true false branch
15 0 0 if @_
16 0 0 if @_
17 0 0 if @_
27 0 0 if @_
28 0 8 unless ref $code eq "CODE"
42 6 2 if $level == 0
48 4 1 if $level == 1
54 3 5 if (my $error = $@)
55 0 3 if ($error =~ /deadlock/iu)
57 0 0 if ($retries < $max_retries)
65 2 1 if ($level == 1)
69 3 0 if $level > 0
72 2 1 if ($level == 0)
89 0 6 if ($@)
100 0 4 if ($@)
112 0 2 if ($@)
120 0 3 unless $name
123 0 3 unless $name =~ /^[a-zA-Z_][a-zA-Z0-9_]*$/u
126 0 3 unless $level > 0
136 0 3 if ($@)
147 0 2 unless $name
150 0 2 unless $name =~ /^[a-zA-Z_][a-zA-Z0-9_]*$/u
154 0 2 unless (exists $savepoints->{$name})
164 0 2 if ($@)
172 0 3 if ($savepoints->{$sp}{'level'} > $current_level)
183 5 3 if ($success) { }
192 6 2 if $duration > $stats->{'max_duration'}
196 0 8 if ($duration > 5)