Branch Coverage

lib/Kephra/App/SearchBar.pm
Criterion Covered Total %
branch 0 92 0.0


line true false branch
16 0 0 unless ($bar_def)
27 0 0 if ($$item_data{'type'} eq 'combobox' and $$item_data{'id'} eq 'find') { }
0 0 elsif ($$item_data{'type'} eq 'combobox' and $$item_data{'id'} eq 'replace') { }
35 0 0 if $$item_data{'size'}
36 0 0 if (_search_config()->{'history'}{'use'})
44 0 0 if ($new ne $old)
46 0 0 if _search_config()->{'attribute'}{'incremental'} and Wx::Window::FindFocus() eq $find_input
56 0 0 if ($key == &Wx::WXK_RETURN) { }
0 0 elsif ($key == &Wx::WXK_F3) { }
0 0 elsif ($key == &Wx::WXK_ESCAPE) { }
0 0 elsif ($key == 65 and $event->ControlDown) { }
0 0 elsif ($key == 70 and $event->ControlDown) { }
0 0 elsif ($key == 71) { }
0 0 elsif ($key == 81) { }
0 0 elsif ($key == &Wx::WXK_UP) { }
0 0 elsif ($key == &Wx::WXK_DOWN) { }
0 0 elsif ($key == &Wx::WXK_PAGEUP) { }
0 0 elsif ($key == &Wx::WXK_PAGEDOWN) { }
0 0 elsif ($key == &Wx::WXK_HOME and $event->ControlDown) { }
0 0 elsif ($key == &Wx::WXK_END and $event->ControlDown) { }
0 0 elsif ($key == &Wx::WXK_BACK and $event->ControlDown and $event->ShiftDown) { }
57 0 0 if ($event->ControlDown and $event->ShiftDown) { }
0 0 elsif ($event->ControlDown) { }
0 0 elsif ($event->ShiftDown) { }
63 0 0 $event->ShiftDown ? :
74 0 0 if ($event->ControlDown and $event->ShiftDown)
79 0 0 if $event->ControlDown
83 0 0 if ($event->ControlDown)
87 0 0 if ($event->ControlDown)
91 0 0 if ($event->ControlDown) { }
101 0 0 if ($event->ControlDown) { }
126 0 0 if _config()->{'autofocus'}
142 0 0 if $$item_data{'size'}
143 0 0 if (_search_config()->{'history'}{'use'})
148 0 0 if (ref $ctrl)
156 0 0 if ($ep->GetSelectedText) { }
164 0 0 unless get_contextmenu_visibility()
168 0 0 if Kephra::Menu::is($menu)
184 0 0 if $value eq $find_input->GetValue
201 0 0 Kephra::Edit::Search::_find_pos() > -1 ? :
203 0 0 if $highlight_search eq $found_something
205 0 0 if ($found_something) { }
217 0 0 unless get_visibility()
218 0 0 if defined $$bar{'find_input'}
220 0 0 if _config()->{'autohide'}
233 0 0 unless $bar