Text.pm

filter: Statementstmt 79.1% 19 / 24 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 50.0% 1 / 2 totaltotal 70.5% 24 / 34 CC 2 SCAR 9.4
CC
2
Cov
73%
format_pretty
6.0
content_type
2.0
BEGIN
1.0
CRAP 2.6
« SimpleText.pm ↑ Summary
1 package Data::Format::Pretty::Text;
2  
3 1 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Data::Format::Pretty::Console ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 require Exporter;
10 1 our @ISA = qw(Exporter);
11 1 our @EXPORT_OK = qw(format_pretty);
12  
13 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
14 1 our $DATE = '2023-08-07'; # DATE
15 1 our $DIST = 'Data-Format-Pretty-Console'; # DIST
16 1 our $VERSION = '0.392'; # VERSION
17  
18 0 ▶sub content_type { "text/plain" }
Subroutine content_type: not called CC=1 SCAR=6.9
Pod undocumented
19  
20 0 ▶sub format_pretty {
Subroutine format_pretty: not called CC=2 SCAR=17.9
Pod documented
21 0 my ($data, $opts) = @_;
22 0 ▶ my %opts = $opts ? %$opts : ();
Branch: 1 branch
BranchTrueFalseTotal
$opts ? : 0 0 0
23 0 $opts{interactive} = 1;
24 0 Data::Format::Pretty::Console::format_pretty($data, \%opts);
25 }
26  
27 1 1;
28 # ABSTRACT: Pretty-print data structure as text
29  
30 __END__
« SimpleText.pm ↑ Summary