Dictionary.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 3 / 3 totaltotal 100% 33 / 33 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Scanner/Perl.pm ↑ Summary Scanner.pm »
1 package Localizer::Dictionary;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use 5.010_001;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use Class::Accessor::Lite 0.05 (
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ro => [qw(_entries)],
9 2 );
10  
11 2 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 2 my $class = shift;
13 2 bless {
14 _entries => {},
15 }, $class;
16 }
17  
18 2 ▶sub exists_msgid {
Subroutine exists_msgid: called CC=1 SCAR=0.0
Pod documented
19 2 my ($self, $msgid) = @_;
20 2 exists $self->_entries->{$msgid}
21 }
22  
23 42 ▶sub add_entry_position {
Subroutine add_entry_position: called CC=1 SCAR=0.0
Pod documented
24 42 my ($self, $msgid, $file, $line) = @_;
25 42 push @{$self->_entries->{$msgid}->{position}}, [$file, $line];
26 }
27  
28 2 1;
29 __END__
« Scanner/Perl.pm ↑ Summary Scanner.pm »