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 10 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 10 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 10 ▶BEGIN { extends 'Catalyst::Controller'; };
Subroutine BEGIN: called CC=1 SCAR=0.0
7 10 with 'OpusVL::AppKit::RolesFor::Controller::GUI';
8  
9 10 __PACKAGE__->config(
10 appkit_name => 'Search',
11 );
12  
13 sub auto
14 : Action
15 : AppKitFeature('Search box')
16 {
17 0 ▶ my ($self, $c) = @_;
Subroutine auto: not called CC=1 SCAR=6.9
Pod undocumented
18
19 0 push @{$c->stash->{breadcrumbs}},{
20 name => 'Search',
21 url => $c->uri_for($c->controller->action_for('index')),
22 };
23 10 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25  
26 sub index :Path
27 : AppKitFeature('Search box')
28 {
29 0 ▶ my ($self, $c) = @_;
Subroutine index: not called CC=1 SCAR=6.9
Pod undocumented
30
31 0 $c->_appkit_stash_searches($c->req->param('q'));
32 0 $c->stash->{query} = $c->req->param('q');
33 10 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
34  
35 __END__
36  
37 =pod
38  
39 =encoding UTF-8
40  
41 =head1 NAME
42  
43 OpusVL::AppKit::Controller::Search
44  
45 =head1 VERSION
46  
47 version 2.22
48  
49 =head1 AUTHOR
50  
51 OpusVL - www.opusvl.com
52  
53 =head1 COPYRIGHT AND LICENSE
54  
55 This software is copyright (c) 2010 by OpusVL - www.opusvl.com.
56  
57 This is free software; you can redistribute it and/or modify it under
58 the same terms as the Perl 5 programming language system itself.
59  
60 =cut
« lib/OpusVL/AppKit/Controller/AppKit/User.pm ↑ Summary lib/OpusVL/AppKit/View/DownloadFile.pm »