Branch Coverage

blib/lib/Hailo/Engine/Scored.pm
Criterion Covered Total %
branch 0 52 0.0


line true false branch
32 0 0 if (keys %$token_cache)
35 0 0 $token_cache->{$_}[0] == 0 ? :
45 0 0 unless (defined $args{'iterations'} or defined $args{'interval'})
50 0 0 if (defined $args{'iterations'}) { }
52 0 0 if $iterations == $args{'iterations'}
58 0 0 if $elapsed >= $args{'interval'}
66 0 0 unless defined $reply
70 0 0 if (defined $best_reply and $self->_too_similar(\@input_token_ids, $reply))
71 0 0 if &$done()
75 0 0 if (not defined $best_score or $score > $best_score)
80 0 0 if &$done()
96 0 0 unless @$token_counts
97 0 0 if @$token_counts == 1
121 0 0 if (@$token_probs) { }
127 0 0 unless defined $pivot_expr_id
147 0 0 if (&any(sub { $_ == $next_token_id; } , @$input_token_ids))
151 0 0 unless (defined $cache->{$key})
154 0 0 if ($cache->{$key} > 0)
163 0 0 if (&any(sub { $_ == $prev_token_id; } , @$input_token_ids))
167 0 0 unless (defined $cache->{$key})
170 0 0 if ($cache->{$key} > 0)
179 0 0 if (@$reply_token_ids >= 8) { }
0 0 elsif (@$reply_token_ids >= 16) { }
197 0 0 unless $expr2token
211 0 0 if $p > $random
223 0 0 unless $input_token_ids{$reply_token_id}