File Coverage

blib/lib/MongoDB/Timestamp.pm
Criterion Covered Total %
statement 12 14 85.7
branch n/a
condition n/a
subroutine 4 5 80.0
pod 0 1 0.0
total 16 20 80.0


line stmt bran cond sub pod time code
1             # Copyright 2010 - present MongoDB, Inc.
2             #
3             # Licensed under the Apache License, Version 2.0 (the "License");
4             # you may not use this file except in compliance with the License.
5             # You may obtain a copy of the License at
6             #
7             # http://www.apache.org/licenses/LICENSE-2.0
8             #
9             # Unless required by applicable law or agreed to in writing, software
10             # distributed under the License is distributed on an "AS IS" BASIS,
11             # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12             # See the License for the specific language governing permissions and
13             # limitations under the License.
14              
15 1     1   470 use strict;
  1         2  
  1         32  
16 1     1   5 use warnings;
  1         2  
  1         33  
17             package MongoDB::Timestamp;
18              
19             # ABSTRACT: (DEPRECATED) Replication timestamp type
20              
21 1     1   6 use version;
  1         1  
  1         6  
22             our $VERSION = 'v2.2.1';
23              
24 1     1   71 use Moo;
  1         2  
  1         5  
25             extends 'BSON::Timestamp';
26              
27             with $_ for qw(
28             MongoDB::Role::_DeprecationWarner
29             );
30              
31             sub BUILD {
32 0     0 0   my $self = shift;
33 0           $self->_warn_deprecated_class(__PACKAGE__, ["BSON::Timestamp"], 0);
34             };
35              
36             1;
37              
38             =pod
39              
40             =encoding UTF-8
41              
42             =head1 NAME
43              
44             MongoDB::Timestamp - (DEPRECATED) Replication timestamp type
45              
46             =head1 VERSION
47              
48             version v2.2.1
49              
50             =head1 DESCRIPTION
51              
52             This class is now an empty subclass of L.
53              
54             =head1 AUTHORS
55              
56             =over 4
57              
58             =item *
59              
60             David Golden
61              
62             =item *
63              
64             Rassi
65              
66             =item *
67              
68             Mike Friedman
69              
70             =item *
71              
72             Kristina Chodorow
73              
74             =item *
75              
76             Florian Ragwitz
77              
78             =back
79              
80             =head1 COPYRIGHT AND LICENSE
81              
82             This software is Copyright (c) 2019 by MongoDB, Inc.
83              
84             This is free software, licensed under:
85              
86             The Apache License, Version 2.0, January 2004
87              
88             =cut
89              
90             __END__