File Coverage

blib/lib/App/Standup/Role/Project.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 0 2 0.0
total 17 19 89.4


line stmt bran cond sub pod time code
1             package App::Standup::Role::Project;
2 2     2   21 use Object::Pad;
  2         5  
  2         22  
3 2     2   359 use Path::Tiny;
  2         25  
  2         165  
4 2     2   1416 use Time::Seconds;
  2         5570  
  2         743  
5              
6             role Project {
7              
8 9     9 0 494 field $project_name :param :reader;
  9     9 0 95  
        9      
9              
10             # Unreleased, see #1
11             method get_todo_tasks_from_yesterday {
12              
13             # Slurp the yesterday's template file
14             my $yesterday = $self->date - Time::Seconds::ONE_DAY;
15             my $formated_date = $self->build_path($yesterday->ymd('/'));
16             #::p $yesterday;
17             #::p $formated_date;
18             # Keep all line between - todo and - blocking
19              
20             }
21              
22             # Unreleased see #1
23             method get_yesterday_file_path {}
24              
25             }
26              
27              
28             =head1 NAME
29              
30             App::Standup::Role::Project - Project management for Standup::Diary
31              
32             =head1 SYNOPSIS
33              
34             class App::Standup::Diary :does( Project ) { ... }
35              
36             =head1 DESCRIPTION
37              
38             It provides an L role with an only C.
39              
40             Any class implementing C have a C<$self->project_name> instance
41             field.
42              
43             =cut