blib/lib/XS/Install.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 67 | 222 | 30.1 |
line | l | !l | condition |
---|---|---|---|
947 | 0 | 86 | $_[0]{'C'} && scalar @{$_[0]{'C'};} |
948 | 0 | 2 | $_[0]{'OBJECT'} && scalar @{$_[0]{'OBJECT'};} |
949 | 0 | 2 | $_[0]{'XS'} && scalar keys %{$_[0]{'XS'};} |
950 | 0 | 2 | $_[0]{'MODULE_INFO'} && $_[0]{'MODULE_INFO'}{'STATIC_LIBS'} && scalar @{$_[0]{'MODULE_INFO'}{'STATIC_LIBS'};} |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
142 | 27 | 4 | 0 | $params->{'BIN_SHARE'} and not ref $params->{'BIN_SHARE'} |
143 | 27 | 4 | 0 | $params->{'BIN_SHARE'} and $params->{'LINK'} |
286 | 31 | 0 | 0 | $info->{'CPLUS'} and !$params->{'CPLUS'} || $params->{'CPLUS'} < $info->{'CPLUS'} |
363 | 77 | 102 | 0 | $deps and @$deps |
370 | 0 | 0 | 0 | $deps and @$deps |
375 | 0 | 77 | 0 | $deps and @$deps |
398 | 0 | 0 | 0 | $info->{'GMAKE'} and $native_bsd_make |
455 | 0 | 0 | 0 | $info->{'GMAKE'} and $native_bsd_make |
461 | 0 | 0 | 0 | exists $info->{'FILE'} and ref $info->{'FILE'} ne "ARRAY" |
538 | 3 | 1 | 0 | $bin_share->{'LIBS'} and ref $bin_share->{'LIBS'} ne "ARRAY" |
548 | 4 | 0 | 0 | $bin_share->{'PARSE_XS'} and ref $bin_share->{'PARSE_XS'} ne "ARRAY" |
621 | 0 | 0 | 0 | @preload and not $win32 |
858 | 0 | 31 | 0 | $list and @$list |
871 | 0 | 0 | 0 | defined $lastc and $lastc ne "\n" |
0 | 0 | 0 | defined $lastc and $lastc ne "\n" and $lastc ne "\r" | |
900 | 31 | 0 | 0 | $add_libs and @$add_libs |
903 | 0 | 0 | 0 | $libs and @$libs |
1082 | 31 | 0 | 31 | defined $val and length $val |
line | l | !l | condition |
---|---|---|---|
108 | 0 | 31 | $postamble ||= [] |
111 | 0 | 31 | $params->{'clean'} ||= {} |
112 | 0 | 31 | $params->{'clean'}{'FILES'} ||= "" |
125 | 0 | 31 | XS::Install::Payload::binary_module_info($params->{'NAME'}) || {} |
136 | 0 | 31 | $params->{'INC'} || '' |
165 | 0 | 31 | $params->{'CONFIGURE_REQUIRES'} ||= {} |
166 | 0 | 31 | $params->{'BUILD_REQUIRES'} ||= {} |
168 | 0 | 31 | $params->{'TEST_REQUIRES'} ||= {} |
169 | 0 | 31 | $params->{'TEST_REQUIRES'}{'Test::Simple'} ||= "0.96" |
170 | 0 | 31 | $params->{'TEST_REQUIRES'}{'Test::More'} ||= 0 |
171 | 0 | 31 | $params->{'TEST_REQUIRES'}{'Test::Deep'} ||= 0 |
173 | 0 | 31 | $params->{'PREREQ_PM'} ||= {} |
187 | 0 | 31 | $params->{'PMLIBDIRS'} ||= ["lib", $name_parts[-1]] |
235 | 0 | 31 | $params->{'MODULE_INFO'}{'VISIBLE_BIN_DEPS'} ||= [] |
282 | 31 | 0 | $params->{'TYPEMAPS'} ||= [] |
289 | 31 | 0 | $params->{'PARSE_XS'} ||= [] |
335 | 77 | 0 | XS::Install::Deps::find_xsi_deps([$xsfile])->{$xsfile} || [] |
371 | 0 | 0 | $$cdeps{$xsi{$f}} ||= [] |
419 | 0 | 0 | $info->{'FLAGS'} ||= "" |
456 | 0 | 0 | $info->{'TARGET'} ||= "" |
457 | 0 | 0 | $info->{'FLAGS'} ||= "" |
524 | 1 | 3 | delete $bin_share->{'TYPEMAPS'} || {} |
529 | 1 | 3 | delete $bin_share->{'INCLUDE'} || {} |
647 | 0 | 0 | $params->{'LD'} ||= "\$(CC)" |
674 | 0 | 31 | $params->{'LDFROM'} ||= "\$(OBJECT)" |
692 | 0 | 31 | $params->{'LDDLFLAGS'} || '' |
703 | 0 | 0 | shift() || [] |
704 | 0 | 0 | shift() || [] |
711 | 0 | 0 | $tp->{'NAME'} || 'MyTest' |
737 | 0 | 0 | $tp->{'VERSION'} || '0.0.0' |
787 | 0 | 0 | $test->{'INC'} || '' |
823 | 0 | 0 | $params->{'INC'} ||= "" |
826 | 0 | 0 | $bs->{'INCLUDE'} //= 1 |
884 | 0 | 3 | $params->{'dynamic_lib'} ||= {} |
901 | 0 | 0 | $params->{'LIBS'} || [] |
955 | 31 | 0 | $to ||= "" |
977 | 16 | 0 | $params->{'PM'} ||= {} |
1074 | 37 | 76 | $_[0] ||= "" |
1080 | 31 | 31 | $s //= "" |
1154 | 0 | 0 | $MY::Config{'dlltool'} || 'dlltool' |
1195 | 0 | 0 | $cpp ||= "c++" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
114 | 0 | 0 | 31 | $ENV{'COMPILER'} || $ENV{'CC'} |
139 | 0 | 0 | 31 | $params->{'UNIQUE_LIBNAME'} //= $win32 |
143 | 0 | 0 | 0 | $params->{'BIN_SHARE'}{'LINK'} //= $params->{'LINK'} |
158 | 1 | 30 | 0 | $params->{'VERSION_FROM'} ||= $pm |
159 | 1 | 30 | 0 | $params->{'ABSTRACT_FROM'} ||= -f $pod ? $pod : $pm |
176 | 0 | 31 | 0 | $params->{'CONFIGURE_REQUIRES'}{$THIS_MODULE} ||= $VERSION |
177 | 0 | 31 | 0 | $params->{'PREREQ_PM'}{$THIS_MODULE} ||= $VERSION |
232 | 31 | 0 | 0 | $params->{'CONFIGURE_REQUIRES'}{$module} ||= $installed_version |
233 | 31 | 0 | 0 | $params->{'PREREQ_PM'}{$module} ||= $installed_version |
286 | 0 | 0 | 0 | !$params->{'CPLUS'} || $params->{'CPLUS'} < $info->{'CPLUS'} |
305 | 6 | 25 | 0 | $params->{'XS'} ||= $params->{'_XSTEST'} ? [] : [_scan_files($xs_mask)] |
306 | 3 | 28 | 0 | $params->{'C'} ||= $params->{'_XSTEST'} ? [] : [_scan_files($c_mask)] |
560 | 0 | 0 | 0 | $bin_share->{'CPLUS'} //= $params->{'CPLUS'} |
631 | 0 | 0 | 0 | $params->{'CC'} || $XS::Install::Config{'cc'} |
698 | 0 | 0 | 0 | $tp->{'SRC'} or $tp->{'XS'} |
0 | 0 | 0 | $tp->{'SRC'} or $tp->{'XS'} or $tp->{'CLIB'} | |
737 | 0 | 0 | 0 | $tp->{'CPLUS'} // $params->{'CPLUS'} |
0 | 0 | 0 | $tp->{'CC'} || $params->{'CC'} | |
0 | 0 | 0 | $tp->{'LD'} || $params->{'LD'} | |
0 | 0 | 0 | $tp->{'PARSE_XS'} || $params->{'PARSE_XS'} | |
742 | 0 | 0 | 0 | has_binary($mm_args) or $tp->{'CLIB'} |
766 | 0 | 0 | 0 | $creq->{$k} //= $prereq->{$k} |
767 | 0 | 0 | 0 | $treq->{$k} //= $prereq->{$k} |
951 | 0 | 0 | 2 | has_c($_[0]) || has_object($_[0]) || has_xs($_[0]) || has_ext($_[0]) |
999 | 0 | 4 | 0 | $params->{'DLEXT'} || $XS::Install::Config{'dlext'} |
1043 | 12 | 6 | 0 | $map->{$source} || $source |