Branch Coverage

blib/lib/DBIx/QuickORM/Connection/Transaction.pm
Criterion Covered Total %
branch 46 64 71.8


line true false branch
32 0 0 $_[0]{'savepoint'} ? :
37 0 27 unless $self->{'id'}
41 3 24 if "CODE" eq ref $self->{'on_success'}
42 3 24 if "CODE" eq ref $self->{'on_fail'}
43 3 24 if "CODE" eq ref $self->{'on_completion'}
50 0 0 if $self->{'committed'}
51 0 0 if $self->{'rolled_back'}
52 0 0 if $self->{'result'}
64 6 0 if ($self->{'verbose'} or not $why)
68 2 4 if (my $verbose = $self->{'verbose'})
69 2 0 length $verbose > 1 ? :
70 1 1 $why ? :
73 1 5 if ($why) { }
74 1 0 unless $why =~ /\n$/
83 1 5 if $self->{'finalize'}
85 1 5 if $self->{'no_last'}
95 3 0 if ($self->{'verbose'} or not $why)
99 2 1 if (my $verbose = $self->{'verbose'})
100 2 0 length $verbose > 1 ? :
101 1 1 $why ? :
104 1 2 if ($why) { }
105 1 0 unless $why =~ /\n$/
114 1 2 if $self->{'finalize'}
116 1 2 if $self->{'no_last'}
126 18 9 $res ? :
127 18 9 $res ? :
129 18 9 $res ? :
137 23 4 unless $todo and @$todo
142 8 0 if eval {
174 0 3 if $self->{'in_destroy'}
189 0 2 unless my $cb = delete $self->{'finalize'}
197 26 1 unless my $finalize = $self->{'finalize'}