blib/lib/CBOR/Free/Tagged.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
new
1.0
CRAP 1.0
« cbor_free_encode.c ↑ Summary blib/lib/CBOR/Free/X.pm »
1 package CBOR::Free::Tagged;
2  
3 21 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 21 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 =encoding utf-8
7  
8 =head1 NAME
9  
10 CBOR::Free::Tagged
11  
12 =head1 SYNOPSIS
13  
14 my $tagged = CBOR::Free::Tagged->new( 1, '2019-05-01T01:02:03Z' );
15  
16 =head1 DESCRIPTION
17  
18 This class represents tagged objects for L<CBOR::Free>. You might as well
19 invoke it via C<CBOR::Free::tagged()> rather than instantiating this class
20 directly, though.
21  
22 =head1 METHODS
23  
24 =head2 $obj = I<CLASS>->new( $TAG_NUMBER, $VALUE )
25  
26 $TAG_NUMBER is the CBOR tag number to apply on the given $VALUE.
27  
28 Returns a class instance.
29  
30 =cut
31  
32 sub new {
33 104 ▶ return bless \@_, shift;
Subroutine new: called CC=1 SCAR=0.0
Pod documented
34 }
35  
36 21 1;
« cbor_free_encode.c ↑ Summary blib/lib/CBOR/Free/X.pm »