line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Alien::Synthetic; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
924
|
use strict; |
|
2
|
|
|
|
|
20
|
|
|
2
|
|
|
|
|
55
|
|
4
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
58
|
|
5
|
2
|
|
|
2
|
|
8
|
use Test2::API qw( context ); |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
520
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: A mock alien object for testing |
8
|
|
|
|
|
|
|
our $VERSION = '0.14'; # VERSION |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
8
|
100
|
|
8
|
|
8
|
sub _def ($) { my($val) = @_; defined $val ? $val : '' } |
|
8
|
|
|
|
|
18
|
|
12
|
|
|
|
|
|
|
|
13
|
4
|
|
|
4
|
1
|
5122
|
sub cflags { _def shift->{cflags} } |
14
|
4
|
|
|
4
|
1
|
546
|
sub libs { _def shift->{libs} } |
15
|
2
|
100
|
|
2
|
1
|
518
|
sub dynamic_libs { @{ shift->{dynamic_libs} || [] } } |
|
2
|
|
|
|
|
12
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub cflags_static |
18
|
|
|
|
|
|
|
{ |
19
|
2
|
|
|
2
|
1
|
181
|
my($self) = @_; |
20
|
|
|
|
|
|
|
defined $self->{cflags_static} |
21
|
|
|
|
|
|
|
? $self->{cflags_static} |
22
|
2
|
100
|
|
|
|
6
|
: $self->cflags; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub libs_static |
26
|
|
|
|
|
|
|
{ |
27
|
2
|
|
|
2
|
1
|
174
|
my($self) = @_; |
28
|
|
|
|
|
|
|
defined $self->{libs_static} |
29
|
|
|
|
|
|
|
? $self->{libs_static} |
30
|
2
|
100
|
|
|
|
6
|
: $self->libs; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub bin_dir |
34
|
|
|
|
|
|
|
{ |
35
|
3
|
|
|
3
|
1
|
849
|
my $dir = shift->{bin_dir}; |
36
|
3
|
100
|
100
|
|
|
43
|
defined $dir && -d $dir ? ($dir) : (); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |