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 13     13   68 #line 1
  13         25  
  13         417  
2 13     13   66 use strict;
  13         24  
  13         572  
3             use warnings;
4              
5             package Test::Deep::RegexpVersion;
6 13     13   71  
  13         207  
  13         1208  
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;