Branch Coverage

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


line true false branch
40 12 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 195 unless &blessed($dbh) and $dbh->isa('DBI::db')
168 0 195 if $dbname =~ /dbname=([^;]+);/
179 185 10 if (not &blessed($sth) && $sth->isa('DBI::st')) { }
190 175 20 if (my $summary = _gen_sql_summary($sql))
224 20 175 unless $type
227 131 44 if ($sql =~ /(?:from|into|update|truncate|drop|alter|table)\s+(`?)(\w+)\1/i)
235 145 50 unless @$bind_ref
237 94 0 defined $_ ? :
269 6 20 unless @tags
277 6 25 unless @tags
319 2 135 unless _tag_enabled($tag)
331 143 32 if defined $row_counter
337 129 195 if $is_currently_traced
359 26 169 if ($wantarray) { }
369 20 175 if ($failed or defined $handle->err) { }
137 38 elsif (&$can_count_rows($handle)) { }
373 18 119 $wantarray ? :
378 10 185 if $failed
379 26 159 $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