TabsCreator/Warning.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 2 totaltotal 92.8% 26 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« TabsCreator/TabParser.pm ↑ Summary
1 # An exception class used as a way to convey that some thrown errors are benign.
2 # This is a hack for the purpose of https://harmonica-tabs-creator.com
3  
4 package Music::Harmonica::TabsCreator::Warning;
5  
6 3 ▶use 5.036;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 3 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 3 ▶use overload '""' => 'as_string';
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 3 our $VERSION = '0.01';
14  
15 1 ▶sub new ($class, $message) {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
16 1 my $self = bless {message => $message,}, $class;
17 1 return $self;
18 }
19  
20 2 ▶sub as_string ($self, $, $) {
Subroutine as_string: called CC=1 SCAR=0.0
Pod undocumented
21 2 return $self->{message}."\n";
22 }
23  
24 3 1;
« TabsCreator/TabParser.pm ↑ Summary