Text/Util.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 1 totaltotal 96.6% 29 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Text/Regexp.pm ↑ Summary Text/Regexp/Emoji.pm »
1 package
2 Twitter::Text::Util; # hide from PAUSE
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶no if $^V lt v5.13.9, 'warnings', 'utf8'; ## no critic (ValuesAndExpressions::ProhibitMismatchedOperators)
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 4 ▶use File::Share qw(dist_file);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 4 ▶use YAML::PP ();
Subroutine BEGIN: called CC=1 SCAR=0.0
9 4 our @EXPORT = qw(
10 load_yaml
11 );
12  
13 # internal use only, do not use this module directly.
14  
15 7 ▶sub load_yaml {
Subroutine load_yaml: called CC=1 SCAR=0.0
Pod undocumented
16 7 my $yamlname = shift;
17  
18 7 return [ YAML::PP::LoadFile(dist_file('Twitter-Text', "conformance/$yamlname")) ];
19 }
20  
21 4 1;
« Text/Regexp.pm ↑ Summary Text/Regexp/Emoji.pm »