KDBX/Tie/Group.pm

filter: Statementstmt 47.9% 23 / 48 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 36.5% 15 / 41 Podpod 0.0% 0 / 2 totaltotal 42.1% 40 / 95 SCAR 14.5
CC
3
Cov
48%
__ANON__
6.0
__ANON__
2.0
__ANON__
2.0
CRAP 4.3
« KDBX/Tie/Entry.pm ↑ Summary KDBX/Tie/AssociationList.pm »
1 package File::KeePass::KDBX::Tie::Group;
2 # ABSTRACT: Database group
3  
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use parent 'File::KeePass::KDBX::Tie::Hash';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 our $VERSION = '0.901'; # VERSION
10  
11 my %GET = (
12 0 ▶ accessed => sub { File::KeePass::KDBX::_decode_datetime($_[0]->last_access_time) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
13 0 ▶ usage_count => sub { $_[0]->usage_count },
Subroutine __ANON__: not called CC=1 SCAR=6.9
14 0 ▶ expires_enabled => sub { $_[0]->expires ? 1 : 0 },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0]->expires ? : 0 0 0
15 63 ▶ created => sub { File::KeePass::KDBX::_decode_datetime($_[0]->creation_time) },
Subroutine __ANON__: called CC=1 SCAR=0.0
16 0 ▶ expires => sub { File::KeePass::KDBX::_decode_datetime($_[0]->expiry_time) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
17 0 ▶ modified => sub { File::KeePass::KDBX::_decode_datetime($_[0]->last_modification_time) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
18 0 ▶ location_changed => sub { File::KeePass::KDBX::_decode_datetime($_[0]->location_changed) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
19 366 ▶ level => sub { $_[0]->depth },
Subroutine __ANON__: called CC=1 SCAR=0.0
20 0 ▶ notes => sub { $_[0]->notes },
Subroutine __ANON__: not called CC=1 SCAR=6.9
21 811 ▶ id => sub { $_[0]->uuid },
Subroutine __ANON__: called CC=1 SCAR=0.0
22 65 ▶ expanded => sub { $_[0]->is_expanded ? 1 : 0 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0]->is_expanded ? : 7 58 65
23 303 ▶ icon => sub { $_[0]->icon_id + 0 },
Subroutine __ANON__: called CC=1 SCAR=0.0
24 488 ▶ title => sub { $_[0]->name },
Subroutine __ANON__: called CC=1 SCAR=0.0
25 0 ▶ auto_type_default => sub { $_[0]->default_auto_type_sequence },
Subroutine __ANON__: not called CC=1 SCAR=6.9
26 0 ▶ auto_type_enabled => sub { File::KeePass::KDBX::_decode_tristate($_[0]->enable_auto_type) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
27 0 ▶ enable_searching => sub { File::KeePass::KDBX::_decode_tristate($_[0]->enable_searching) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
28 671 ▶ groups => sub { $_[-1]->_tie([], 'GroupList', $_[0]) },
Subroutine __ANON__: called CC=1 SCAR=0.0
29 169 ▶ entries => sub { $_[-1]->_tie([], 'EntryList', $_[0], 'entries') },
Subroutine __ANON__: called CC=1 SCAR=0.0
30 3 );
31 my %SET = (
32 0 ▶ accessed => sub { $_[0]->last_access_time(File::KeePass::KDBX::_encode_datetime($_)) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
33 0 ▶ usage_count => sub { $_[0]->usage_count($_) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
34 0 ▶ expires_enabled => sub { $_[0]->expires($_) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
35 0 ▶ created => sub { $_[0]->creation_time(File::KeePass::KDBX::_encode_datetime($_)) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
36 0 ▶ expires => sub { $_[0]->expiry_time(File::KeePass::KDBX::_encode_datetime($_)) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
37 0 ▶ modified => sub { $_[0]->last_modification_time(File::KeePass::KDBX::_encode_datetime($_)) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
38 0 ▶ location_changed => sub { $_[0]->location_changed(File::KeePass::KDBX::_encode_datetime($_)) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
39 ▶ level => sub { }, # readonly
Subroutine __ANON__: called CC=1 SCAR=0.0
40 0 ▶ notes => sub { $_[0]->notes($_) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
41 0 ▶ id => sub { $_[0]->uuid(File::KeePass::KDBX::_encode_uuid($_)) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
42 0 ▶ expanded => sub { $_[0]->is_expanded($_) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
43 0 ▶ icon => sub { $_[0]->icon_id($_) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
44 0 ▶ title => sub { $_[0]->name($_) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
45 0 ▶ auto_type_default => sub { $_[0]->default_auto_type_sequence($_) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
46 0 ▶ auto_type_enabled => sub { $_[0]->enable_auto_type(File::KeePass::KDBX::_encode_tristate($_)) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
47 0 ▶ enable_searching => sub { $_[0]->enable_searching(File::KeePass::KDBX::_encode_tristate($_)) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
48 ▶ groups => sub { }, # TODO - Replace all subgroups
Subroutine __ANON__: called CC=1 SCAR=0.0
49 ▶ entries => sub { }, # TODO - Replace all entries
Subroutine __ANON__: not called CC=1 SCAR=0.0
50 3 );
51  
52 2936 ▶sub getters { \%GET }
Subroutine getters: called CC=1 SCAR=0.0
Pod undocumented
53 429 ▶sub setters { \%SET }
Subroutine setters: called CC=1 SCAR=0.0
Pod undocumented
54  
55 3 1;
56  
57 __END__
« KDBX/Tie/Entry.pm ↑ Summary KDBX/Tie/AssociationList.pm »