File Coverage

blib/lib/Message/Passing/Filter/Null.pm
Criterion Covered Total %
statement 7 7 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 1 1 100.0
total 11 11 100.0


line stmt bran cond sub pod time code
1             package Message::Passing::Filter::Null;
2 4     4   37176 use Moo;
  4         19643  
  4         29  
3 4     4   4576 use namespace::clean -except => 'meta';
  4         14080  
  4         48  
4              
5             with 'Message::Passing::Role::Filter';
6              
7 3     3 1 11 sub filter { $_[1] }
8              
9              
10             1;
11              
12             =head1 NAME
13              
14             Message::Passing::Filter::Null - Filter no messages out.
15              
16             =head1 DESCRIPTION
17              
18             This filter does nothing, passing all incoming messages through with no changes.
19              
20             You would normally never want to use this, but it can be useful for
21             testing occasionally.
22              
23             =head1 METHODS
24              
25             =head2 filter
26              
27             Returns the message passed to it.
28              
29             =head1 SPONSORSHIP
30              
31             This module exists due to the wonderful people at Suretec Systems Ltd.
32             who sponsored its development for its
33             VoIP division called SureVoIP for use with
34             the SureVoIP API -
35            
36              
37             =head1 AUTHOR, COPYRIGHT AND LICENSE
38              
39             See L.
40              
41             =cut