File Coverage

blib/lib/MongoDB/_Platform.pm
Criterion Covered Total %
statement 12 15 80.0
branch 0 2 0.0
condition n/a
subroutine 4 6 66.6
pod 0 2 0.0
total 16 25 64.0


line stmt bran cond sub pod time code
1             # Copyright 2016 - 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 60     60   411 use strict;
  60         134  
  60         1666  
16 60     60   308 use warnings;
  60         145  
  60         2055  
17              
18             package MongoDB::_Platform;
19              
20 60     60   352 use version;
  60         142  
  60         342  
21             our $VERSION = 'v2.2.1';
22              
23 60     60   4972 use Config;
  60         143  
  60         8561  
24              
25             sub os_type {
26 0 0   0 0   return ($^O eq "MSWin32") ? "Windows" : $^O;
27             }
28              
29             sub platform_details {
30 0     0 0   my $perl_version = version->new($])->normal;
31 0           return "Perl $perl_version $Config{archname}";
32             }
33              
34             1;