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 3     3   6323 use Devel::CheckOS;
  3         10  
  3         188  
4 3     3   42 use strict;
  3         8  
  3         81  
5 3     3   15 use warnings;
  3         6  
  3         202  
6 3     3   16 no warnings 'redefine';
  3         7  
  3         697  
7              
8             our $VERSION = '1.2';
9              
10 11     11 0 36 sub matches { map { "Linux::$_" } qw(Raspbian Ubuntu RealDebian UnknownDebianLike Devuan Elementary) }
  66         206  
11              
12 4     4 0 16 sub os_is { Devel::CheckOS::os_is(matches()) }
13              
14 1     1 0 111 sub expn { "The distribution 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 2024 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