blib/lib/Devel/AssertOS/Linux/SUSE.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Devel/AssertOS/Linux/Redhat.pm ↑ Summary blib/lib/Devel/AssertOS/MicrosoftWindows.pm »
1 package Devel::AssertOS::Linux::SUSE;
2  
3 2 ▶use Devel::CheckOS;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use Devel::CheckOS::Helpers::LinuxOSrelease 'distributor_id';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 ▶no warnings 'redefine';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 our $VERSION = '1.0';
12  
13 6 ▶sub matches { map { "Linux::$_" } qw(SLES OpenSUSE) }
Subroutine matches: called CC=1 SCAR=0.0
14  
15 5 ▶sub os_is { Devel::CheckOS::os_is(matches()) }
Subroutine os_is: called CC=1 SCAR=0.0
16  
17 1 ▶sub expn { "The Linux distribution is some version of SUSE, (see Linux::SLES for the commercial variant, and Linux::OpenSUSE for the community version)" }
Subroutine expn: called CC=1 SCAR=0.0
18  
19 Devel::CheckOS::die_unsupported() unless ( os_is() );
20  
21 =head1 COPYRIGHT and LICENCE
22  
23 Copyright 2024 David Cantrell
24  
25 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.
26  
27 =cut
28  
29 1;
30  
31  
« blib/lib/Devel/AssertOS/Linux/Redhat.pm ↑ Summary blib/lib/Devel/AssertOS/MicrosoftWindows.pm »