blib/conf/plugins/TestFinder.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 35 CC 2 SCAR 11.0
CC
2
Cov
0%
auto_find
6.0
name
2.0
type
2.0
CRAP 3.0
1 package Bio::Graphics::Browser2::Plugin::TestFinder;
2  
3 use strict;
4 use warnings;
5 use base 'Bio::Graphics::Browser2::Plugin';
6  
7 sub name { 'Features by type'}
8  
9 sub type { 'finder' }
10  
11 # return all objects of type given in the search field
12 sub find {
13 my $self = shift;
14 my $query = $self->page_settings->{name} or return;
15 return $self->auto_find($query);
16 }
17  
18 sub auto_find {
19 my $self = shift;
20 my $query = shift;
21 my $search = $self->db_search;
22 my $features = $search->search_features({-type=>$query});
23 return @$features ? $features : undef;
24 }
25  
26 1;