Branch Coverage

lib/File/FormatIdentification/RandomSampling.pm
Criterion Covered Total %
branch 25 28 89.2


line true false branch
41 7 1 if (defined $buffer)
46 7 0 if (scalar @bytes > 0)
90 285 995 if ($unigram[$byte] > 0)
95 2 3 if ($n == 0)
111 314 1478 if ($unigram[$byte] > 0)
116 2 5 if ($n == 0)
135 313 1223 if ($unigram[$byte] > 0)
136 196 117 if ($byte >= 32 and $byte <= 173) { }
162 257 767 if ($unigram[$byte] > 0)
163 256 1 if ($byte != 109) { }
184 1 2 if ($self->is_empty) { }
1 1 elsif ($self->is_text) { }
0 1 elsif ($self->is_video) { }
0 1 elsif ($self->is_uniform) { }