lib/Code/TidyAll/Result.pm

filter: Statementstmt 100% 29 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 1 / 1 totaltotal 100% 38 / 38 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Code/TidyAll/Plugin/SortLines.pm ↑ Summary lib/Code/TidyAll/Role/Tempdir.pm »
1 package Code::TidyAll::Result;
2  
3 58 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 58 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 58 ▶use Specio::Declare;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 58 ▶use Specio::Library::Builtins;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 58 ▶use Specio::Library::Path::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 58 ▶use Specio::Library::String;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 58 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 58 our $VERSION = '0.85';
14  
15 58 has error => (
16 is => 'ro',
17 isa => t('NonEmptyStr'),
18 );
19  
20 58 has new_contents => (
21 is => 'ro',
22 isa => t('Str'),
23 );
24  
25 58 has orig_contents => (
26 is => 'ro',
27 isa => t('Str'),
28 );
29  
30 58 has path => (
31 is => 'ro',
32 isa => t('Path'),
33 );
34  
35 58 has state => (
36 is => 'ro',
37 isa => enum( values => [qw( cached checked error no_match tidied)] ),
38 );
39  
40 113 ▶sub ok { return $_[0]->state ne 'error' }
Subroutine ok: called CC=1 SCAR=0.0
Pod documented
41  
42 58 1;
43  
44 # ABSTRACT: Result returned from processing a file/source
45  
46 __END__
« blib/lib/Code/TidyAll/Plugin/SortLines.pm ↑ Summary lib/Code/TidyAll/Role/Tempdir.pm »