File Coverage

blib/lib/App/PerlWatcher/Level.pm
Criterion Covered Total %
statement 17 17 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 24 24 100.0


line stmt bran cond sub pod time code
1             package App::PerlWatcher::Level;
2             {
3             $App::PerlWatcher::Level::VERSION = '0.20';
4             }
5             # ABSTRACT: Represents severity with corresponding metrics e.g. level_info < level_alert
6              
7 13     13   159 use 5.12.0;
  13         63  
  13         518  
8 13     13   69 use strict;
  13         111  
  13         670  
9 13     13   91 use warnings;
  13         40  
  13         381  
10              
11 13     13   7610 use Moo;
  13         146901  
  13         187  
12              
13             use overload fallback => 1,
14 497     497   4644 '0+' => sub { $_[0]->value },
15 13     13   30785 '""' => sub { $_[0]->description };
  13     78   2655  
  13         201  
  78         17273  
16              
17              
18             has 'value' => ( is => 'ro', required => 1);
19              
20              
21             has 'description' => ( is => 'ro', required => 1);
22              
23             1;
24              
25             __END__