File Coverage

blib/lib/Devel/AssertOS/QNX.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 22 22 100.0


line stmt bran cond sub pod time code
1             package Devel::AssertOS::QNX;
2              
3 5     5   36 use Devel::CheckOS;
  5         13  
  5         382  
4 5     5   30 use strict;
  5         13  
  5         147  
5 5     5   26 use warnings;
  5         10  
  5         371  
6 5     5   26 no warnings 'redefine';
  5         10  
  5         1056  
7              
8             our $VERSION = '1.2';
9              
10 12     12   89 sub matches { return qw(QNX::v4 QNX::Neutrino); }
11 10     10   37 sub os_is { Devel::CheckOS::os_is(matches()); }
12             sub expn {
13 1     1   81 join("\n",
14             "All versions of QNX match this, as well as (possibly) a more specific",
15             "match"
16             )
17             }
18             Devel::CheckOS::die_unsupported() unless(os_is());
19              
20             =head1 COPYRIGHT and LICENCE
21              
22             Copyright 2024 David Cantrell
23              
24             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.
25              
26             =cut
27              
28             1;