lib/ChordPro/Output/Debug.pm

filter: Statementstmt 50.0% 10 / 20 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 43.3% 13 / 30 CC 4 SCAR 24.7
CC
4
Cov
42%
generate_songbook
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 11.9
« lib/ChordPro/Chords/Parser.pm ↑ Summary lib/ChordPro/Output/Markdown.pm »
1 #!/usr/bin/perl
2  
3 package ChordPro::Output::Debug;
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 0 ▶sub generate_songbook {
Subroutine generate_songbook: not called CC=4 SCAR=30.0
Pod undocumented
10 0 my ( $self, $sb ) = @_;
11  
12 0 ▶ if ( ( $::options->{'backend-option'}->{structure} // '' ) eq 'structured' ) {
Branch: 1 branch
BranchTrueFalseTotal
if (($main::options->{"backend-option"}{"structure"} // "") eq "structured") 0 0 0
Condition0%0/2
$main::options->{"backend-option"}{"structure"} // ""
l!l
00
MC/DC0%0/1
$main::options->{"backend-option"}{"structure"} // ""
$main::options->{"backend-option"}{"structure"}
Truth table0%0/2
A
A= $main::options->{"backend-option"}{"structure"}
Aresult
11
00
13 0 foreach ( @{$sb->{songs}} ) {
14 0 $_->structurize;
15 }
16 }
17 0 $Data::Dumper::Sortkeys = 1;
18 0 $Data::Dumper::Indent = 1;
19 0 my @book;
20 0 push( @book, Data::Dumper->Dump( [ $sb, $::options ], [ "song", "options" ] ) );
21 0 \@book;
22 }
23  
24 1 1;
« lib/ChordPro/Chords/Parser.pm ↑ Summary lib/ChordPro/Output/Markdown.pm »