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