File Coverage

blib/lib/Message/Passing/Output/Null.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 1 1 100.0
total 10 10 100.0


line stmt bran cond sub pod time code
1             package Message::Passing::Output::Null;
2 2     2   106157 use Moo;
  2         10854  
  2         19  
3 2     2   2539 use namespace::clean -except => 'meta';
  2         9674  
  2         33  
4              
5             with 'Message::Passing::Role::Output';
6              
7       1 1   sub consume {}
8              
9              
10             1;
11              
12             =head1 NAME
13              
14             Message::Passing::Output::Null - /dev/null for messages
15              
16             =head1 SYNOPSIS
17              
18             message-pass --input STDIN --output Null
19             {"foo": "bar"}
20              
21             # Note noting is printed...
22              
23             =head1 DESCRIPTION
24              
25             Throws away all messages passed to it.
26              
27             =head1 METHODS
28              
29             =head2 consume
30              
31             Takes a message and discards it silently.
32              
33             =head1 SEE ALSO
34              
35             L<Message::Passing>
36              
37             =head1 SPONSORSHIP
38              
39             This module exists due to the wonderful people at Suretec Systems Ltd.
40             <http://www.suretecsystems.com/> who sponsored its development for its
41             VoIP division called SureVoIP <http://www.surevoip.co.uk/> for use with
42             the SureVoIP API -
43             <http://www.surevoip.co.uk/support/wiki/api_documentation>
44              
45             =head1 AUTHOR, COPYRIGHT AND LICENSE
46              
47             See L<Message::Passing>.
48              
49             =cut