lib/OpusVL/AppKit/Controller/Search.pm

filter: Statementstmt 71.4% 15 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 0.0% 0 / 2 totaltotal 66.6% 20 / 30 CC 1 SCAR 2.5
CC
1
Cov
71%
auto
2.0
index
2.0
BEGIN
1.0
CRAP 1.3
« lib/OpusVL/AppKit/Controller/AppKit/User.pm ↑ Summary lib/OpusVL/AppKit/View/DownloadFile.pm »
1 package OpusVL::AppKit::Controller::Search;
2  
3 8 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 8 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 8 ▶BEGIN { extends 'Catalyst::Controller'; };
Subroutine BEGIN: called CC=1 SCAR=0.0
7 8 with 'OpusVL::AppKit::RolesFor::Controller::GUI';
8  
9 8 __PACKAGE__->config(
10 appkit_name => 'Search',
11 );
12  
13 sub auto
14 0 ▶ : Action
Subroutine auto: not called CC=1 SCAR=6.9
Pod undocumented
15 : AppKitFeature('Search box')
16 {
17 0 my ($self, $c) = @_;
18
19 0 push @{$c->stash->{breadcrumbs}},{
20 name => 'Search',
21 url => $c->uri_for($c->controller->action_for('index')),
22 };
23 8 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25  
26 0 ▶sub index :Path
Subroutine index: not called CC=1 SCAR=6.9
Pod undocumented
27 : AppKitFeature('Search box')
28 {
29 0 my ($self, $c) = @_;
30
31 0 $c->_appkit_stash_searches($c->req->param('q'));
32 0 $c->stash->{query} = $c->req->param('q');
33 8 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
34  
35 __END__
« lib/OpusVL/AppKit/Controller/AppKit/User.pm ↑ Summary lib/OpusVL/AppKit/View/DownloadFile.pm »