Branch Coverage

blib/lib/Telegram/BotKit/Screens.pm
Criterion Covered Total %
branch 15 24 62.5


line true false branch
27 12 30 if ($_->{'name'} eq $screen_name)
38 2 3 if (scalar @candidates_to_return == 1) { }
0 3 elsif (scalar @candidates_to_return > 1) { }
42 0 0 if ($text) { }
44 0 0 if ($_->{'callback_msg'} eq $text)
49 0 0 if ($candidates_to_return[0]{'callback_msg'}) { }
66 8 4 if ($_->{'name'} eq $screen_name)
93 2 0 if ($s->{'start_command'} eq $cmd)
103 1 1 if (defined $self->get_next_screen_by_name($screen_name))
113 1 1 if (defined $self->get_prev_screen_by_name($screen_name))
122 1 1 if ($screen->{'keyboard'}) { }
157 1 0 if ($msg eq $_->{'key'})