blib/lib/CBOR/Free/X/CannotDecode64Bit.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
_new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package CBOR::Free::X::CannotDecode64Bit;
2  
3 use strict;
4 use warnings;
5  
6 use parent qw( CBOR::Free::X::Base );
7  
8 sub _new {
9 my ($class, $numbin, $offset) = @_;
10  
11 my $numhex = sprintf(
12 '%02x%02x_%02x%02x_%02x%02x_%02x%02x',
13 unpack( 'C*', $numbin ),
14 );
15  
16 return $class->SUPER::_new( sprintf('The CBOR buffer contains a 64-bit number (0x%s) at offset %d that this system cannot decode.', $numhex, $offset) )
17 }
18  
19 1;