.htmlgen/FunctionalPerl/Htmlgen/default_config.pm

filter: Statementstmt 100% 24 / 24 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 1 totaltotal 97.0% 33 / 34 CC 2 SCAR 2.2
CC
2
Cov
100%
default__is_indexpath0
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/Chj/IO/Pipe.pm ↑ Summary .htmlgen/FunctionalPerl/Htmlgen/PXMLMapper.pm »
1 #
2 # Copyright (c) 2014-2015 Christian Jaeger, copying@christianjaeger.ch
3 #
4 # This is free software, offered under either the same terms as perl 5
5 # or the terms of the Artistic License version 2 or the terms of the
6 # MIT License (Expat version). See the file COPYING.md that came
7 # bundled with this file.
8 #
9  
10 =head1 NAME
11  
12 FunctionalPerl::Htmlgen::default_config
13  
14 =head1 SYNOPSIS
15  
16 =head1 DESCRIPTION
17  
18  
19 =head1 NOTE
20  
21 This is alpha software! Read the status section in the package README
22 or on the L<website|http://functional-perl.org/>.
23  
24 =cut
25  
26 package FunctionalPerl::Htmlgen::default_config;
27 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
28 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 2 ▶use warnings FATAL => 'uninitialized';
Subroutine BEGIN: called CC=1 SCAR=0.0
30 2 ▶use experimental "signatures";
Subroutine BEGIN: called CC=1 SCAR=0.0
31 2 ▶use Exporter "import";
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 2 our @EXPORT = qw($default_config);
34 2 our @EXPORT_OK = qw();
35 2 our %EXPORT_TAGS = (all => [@EXPORT, @EXPORT_OK]);
36  
37 2 ▶use Chj::xperlfunc qw(basename);
Subroutine BEGIN: called CC=1 SCAR=0.0
38  
39 12 ▶sub default__is_indexpath0($path0) {
Subroutine default__is_indexpath0: called CC=2 SCAR=6.9
Pod undocumented
40 12 my $bn = lc basename($path0);
41 12 ▶ $bn eq "index.md" or $bn eq "readme.md"
Branch: 1 branch
BranchTrueFalseTotal
$bn eq "index.md" or $bn eq "readme.md" 2 10 12
42 }
43  
44 2 our $default_config = +{ is_indexpath0 => \&default__is_indexpath0, };
45  
« lib/Chj/IO/Pipe.pm ↑ Summary .htmlgen/FunctionalPerl/Htmlgen/PXMLMapper.pm »