blib/lib/CBOR/Free/X/Unrecognized.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 11 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | n/a | ||
total | 15 | 15 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package CBOR::Free::X::Unrecognized; | ||||||
2 | |||||||
3 | 1 | 1 | 580 | use strict; | |||
1 | 3 | ||||||
1 | 31 | ||||||
4 | 1 | 1 | 5 | use warnings; | |||
1 | 3 | ||||||
1 | 30 | ||||||
5 | |||||||
6 | 1 | 1 | 5 | use parent qw( CBOR::Free::X::Base ); | |||
1 | 2 | ||||||
1 | 5 | ||||||
7 | |||||||
8 | sub _new { | ||||||
9 | 2 | 2 | 228 | my ($class, $alien) = @_; | |||
10 | |||||||
11 | 2 | 24 | return $class->SUPER::_new("Cannot encode to CBOR: $alien"); | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |