Rx/CoreType/fail.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 90.0% 18 / 20 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 strict;
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;
4 # ABSTRACT: the Rx //fail type
5 1 $Data::Rx::CoreType::fail::VERSION = '0.200007';
6 1 ▶use parent 'Data::Rx::CoreType';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 sub assert_valid {
9 54 ▶ $_[0]->fail({
Subroutine assert_valid: called CC=1 SCAR=0.0
Pod undocumented
10 error => [ qw(fail) ],
11 message => "matching reached an always-fail check",
12 value => $_[1],
13 });
14 }
15  
16 54 ▶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 »