| 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
Condition0%0/2
$main::options->{"backend-option"}{"structure"} // ""
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"}
| |||||||||||||||||||||
| 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; | |||||||||||||||||||