File Coverage

blib/lib/Message/Passing/Filter/All.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::All;
2 2     2   1661 use Moo;
  2         3  
  2         16  
3 2     2   677 use namespace::clean -except => 'meta';
  2         3  
  2         24  
4              
5             with 'Message::Passing::Role::Filter';
6              
7             sub filter {
8 1     1 1 5 return;
9             }
10              
11              
12             1;
13              
14             =head1 NAME
15              
16             Message::Passing::Filter::All - Filter all messages out.
17              
18             =head1 DESCRIPTION
19              
20             This filter just removes all messages, not passing any through.
21              
22             You would normally never want to use this, but it can be useful for
23             testing occasionally.
24              
25             =head1 METHODS
26              
27             =head2 filter
28              
29             Universally returns undef
30              
31             =head1 SPONSORSHIP
32              
33             This module exists due to the wonderful people at Suretec Systems Ltd.
34             who sponsored its development for its
35             VoIP division called SureVoIP for use with
36             the SureVoIP API -
37            
38              
39             =head1 AUTHOR, COPYRIGHT AND LICENSE
40              
41             See L.
42              
43             =cut