Rx/CoreType/fail.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 88.8% 16 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Rx/CommonType/EasyNew.pm ↑ Summary Rx/CoreType.pm »
1 1 ▶use v5.12.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 package Data::Rx::CoreType::fail 0.200008;
4 # ABSTRACT: the Rx //fail type
5  
6 1 ▶use parent 'Data::Rx::CoreType';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 54 ▶sub assert_valid {
Subroutine assert_valid: called CC=1 SCAR=0.0
Pod undocumented
9 54 $_[0]->fail({
10 error => [ qw(fail) ],
11 message => "matching reached an always-fail check",
12 value => $_[1],
13 });
14 }
15  
16 70 ▶sub subname { 'fail' }
Subroutine subname: called CC=1 SCAR=0.0
Pod undocumented
17  
18 1 1;
19  
20 __END__
« Rx/CommonType/EasyNew.pm ↑ Summary Rx/CoreType.pm »