alienfile

filter: Statementstmt 92.3% 12 / 13 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 80.0% 16 / 20 CC 3 SCAR 8.2
CC
3
Cov
82%
__ANON__
3.1
__ANON__
1.1
BEGIN
1.0
CRAP 2.3
↑ Summary blib/lib/Alien/YAMLScript.pm »
1 1 ▶use alienfile;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 1 my $libys_version = '0.3.7';
4  
5 # Always use a share install
6 # We cannot use a system install, because we need to know exactly
7 # which version we are installing.
8 0 ▶probe sub { 'share' };
Subroutine __ANON__: not called CC=1 SCAR=1.2
9  
10 1 ▶share {
Subroutine __ANON__: called CC=3 SCAR=11.2
11 1 my $os = $^O;
12 1 ▶ $os = 'macos' unless $os eq 'linux';
Branch: 1 branch
BranchTrueFalseTotal
unless $os eq "linux" 0 1 1
13  
14 1 my $arch = meta->prop->{platform}{cpu}{arch}{name};
15 1 ▶ $arch = 'x64' unless $arch eq 'aarch64';
Branch: 1 branch
BranchTrueFalseTotal
unless $arch eq "aarch64" 1 0 1
16  
17 1 plugin 'Download::GitHub' => (
18 github_user => 'yaml',
19 github_repo => 'yamlscript',
20 asset => 1,
21 asset_name => qr/^libys-\Q$libys_version\E-$os-$arch/,
22 asset_format => 'tar.xz',
23 );
24  
25 1 build [
26 '%{make} install PREFIX=%{.install.prefix}',
27 ];
28 1 };
↑ Summary blib/lib/Alien/YAMLScript.pm »