t/test22-strevala.p

filter: Statementstmt 100% 5 / 5 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 5 / 5 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« t/test21-streval3.p ↑ Summary t/test23-strevall.p »
1 # test merging of anon subs from evals
2  
3 16 my $code = qq{ sub { print "sub called\\n" } $Devel::NYTProf::StrEvalTestPad};
4  
5 # call once from particular line
6 16 eval($code)->();
7  
8 # call twice from the same line
9 16 eval($code)->(); eval($code)->();
10  
11 # called from inside a string eval
12 16 eval q{
13 eval($code)->(); eval($code)->();
14 };
« t/test21-streval3.p ↑ Summary t/test23-strevall.p »