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 2     2   9 #line 1
  2         3  
  2         51  
2 2     2   8 use strict;
  2         4  
  2         58  
3             use warnings;
4              
5             package Test::Deep::RegexpVersion;
6 2     2   9  
  2         2  
  2         105  
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;