File Coverage

blib/lib/Log/Saftpresse/Plugin/Postfix/Service.pm
Criterion Covered Total %
statement 3 7 42.8
branch n/a
condition n/a
subroutine 1 2 50.0
pod 0 1 0.0
total 4 10 40.0


line stmt bran cond sub pod time code
1             package Log::Saftpresse::Plugin::Postfix::Service;
2              
3 1     1   874 use Moose::Role;
  1         2  
  1         6  
4              
5             # ABSTRACT: plugin to parse postfix service
6             our $VERSION = '1.4'; # VERSION
7              
8             sub process_service {
9 0     0 0   my ( $self, $stash ) = @_;
10 0           my $program = $stash->{'program'};
11              
12 0           ( $stash->{'service'} ) = $stash->{'program'} =~ /([^\/]+)$/;
13              
14 0           return;
15             }
16              
17             1;
18              
19             __END__
20              
21             =pod
22              
23             =encoding UTF-8
24              
25             =head1 NAME
26              
27             Log::Saftpresse::Plugin::Postfix::Service - plugin to parse postfix service
28              
29             =head1 VERSION
30              
31             version 1.4
32              
33             =head1 AUTHOR
34              
35             Markus Benning <ich@markusbenning.de>
36              
37             =head1 COPYRIGHT AND LICENSE
38              
39             This software is Copyright (c) 1998 by James S. Seymour, 2015 by Markus Benning.
40              
41             This is free software, licensed under:
42              
43             The GNU General Public License, Version 2, June 1991
44              
45             =cut