File Coverage

blib/lib/BSON/Array.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 18 19 94.7


line stmt bran cond sub pod time code
1 71     71   26697 use 5.010001;
  71         246  
2 71     71   413 use strict;
  71         139  
  71         1485  
3 71     71   349 use warnings;
  71         142  
  71         2441  
4              
5             package BSON::Array;
6             # ABSTRACT: BSON type wrapper for a list of elements
7              
8 71     71   371 use version;
  71         136  
  71         306  
9             our $VERSION = 'v1.12.1';
10              
11             sub new {
12 1     1 0 4 my ( $class, @args ) = @_;
13 1         4 return bless [@args], $class;
14             }
15              
16             1;
17              
18             =pod
19              
20             =encoding UTF-8
21              
22             =head1 NAME
23              
24             BSON::Array - BSON type wrapper for a list of elements
25              
26             =head1 VERSION
27              
28             version v1.12.1
29              
30             =head1 SYNOPSIS
31              
32             use BSON::Types ':all';
33              
34             my $array = bson_array(...);
35              
36             =head1 DESCRIPTION
37              
38             This module provides a BSON type wrapper representing a list of elements.
39             It is currently read-only.
40              
41             Wrapping is usually not necessary as an ordinary array reference is usually
42             sufficient. This class is helpful for cases where an array reference could
43             be ambiguously interpreted as a top-level document container.
44              
45             =for Pod::Coverage new
46              
47             =head1 AUTHORS
48              
49             =over 4
50              
51             =item *
52              
53             David Golden
54              
55             =item *
56              
57             Stefan G.
58              
59             =back
60              
61             =head1 COPYRIGHT AND LICENSE
62              
63             This software is Copyright (c) 2019 by Stefan G. and MongoDB, Inc.
64              
65             This is free software, licensed under:
66              
67             The Apache License, Version 2.0, January 2004
68              
69             =cut
70              
71             __END__