File Coverage

inc/Test/Deep/RegexpVersion.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1 1     1   9 #line 1
  1         2  
  1         56  
2 1     1   10 use strict;
  1         3  
  1         62  
3             use warnings;
4              
5             package Test::Deep::RegexpVersion;
6 1     1   7  
  1         3  
  1         150  
7             use vars qw( $OldStyle );
8              
9             # Older versions of Perl treated Regexp refs as opaque scalars blessed
10             # into the "Regexp" class. Several bits of code need this so we
11             # centralise the test for that kind of version.
12             $OldStyle = ($] < 5.011);
13              
14             1;