blib/lib/Druid/Interval.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
build
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Druid::Interval;
2  
3 use Moo;
4 use Druid::Util qw(yyyy_mm_dd_hh_mm_ss_iso8601);
5  
6 has start => (is => 'ro');
7 has end => (is => 'ro');
8  
9 sub build {
10 my $self = shift;
11  
12 return sprintf(
13 "%s/%s",
14 yyyy_mm_dd_hh_mm_ss_iso8601($self->start),
15 yyyy_mm_dd_hh_mm_ss_iso8601($self->end)
16 );
17 }
18  
19 1;