blib/lib/Devel/AssertOS/iOS.pm

filter: Statementstmt 92.8% 13 / 14 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod n/a totaltotal 86.3% 19 / 22 CC 2 SCAR 3.9
CC
2
Cov
88%
os_is
2.1
expn
2.0
BEGIN
1.0
CRAP 1.5
« blib/lib/Devel/CheckOS.pm ↑ Summary blib/lib/Devel/AssertOS/MacOSX.pm »
1 package Devel::AssertOS::iOS;
2  
3 7 ▶use Devel::CheckOS;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 7 ▶no warnings 'redefine';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 our $VERSION = '1.0';
9  
10 14 ▶sub os_is { ( $^O =~ /^iphoneos$/i) ? 1 : 0; }
Subroutine os_is: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$^O =~ /^iphoneos$/i ? : 0 14 14
11  
12 0 ▶sub expn { "Apple's iPhone/iPad OS. *NOT* Cisco IOS!" }
Subroutine expn: not called CC=1 SCAR=6.9
13  
14 Devel::CheckOS::die_unsupported() unless(os_is());
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;
« blib/lib/Devel/CheckOS.pm ↑ Summary blib/lib/Devel/AssertOS/MacOSX.pm »