File Coverage

blib/lib/Git/Validate/Error/MissingBreak.pm
Criterion Covered Total %
statement 7 7 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 10 100.0


line stmt bran cond sub pod time code
1             package Git::Validate::Error::MissingBreak;
2             {
3             $Git::Validate::Error::MissingBreak::VERSION = '0.001000';
4             }
5              
6 1     1   956 use Moo;
  1         3  
  1         8  
7              
8 1     1   388 use overload q("") => '_stringify';
  1         3  
  1         10  
9              
10             with 'Git::Validate::HasLine';
11              
12             has '+line_number' => ( default => 2 );
13              
14             sub _stringify {
15 2     2   937 sprintf 'line %d should be blank, instead it was "%s"',
16             $_[0]->line_number, $_[0]->line
17             }
18              
19             1;
20