blib/lib/CBOR/Free/X/InvalidUTF8.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/CBOR/Free/X/InvalidMapKey.pm ↑ Summary blib/lib/CBOR/Free/X/NegativeIntTooLow.pm »
1 package CBOR::Free::X::InvalidUTF8;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use parent qw( CBOR::Free::X::Base );
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶use Text::Control ();
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 sub _new {
11 2 ▶ my ($class, $bin) = @_;
Subroutine _new: called CC=1 SCAR=0.0
12  
13 2 $bin = Text::Control::to_hex($bin);
14  
15 2 return $class->SUPER::_new("Received an invalid UTF-8 string: “$bin”");
16 }
17  
18 2 1;
« blib/lib/CBOR/Free/X/InvalidMapKey.pm ↑ Summary blib/lib/CBOR/Free/X/NegativeIntTooLow.pm »