RedisTop/Component/Save.pm

filter: Statementstmt 100% 8 / 8 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 85.7% 12 / 14 CC 2 SCAR 4.3
CC
2
Cov
90%
__ANON__
2.1
new
1.0
BEGIN
1.0
CRAP 1.5
« RedisTop/Perform.pm ↑ Summary RedisTop/Component/Time.pm »
1 package App::RedisTop::Component::Save;
2 2 ▶use base 'App::RedisTop::Component';
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
4 1 my $class = shift;
5  
6 my $self = bless {
7 group => 'save',
8 items => [
9 {
10 name => 'changes',
11 1 ▶ stat_key => sub {
Subroutine __ANON__: called CC=2 SCAR=7.2
12 1 my $redis_version = shift;
13 1 ▶ return $redis_version =~ /^2\.4/
Branch: 1 branch
BranchTrueFalseTotal
$redis_version =~ /^2\.4/ ? : 1 0 1
14 ? 'changes_since_last_save'
15 : 'rdb_changes_since_last_save';
16 },
17 },
18 1 ],
19 width => 7,
20 unit => 1,
21 total => 1,
22 @_,
23 }, $class;
24 }
25  
26 2 1;
« RedisTop/Perform.pm ↑ Summary RedisTop/Component/Time.pm »