| 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 | 16 | 16 | 76 | #line 1 | |||
| 16 | 26 | ||||||
| 16 | 451 | ||||||
| 2 | 16 | 16 | 79 | use strict; | |||
| 16 | 29 | ||||||
| 16 | 511 | ||||||
| 3 | use warnings; | ||||||
| 4 | |||||||
| 5 | package Test::Deep::RegexpVersion; | ||||||
| 6 | 16 | 16 | 72 | ||||
| 16 | 32 | ||||||
| 16 | 1017 | ||||||
| 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; |