blib/lib/Mojolicious/Plugin/Fondation/User/UI/Bootstrap.pm

filter: Statementstmt 62.5% 5 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 1 / 3 Podpod 50.0% 1 / 2 totaltotal 53.8% 7 / 13 CC 1 SCAR 5.1
CC
1
Cov
62%
fondation_meta
2.0
register
2.0
BEGIN
1.0
CRAP 1.7
↑ Summary
1 package Mojolicious::Plugin::Fondation::User::UI::Bootstrap;
2 1 $Mojolicious::Plugin::Fondation::User::UI::Bootstrap::VERSION = '0.03';
3 1 ▶use Mojo::Base 'Mojolicious::Plugin', -signatures;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # ABSTRACT: Web UI for Fondation::User — templates, assets, and i18n
6  
7  
8 0 ▶sub fondation_meta {
Subroutine fondation_meta: not called CC=1 SCAR=6.9
Pod undocumented
9 return {
10 0 dependencies => ['Fondation::User', 'Fondation::Layout::Bootstrap', 'Fondation::OpenAPI'],
11 defaults => {
12 title => 'User Management',
13 },
14 };
15 }
16  
17 0 ▶sub register ($self, $app, $conf) {
Subroutine register: not called CC=1 SCAR=6.9
Pod documented
18  
19 0 $app->routes->get('/users')
20 ->requires('fondation.perm' => 'user_list')
21 ->to(
22 controller => 'User',
23 action => 'index'
24 );
25  
26 0 return $self;
27 }
28  
29 1 1;
30  
31 __END__
↑ Summary