auto/share/dist/Nes/examples/tutorial/lucky.pl untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond 0.0% 0 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2  
3 use Nes;
4 my $nes = Nes::Singleton->new('./lucky.nhtml');
5 my $q = $nes->{'query'}->{'q'};
6 my $min = $q->{'lucky_param_1'} || 0;
7 my $max = $q->{'lucky_param_2'} || 9;
8  
9 my %nes_tags;
10 $nes_tags{'number'} = $min + int(rand($max+1-$min));
11  
12 $nes->out(%nes_tags);
13  
14 1;