« blib/lib/Alien/Build/Plugin/Decode/DirListingFtpcopy.pm
↑ Summary
blib/lib/Alien/Build/Plugin/Core/CleanInstall.pm »
| 1 | package Test::Alien::Synthetic; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 4 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 4 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 4 | ▶ | use 5.008004; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | 4 | ▶ | use Test2::API qw( context ); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | # ABSTRACT: A mock alien object for testing | ||||||||||||||||||||||||||||
| 9 | 4 | our $VERSION = '2.88'; # VERSION | |||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | 33 | ▶ | sub _def ($) { my($val) = @_; defined $val ? $val : '' } | ||||||||||||||||||||||||||
|
Subroutine
_def: called CC=2 SCAR=6.9
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | 14 | ▶ | sub cflags { _def shift->{cflags} } | ||||||||||||||||||||||||||
|
Subroutine
cflags: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 15 | 19 | ▶ | sub libs { _def shift->{libs} } | ||||||||||||||||||||||||||
|
Subroutine
libs: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 16 | 2 | ▶ | sub dynamic_libs { @{ shift->{dynamic_libs} || [] } } | ||||||||||||||||||||||||||
|
Subroutine
dynamic_libs: called CC=2 SCAR=6.9
Pod
documented
Condition100%2/2
+(shift())->{'dynamic_libs'} || []
MC/DC100%1/1
+(shift())->{'dynamic_libs'} || []
+(shift())->{'dynamic_libs'}
Truth table100%2/2
A
A= +(shift())->{'dynamic_libs'}
| |||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||
| 18 | sub runtime_prop | ||||||||||||||||||||||||||||
| 19 | 0 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
runtime_prop: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||||||||||
| 20 | 0 | my($self) = @_; | |||||||||||||||||||||||||||
| 21 | defined $self->{runtime_prop} | ||||||||||||||||||||||||||||
| 22 | ? $self->{runtime_prop} | ||||||||||||||||||||||||||||
| 23 | 0 | ▶ | : {}; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 24 | } | ||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||
| 26 | sub cflags_static | ||||||||||||||||||||||||||||
| 27 | 2 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
cflags_static: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 28 | 2 | my($self) = @_; | |||||||||||||||||||||||||||
| 29 | defined $self->{cflags_static} | ||||||||||||||||||||||||||||
| 30 | ? $self->{cflags_static} | ||||||||||||||||||||||||||||
| 31 | 2 | ▶ | : $self->cflags; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 32 | } | ||||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||
| 34 | sub libs_static | ||||||||||||||||||||||||||||
| 35 | 2 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
libs_static: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||
| 36 | 2 | my($self) = @_; | |||||||||||||||||||||||||||
| 37 | defined $self->{libs_static} | ||||||||||||||||||||||||||||
| 38 | ? $self->{libs_static} | ||||||||||||||||||||||||||||
| 39 | 2 | ▶ | : $self->libs; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 40 | } | ||||||||||||||||||||||||||||
| 41 | |||||||||||||||||||||||||||||
| 42 | sub bin_dir | ||||||||||||||||||||||||||||
| 43 | 8 | ▶ | { | ||||||||||||||||||||||||||
|
Subroutine
bin_dir: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||||||||||||||||||||
| 44 | 8 | my $dir = shift->{bin_dir}; | |||||||||||||||||||||||||||
| 45 | 8 | ▶ | defined $dir && -d $dir ? ($dir) : (); | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
defined $dir and -d $dir
MC/DC100%2/2
defined $dir and -d $dir
defined $dir
-d $dir
Truth table100%3/3
A and B
A= defined $dirB= -d $dir
| |||||||||||||||||||||||||||||
| 46 | } | ||||||||||||||||||||||||||||
| 47 | |||||||||||||||||||||||||||||
| 48 | 4 | 1; | |||||||||||||||||||||||||||
| 49 | |||||||||||||||||||||||||||||
| 50 | __END__ | ||||||||||||||||||||||||||||