Branch Coverage

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


line true false branch
40 8 4 &looks_like_number($_[0]) ? :
50 6 23 if $is_enabled or $is_suspended
115 4 16 unless $is_enabled
137 4 3 unless defined $tag_mode
146 1 2 if ($tag_mode eq '-none') { }
1 1 elsif ($tag_mode eq '-safe') { }
1 0 elsif ($tag_mode eq '-secure') { }
165 10 177 unless &blessed($dbh) and $dbh->isa('DBI::db')
168 0 177 if $dbname =~ /dbname=([^;]+);/
179 167 10 if (not &blessed($sth) && $sth->isa('DBI::st')) { }
190 157 20 if (my $summary = _gen_sql_summary($sql))
224 20 157 unless $type
227 113 44 if ($sql =~ /(?:from|into|update|truncate|drop|alter|table)\s+(`?)(\w+)\1/i)
235 127 50 unless @$bind_ref
237 94 0 defined $_ ? :
269 6 20 unless @tags
277 6 25 unless @tags
319 2 117 unless _tag_enabled($tag)
331 125 32 if defined $row_counter
337 111 177 if $is_currently_traced
359 20 157 if ($wantarray) { }
369 20 157 if ($failed or defined $handle->err) { }
119 38 elsif (&$can_count_rows($handle)) { }
373 12 107 $wantarray ? :
378 10 167 if $failed
379 20 147 $wantarray ? :
384 2 6 if $is_enabled
391 4 4 unless $is_enabled
398 0 2 if $is_suspended
403 2 0 if $was_enabled