blib/lib/Pod/Weaver/Plugin/PERLANCAR/SortSections.pm

filter: Statementstmt 90.4% 19 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 85.1% 23 / 27 CC 1 SCAR 1.8
CC
1
Cov
90%
finalize_document
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
↑ Summary
1 package Pod::Weaver::Plugin::PERLANCAR::SortSections;
2  
3 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
4 1 our $DATE = '2020-02-19'; # DATE
5 1 our $DIST = 'Pod-Weaver-Plugin-PERLANCAR-SortSections'; # DIST
6 1 our $VERSION = '0.082'; # VERSION
7  
8 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 with 'Pod::Weaver::Role::Finalizer';
12 1 with 'Pod::Weaver::Role::SortSections';
13  
14 1 ▶use Sort::Sub::pod_section_ala_perlancar;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 0 ▶sub finalize_document {
Subroutine finalize_document: not called CC=1 SCAR=6.9
Pod undocumented
18 0 my ($self, $document, $input) = @_;
19  
20 0 $self->sort_sections(
21 $document,
22 $Sort::Sub::pod_section_ala_perlancar::SORT_SPEC,
23 );
24 }
25  
26 1 __PACKAGE__->meta->make_immutable;
27 1 1;
28 # ABSTRACT: Sort POD sections like PERLANCAR
29  
30 __END__
↑ Summary