Locale/Msgfmt/Utils.pm

filter: Statementstmt 74.0% 20 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 10 / 16 Podpod 0.0% 0 / 10 totaltotal 56.6% 30 / 53 CC 1 SCAR 3.2
CC
1
Cov
74%
_from_character
2.0
from_character
2.0
_from_string
2.0
CRAP 1.4
« Locale/Msgfmt/mo.pm ↑ Summary
1 package Locale::Msgfmt::Utils;
2  
3 4 ▶use 5.008005;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 our $VERSION = '0.15';
8  
9 1885 ▶sub character {
Subroutine character: called CC=1 SCAR=0.0
Pod undocumented
10 1885 return map { pack "N*", $_ } @_;
11 }
12  
13 0 ▶sub _from_character {
Subroutine _from_character: not called CC=1 SCAR=6.9
14 0 return map { ord($_) } @_;
15 }
16  
17 0 ▶sub from_character {
Subroutine from_character: not called CC=1 SCAR=6.9
Pod undocumented
18 0 return character( _from_character(@_) );
19 }
20  
21 15 ▶sub _from_hex {
Subroutine _from_hex: called CC=1 SCAR=0.0
22 15 return map { hex($_) } @_;
23 }
24  
25 15 ▶sub from_hex {
Subroutine from_hex: called CC=1 SCAR=0.0
Pod undocumented
26 15 return character( _from_hex(@_) );
27 }
28  
29 0 ▶sub _from_string {
Subroutine _from_string: not called CC=1 SCAR=6.9
30 0 return split //, join '', @_;
31 }
32  
33 0 ▶sub from_string {
Subroutine from_string: not called CC=1 SCAR=6.9
Pod undocumented
34 0 return join_string( from_character( _from_string(@_) ) );
35 }
36  
37 0 ▶sub join_string {
Subroutine join_string: not called CC=1 SCAR=6.9
Pod undocumented
38 0 return join '', @_;
39 }
40  
41 0 ▶sub number_to_s {
Subroutine number_to_s: not called CC=1 SCAR=6.9
Pod undocumented
42 0 return sprintf "%d", shift;
43 }
44  
45 1344 ▶sub null_terminate {
Subroutine null_terminate: called CC=1 SCAR=0.0
Pod undocumented
46 1344 return pack "Z*", shift;
47 }
48  
49 454 ▶sub null {
Subroutine null: called CC=1 SCAR=0.0
Pod undocumented
50 454 return null_terminate("");
51 }
52  
53 2 ▶sub eot {
Subroutine eot: called CC=1 SCAR=0.0
Pod undocumented
54 2 return chr(4);
55 }
56  
57 30 ▶sub mtime {
Subroutine mtime: called CC=1 SCAR=0.0
Pod undocumented
58 30 return @{ [ stat(shift) ] }[9];
59 }
60  
61 4 1;
62  
63 __END__
« Locale/Msgfmt/mo.pm ↑ Summary