File Coverage

blib/lib/Devel/AssertOS/Linux/Oracle.pm
Criterion Covered Total %
statement 17 18 94.4
branch 1 2 50.0
condition 1 3 33.3
subroutine 6 7 85.7
pod n/a
total 25 30 83.3


line stmt bran cond sub pod time code
1             package Devel::AssertOS::Linux::Oracle;
2              
3 2     2   19 use Devel::CheckOS;
  2         20  
  2         151  
4 2     2   19 use strict;
  2         5  
  2         72  
5 2     2   11 use warnings;
  2         5  
  2         156  
6              
7 2     2   14 use Devel::CheckOS::Helpers::LinuxOSrelease 'distributor_id';
  2         6  
  2         142  
8              
9 2     2   14 no warnings 'redefine';
  2         40  
  2         350  
10              
11             our $VERSION = '1.0';
12              
13             sub os_is {
14 15     15   91 my $id = distributor_id;
15              
16 15 50 33     96 Devel::CheckOS::os_is('Linux') &&
17             defined($id) &&
18             $id eq 'ol';
19             }
20              
21 0     0     sub expn { "The Linux distribution is Oracle Linux" }
22              
23             Devel::CheckOS::die_unsupported() unless ( os_is() );
24              
25             =head1 COPYRIGHT and LICENCE
26              
27             Copyright 2024 David Cantrell
28              
29             This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively.
30              
31             =cut
32              
33             1;
34              
35