File Coverage

blib/lib/Gruntmaster/App.pm
Criterion Covered Total %
statement 11 14 78.5
branch n/a
condition n/a
subroutine 4 7 57.1
pod n/a
total 15 21 71.4


line stmt bran cond sub pod time code
1             package Gruntmaster::App;
2              
3 1     1   19006 use 5.014000;
  1         4  
4 1     1   4 use warnings;
  1         1  
  1         40  
5              
6             our $VERSION = '5999.000_014';
7              
8 1     1   728 use App::Cmd::Setup '-app';
  1         76414  
  1         7  
9 1     1   974 use Gruntmaster::Data;
  1         4  
  1         233  
10              
11             sub allow_any_unambiguous_abbrev () { 1 }
12 0     0     sub default_command { 'commands' } # Show usage when called without arguments
13              
14             sub global_opt_spec {
15 0     0     (['table' => 'hidden', {one_of => [
16             ['contests|ct|c' => 'Act on contests'],
17             ['jobs|j' => 'Act on jobs'],
18             ['problems|pb|p' => 'Act on problems'],
19             ['users|us|u' => 'Act on users']]}])
20             }
21              
22 0     0     sub table { shift->global_options->{table} }
23              
24             dbinit $ENV{GRUNTMASTER_DSN} // 'dbi:Pg:';
25              
26             1;
27             __END__