Passing/Filter/Null.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 13 / 13 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
filter
1.0
CRAP 1.0
« Passing/Filter/Mangle.pm ↑ Summary Passing/Input/Null.pm »
1 package Message::Passing::Filter::Null;
2 4 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 4 with 'Message::Passing::Role::Filter';
6  
7 3 ▶sub filter { $_[1] }
Subroutine filter: called CC=1 SCAR=0.0
Pod documented
8  
9  
10 4 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 <http://www.suretecsystems.com/> who sponsored its development for its
33 VoIP division called SureVoIP <http://www.surevoip.co.uk/> for use with
34 the SureVoIP API -
35 <http://www.surevoip.co.uk/support/wiki/api_documentation>
36  
37 =head1 AUTHOR, COPYRIGHT AND LICENSE
38  
39 See L<Message::Passing>.
40  
41 =cut
« Passing/Filter/Mangle.pm ↑ Summary Passing/Input/Null.pm »