File Coverage

blib/lib/File/Stubb.pm
Criterion Covered Total %
statement 101 146 69.1
branch 16 44 36.3
condition 10 36 27.7
subroutine 24 28 85.7
pod 2 4 50.0
total 153 258 59.3


line stmt bran cond sub pod time code
1             package File::Stubb;
2 2     2   510503 use 5.016;
  2         10  
3             our $VERSION = '0.04';
4 2     2   13 use strict;
  2         9  
  2         74  
5 2     2   16 use warnings;
  2         4  
  2         147  
6              
7 2     2   26 use File::Basename;
  2         4  
  2         210  
8 2     2   1662 use Getopt::Long;
  2         33768  
  2         13  
9              
10 2     2   1612 use File::Stubb::Home;
  2         6  
  2         146  
11 2     2   1118 use File::Stubb::Render;
  2         9  
  2         163  
12              
13             use constant {
14 2         5465 MODE_DEFAULT => 0,
15             MODE_BATCH => 1,
16             MODE_LIST => 2,
17 2     2   19 };
  2         4  
18              
19             $0 =~ s!^.*[/\\]!!;
20              
21             my $PRGNAM = 'stubb';
22             my $PRGVER = $VERSION;
23              
24             my $HELP = <<"HERE";
25             $PRGNAM - $PRGVER
26             Usage:
27             $0 [options] file template
28             $0 [options] file.template
29             $0 [options] -t template file ...
30             $0 [options] -l template
31              
32             Options:
33             -d|--template-dir= Specify template directory
34             -t|--template=