timestamp.pm

filter: Statementstmt 76.1% 16 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 1 totaltotal 71.4% 20 / 28 CC 1 SCAR 2.9
CC
1
Cov
76%
emit
2.0
__ANON__
2.0
BEGIN
1.0
CRAP 1.3
« end_week.pm ↑ Summary start_day.pm »
1 package Catmandu::Fix::timestamp;
2 2 ▶use Catmandu::Sane;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use Time::HiRes;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use Catmandu::Fix::Has;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 our $VERSION = "0.0132";
8  
9 2 with 'Catmandu::Fix::Base';
10  
11 2 has path => ( fix_arg => 1 );
12  
13 0 ▶sub emit {
Subroutine emit: not called CC=1 SCAR=6.9
Pod undocumented
14  
15 0 my($self,$fixer) = @_;
16  
17 0 my $path = $fixer->split_path($self->path);
18  
19 0 ▶ $fixer->emit_create_path($fixer->var,$path,sub{
Subroutine __ANON__: not called CC=1 SCAR=6.9
20  
21 0 my $var = shift;
22 0 "${var} = Time::HiRes::time;";
23  
24 0 });
25  
26 }
27  
28 2 1;
29 __END__
« end_week.pm ↑ Summary start_day.pm »