File Coverage

/home/pjcj/g/Test-Smoke/perl-current-gcov/ext/File-Glob/t/rt114984.t
Criterion Covered Total %
statement 34 34 100.0
branch 1 2 50.0
condition n/a
subroutine 8 8 100.0
total 43 44 97.7


line stmt bran cond sub time code
1 1     1 5 use strict;
  1       2  
  1       42  
2 1     1 6 use warnings;
  1       2  
  1       39  
3 1     1 18 use v5.16.0;
  1       4  
  1       107  
4 1     1 614 use File::Temp 'tempdir';
  1       22564  
  1       111  
5 1     1 234 use File::Spec::Functions;
  1       1092  
  1       105  
6 1     1 453 use Test::More;
  1       21723  
  1       13  
7            
8           BEGIN {
9 1 50   1 2566 plan skip_all => "Home-grown glob does not do character classes on $^O" if $^O eq 'VMS';
10           }
11            
12 1       132828 plan tests => 1;
13            
14 1       232 my @md = (1..305);
15 1       18 my @mp = (1000..1205);
16            
17 1       8 my $path = tempdir uc cleanup => 1;
18            
19 1       566 foreach (@md) {
20 305       9676 open(my $f, ">", catfile $path, "md_$_.dat");
21 305       2057 close $f;
22           }
23            
24 1       6 foreach (@mp) {
25 206       6652 open(my $f, ">", catfile $path, "mp_$_.dat");
26 206       1293 close $f;
27           }
28 1       3692 my @b = glob(qq{$path/mp_[0123456789]*.dat
29           $path/md_[0123456789]*.dat});
30 1       44 is scalar(@b), @md+@mp,
31           'File::Glob extends the stack when returning a long list';