ChangeNotify/Event.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« ChangeNotify/Watcher/KQueue.pm ↑ Summary
1 package File::ChangeNotify::Event;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 our $VERSION = '0.31';
8  
9 3 ▶use Types::Standard qw( ArrayRef HashRef Str );
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use Type::Utils qw( enum );
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 3 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 3 has path => (
15 is => 'ro',
16 isa => Str,
17 required => 1,
18 );
19  
20 3 has type => (
21 is => 'ro',
22 isa => enum( [qw( create modify delete unknown )] ),
23 required => 1,
24 );
25  
26 3 has attributes => (
27 is => 'ro',
28 isa => ArrayRef [HashRef],
29 predicate => 'has_attributes',
30 );
31  
32 3 has content => (
33 is => 'ro',
34 isa => ArrayRef,
35 predicate => 'has_content',
36 );
37  
38 3 __PACKAGE__->meta->make_immutable;
39  
40 3 1;
41  
42 # ABSTRACT: Class for file change events
43  
44 __END__
« ChangeNotify/Watcher/KQueue.pm ↑ Summary