File Coverage

blib/lib/Devel/AssertOS/Linux/Debian.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 0 3 0.0
total 23 26 88.4


line stmt bran cond sub pod time code
1             package Devel::AssertOS::Linux::Debian;
2              
3 4     4   868 use Devel::CheckOS;
  4         9  
  4         197  
4 4     4   40 use strict;
  4         10  
  4         79  
5 4     4   22 use warnings;
  4         7  
  4         179  
6 4     4   23 no warnings 'redefine';
  4         10  
  4         689  
7              
8             our $VERSION = '1.2';
9              
10 17     17 0 79 sub matches { map { "Linux::$_" } qw(Raspbian Ubuntu RealDebian UnknownDebianLike Devuan) }
  85         273  
11              
12 5     5 0 19 sub os_is { Devel::CheckOS::os_is(matches()) }
13              
14 1     1 0 162 sub expn { "The operating system is some derivative of Debian Linux (see Linux::RealDebian for *actual* Debian Linux)" }
15              
16             Devel::CheckOS::die_unsupported() unless(os_is());
17              
18             =head1 COPYRIGHT and LICENCE
19              
20             Copyright 2023 David Cantrell
21              
22             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.
23              
24             =cut
25              
26             1;
27