StandupGenerator.pm

filter: Statementstmt 91.3% 21 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod 100% 4 / 4 totaltotal 91.4% 32 / 35 CC 1 SCAR 1.2
CC
1
Cov
91%
set_aliases
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« StandupGenerator/Helper.pm ↑ Summary
1 package StandupGenerator;
2  
3 3 ▶use base 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use StandupGenerator::Creator;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use StandupGenerator::Accessor;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use StandupGenerator::Manipulator;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 our $VERSION = '0.5';
9 3 our @EXPORT = qw(
10 create_standup
11 open_standup
12 view_standups_from_week
13 set_aliases
14 );
15  
16 # Creates a new standup file when given a directory, with identifiers that increment off of the directory's last file and contents pulled from yesterday's standup file
17 2 ▶sub create_standup {
Subroutine create_standup: called CC=1 SCAR=0.0
Pod documented
18 2 my ($path) = @_;
19 2 StandupGenerator::Creator::create_new($path);
20 }
21  
22 # Opens an existing standup file when given a directory, a sprint number, and a two-digit string for the day
23 2 ▶sub open_standup {
Subroutine open_standup: called CC=1 SCAR=0.0
Pod documented
24 2 my ($path, $sprint, $day) = @_;
25 2 StandupGenerator::Accessor::open_one($path, $sprint, $day);
26 }
27  
28 # Opens all standup files in a directory from the past week, along with the coming Monday's standup file, if they exist
29 2 ▶sub view_standups_from_week {
Subroutine view_standups_from_week: called CC=1 SCAR=0.0
Pod documented
30 2 my ($path) = @_;
31 2 StandupGenerator::Accessor::open_many($path);
32 }
33  
34 # Append some functions to the user's configuration file to make it easier for the user to execute key methods from this package via the CLI, with all functions automatically referencing the correct directory
35 0 ▶sub set_aliases {
Subroutine set_aliases: not called CC=1 SCAR=6.9
Pod documented
36 0 my ($path) = @_;
37 0 StandupGenerator::Manipulator::save_script_shortcuts($path);
38 }
39  
40 3 1;
41  
42 __END__
« StandupGenerator/Helper.pm ↑ Summary