lib/OPM/Parser/Types.pm

filter: Statementstmt 96.0% 24 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod n/a totaltotal 93.9% 31 / 33 CC 1 SCAR 1.2
CC
1
Cov
96%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« script/de_opm.pl ↑ Summary
1 package OPM::Parser::Types;
2  
3 # ABSTRACT: types for OPM::Parser
4  
5 9 ▶use v5.24;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 9 our $VERSION = '1.06'; # VERSION
11  
12 use Type::Library
13 9 ▶ -base,
Subroutine BEGIN: called CC=1 SCAR=0.0
14 9 ;
15  
16 9 ▶use Type::Utils -all;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 9 ▶use Types::Standard -types;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 9 Type::Utils::extends('Types::Standard');
20  
21 declare VersionString =>
22 as Str,
23 8 ▶ where {
Subroutine __ANON__: called CC=1 SCAR=0.0
24 8 $_ =~ m{ \A (?:[0-9]+) (?:\.[0-9]+){0,2} (?:_\d+)? \z }xms
25 9 };
26  
27 declare FrameworkVersionString =>
28 as Str,
29 0 ▶ where {
Subroutine __ANON__: not called CC=1 SCAR=6.9
30 0 $_ =~ m{ \A (?: (?:x|[0-9]+x?) \. ){1,2} (?: x | [0-9]+x? ) \z }xms
31 9 };
32  
33 9 declare XMLTree =>
34 as InstanceOf['XML::LibXML::Document'];
35  
36  
37 9 1;
38  
39 __END__
« script/de_opm.pl ↑ Summary