blib/lib/Perl/Structure/MongoDBBSON.pm untested

filter: Statementstmt 0.0% 0 / 40 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 52 CC 1 SCAR 6.9
CC
1
Cov
0%
bson_build
2.0
bson_Dumper
2.0
BEGIN
2.0
CRAP 2.0
1 # [[[ HEADER ]]]
2 package Perl::Structure::MongoDBBSON;
3 use strict;
4 use warnings;
5 use Perl::Config; # don't use Perl::Types inside itself, in order to avoid circular includes
6 our $VERSION = 0.001_000;
7  
8 # [[[ OO INHERITANCE ]]]
9 use parent qw(Perl::Class);
10 use Perl::Class;
11  
12 # [[[ CRITICS ]]]
13 ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator
14 ## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils
15 ## no critic qw(Capitalization ProhibitMultiplePackages ProhibitReusedNames) # SYSTEM DEFAULT 3: allow multiple & lower case package names
16  
17 # [[[ SUB-TYPES ]]]
18 package bson_document;
19 1; # end of class
20  
21 package bson_document__optional;
22 1; # end of class
23  
24 package arrayref::bson;
25 1; # end of class
26  
27 package hashref::bson;
28 1; # end of class
29  
30  
31  
32 # [[[ SWITCH CONTEXT BACK TO PRIMARY PACKAGE ]]]
33 package Perl::Structure::MongoDBBSON;
34 use strict;
35 use warnings;
36  
37 # [[[ EXPORTS ]]]
38 use Exporter 'import';
39 our @EXPORT = qw(
40 bson_build
41 bson_Dumper
42 );
43  
44 # DEV NOTE: do nothing in Perl, this subroutine is only used in C++
45 sub bson_build {
46 { my bson_document $RETURN_TYPE };
47 ( my hashref $bson_document_raw ) = @ARG;
48 return $bson_document_raw;
49 }
50  
51 sub bson_Dumper {
52 { my string $RETURN_TYPE };
53 ( my bson_document $bson_document ) = @ARG;
54 return Dumper($bson_document);
55 }
56  
57 1; # end of class