File Coverage

blib/lib/Devel/AssertOS/Sun.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::Sun;
2              
3 1     1   9 use Devel::CheckOS;
  1         3  
  1         67  
4 1     1   7 use strict;
  1         3  
  1         26  
5 1     1   5 use warnings;
  1         2  
  1         62  
6 1     1   6 no warnings 'redefine';
  1         2  
  1         215  
7              
8             our $VERSION = '1.3';
9              
10 2     2   18 sub matches { return qw(SunOS Solaris); }
11 1     1   5 sub os_is { Devel::CheckOS::os_is(matches()); }
12             Devel::CheckOS::die_unsupported() unless(os_is());
13              
14 1     1   109 sub expn { "The operating system is from Sun Microsystems" }
15              
16             =head1 COPYRIGHT and LICENCE
17              
18             Copyright 2024 David Cantrell
19              
20             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.
21              
22             =cut
23              
24             1;