Branch Coverage

blib/lib/DBIx/OpenTracing.pm
Criterion Covered Total %
branch 55 60 91.6


line true false branch
43 12 4 &looks_like_number($_[0]) ? :
53 6 23 if $is_enabled or $is_suspended
118 4 16 unless $is_enabled
140 4 3 unless defined $tag_mode
149 1 2 if ($tag_mode eq '-none') { }
1 1 elsif ($tag_mode eq '-safe') { }
1 0 elsif ($tag_mode eq '-secure') { }
168 10 195 unless &blessed($dbh) and $dbh->isa('DBI::db')
171 0 195 if $dbname =~ /dbname=([^;]+);/
182 185 10 if (not &blessed($sth) && $sth->isa('DBI::st')) { }
193 175 20 if (my $summary = _gen_sql_summary($sql))
227 20 175 unless $type
230 131 44 if ($sql =~ /(?:from|into|update|truncate|drop|alter|table)\s+(`?)(\w+)\1/i)
238 145 50 unless @$bind_ref
240 94 0 defined $_ ? :
272 6 20 unless @tags
280 6 25 unless @tags
322 2 135 unless _tag_enabled($tag)
334 143 32 if defined $row_counter
340 129 195 if $is_currently_traced
362 26 169 if ($wantarray) { }
372 20 175 if ($failed or defined $handle->err) { }
137 38 elsif (&$can_count_rows($handle)) { }
376 18 119 $wantarray ? :
381 10 185 if $failed
382 26 159 $wantarray ? :
387 2 6 if $is_enabled
394 4 4 unless $is_enabled
401 0 2 if $is_suspended
406 2 0 if $was_enabled