File Coverage

blib/lib/Devel/AssertOS/Linux/Alma.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::Alma;
2              
3 2     2   10 use Devel::CheckOS;
  2         3  
  2         129  
4 2     2   10 use strict;
  2         3  
  2         33  
5 2     2   6 use warnings;
  2         4  
  2         100  
6              
7 2     2   464 use Devel::CheckOS::Helpers::LinuxOSrelease 'distributor_id';
  2         3  
  2         95  
8              
9 2     2   7 no warnings 'redefine';
  2         2  
  2         243  
10              
11             our $VERSION = '1.0';
12              
13             sub os_is {
14 15     15   102 my $id = distributor_id;
15              
16 15 50 33     94 Devel::CheckOS::os_is('Linux') &&
17             defined($id) &&
18             $id eq 'almalinux';
19             }
20              
21 0     0     sub expn { "The operating system is some version of Alma" }
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