KDBX/Tie/Strings.pm

filter: Statementstmt 87.5% 21 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod 0.0% 0 / 3 totaltotal 77.1% 27 / 35 SCAR 0.0
CC
1
Cov
88%
__ANON__
2.0
default_setter
2.0
BEGIN
1.0
CRAP 1.0
« KDBX/Tie/Binary.pm ↑ Summary
1 package File::KeePass::KDBX::Tie::Strings;
2 # ABSTRACT: Entry strings
3  
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use parent 'File::KeePass::KDBX::Tie::Hash';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 our $VERSION = '0.901'; # VERSION
10  
11 2 my %STANDARD = map { $_ => 1 } qw(Notes Password Title UserName URL);
12  
13 sub keys {
14 16 ▶ my $self = shift;
Subroutine keys: called CC=1 SCAR=0.0
Pod undocumented
15 16 my ($entry) = @$self;
16 16 return [grep { !$STANDARD{$_} } keys %{$entry->strings}];
17 }
18  
19 4 ▶sub default_getter { my $key = $_[1]; sub { $_[0]->string_value($key) } }
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine default_getter: called CC=1 SCAR=0.0
Pod undocumented
20 0 ▶sub default_setter { my $key = $_[1]; sub { $_[0]->string_value($key, $_) } }
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine default_setter: not called CC=1 SCAR=6.9
Pod undocumented
21  
22 2 1;
23  
24 __END__
« KDBX/Tie/Binary.pm ↑ Summary