RedisTop/Component/Time.pm

filter: Statementstmt 70.0% 7 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 0.0% 0 / 1 totaltotal 60.0% 9 / 15 CC 1 SCAR 4.1
CC
1
Cov
70%
new
2.0
__ANON__
2.0
BEGIN
1.0
CRAP 1.5
« RedisTop/Component/Save.pm ↑ Summary RedisTop/Component/DB.pm »
1 package App::RedisTop::Component::Time;
2 1 ▶use base 'App::RedisTop::Component';
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use POSIX qw(strftime);
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
6 0 my $class = shift;
7 my $self = bless {
8 group => 'date/time',
9 items => [
10 0 ▶ { name => 'time', data => sub { strftime("%m/%d %H:%M:%S", localtime()) }, },
Subroutine __ANON__: not called CC=1 SCAR=6.9
11 0 ],
12 width => 15,
13 @_,
14 }, $class;
15 }
16  
17 1 1;
« RedisTop/Component/Save.pm ↑ Summary RedisTop/Component/DB.pm »