line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mason::t::Compilation; |
2
|
|
|
|
|
|
|
$Mason::t::Compilation::VERSION = '2.23'; |
3
|
1
|
|
|
1
|
|
737
|
use Test::Class::Most parent => 'Mason::Test::Class'; |
|
1
|
|
|
|
|
28077
|
|
|
1
|
|
|
|
|
7
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub test_pure_perl : Tests { |
6
|
1
|
|
|
1
|
0
|
661
|
my $self = shift; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
my $std = |
9
|
1
|
|
|
5
|
|
5
|
sub { my $num = shift; sprintf( 'method main () { my $foo = %s; print $foo; }', $num ) }; |
|
5
|
|
|
|
|
7
|
|
|
5
|
|
|
|
|
51
|
|
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
|
|
5
|
$self->add_comp( path => '/print1.pl', src => $std->(53) ); |
12
|
1
|
|
|
|
|
4
|
$self->test_comp( |
13
|
|
|
|
|
|
|
path => '/top1.mp', |
14
|
|
|
|
|
|
|
src => 'method main () { $m->comp("/print1.pl") }', |
15
|
|
|
|
|
|
|
expect => $std->(53), |
16
|
|
|
|
|
|
|
); |
17
|
|
|
|
|
|
|
|
18
|
1
|
|
|
|
|
13
|
$self->setup_interp( pure_perl_extensions => ['.pl'] ); |
19
|
1
|
|
|
|
|
39
|
$self->add_comp( path => '/print2.pl', src => $std->(54) ); |
20
|
1
|
|
|
|
|
5
|
$self->test_comp( path => '/top2.mp', src => '<& print2.pl &>', expect => '54' ); |
21
|
|
|
|
|
|
|
|
22
|
1
|
|
|
|
|
7
|
$self->setup_interp( pure_perl_extensions => [] ); |
23
|
1
|
|
|
|
|
36
|
$self->add_comp( path => '/print3.pl', src => $std->(55) ); |
24
|
1
|
|
|
|
|
4
|
$self->test_comp( |
25
|
|
|
|
|
|
|
path => '/top3.mp', |
26
|
|
|
|
|
|
|
src => '<& print3.pl &>', |
27
|
|
|
|
|
|
|
expect => $std->(55), |
28
|
|
|
|
|
|
|
); |
29
|
1
|
|
|
1
|
|
196
|
} |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
5
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |