DynamicValidator/Error.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 75.0% 3 / 4 totaltotal 96.6% 29 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« DynamicValidator/Label.pm ↑ Summary
1 package Data::DynamicValidator::Error;
2 # ABSTRACT: Class holds validation error: reason and location
3 11 $Data::DynamicValidator::Error::VERSION = '0.05';
4 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 11 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 11 ▶use overload fallback => 1, q/""/ => sub { $_[0]->to_string };
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
8  
9 7 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
10 7 my ($class, $reason, $path) = @_;
11 7 my $self = {
12 _reason => $reason,
13 _path => $path,
14 };
15 7 bless $self => $class;
16 }
17  
18  
19 1 ▶sub to_string{ $_[0]->{_reason} };
Subroutine to_string: called CC=1 SCAR=0.0
Pod documented
20  
21  
22 3 ▶sub reason { $_[0]->{_reason} };
Subroutine reason: called CC=1 SCAR=0.0
Pod documented
23  
24  
25  
26 1 ▶sub path { $_[0]->{_path} }
Subroutine path: called CC=1 SCAR=0.0
Pod documented
27  
28 11 1;
29  
30 __END__
« DynamicValidator/Label.pm ↑ Summary