Saftpresse/Plugin/Postfix/Service.pm

filter: Statementstmt 55.5% 5 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod 0.0% 0 / 1 totaltotal 50.0% 6 / 12 SCAR 0.8
CC
1
Cov
56%
process_service
2.0
BEGIN
1.0
CRAP 1.1
« Saftpresse/Input.pm ↑ Summary Saftpresse/CountersOutput.pm »
1 package Log::Saftpresse::Plugin::Postfix::Service;
2  
3 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # ABSTRACT: plugin to parse postfix service
6 1 our $VERSION = '1.5'; # VERSION
7  
8 sub process_service {
9 0 ▶ my ( $self, $stash ) = @_;
Subroutine process_service: not called CC=1 SCAR=6.9
Pod undocumented
10 0 my $program = $stash->{'program'};
11  
12 0 ( $stash->{'service'} ) = $stash->{'program'} =~ /([^\/]+)$/;
13  
14 0 return;
15 }
16  
17 1 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.5
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
« Saftpresse/Input.pm ↑ Summary Saftpresse/CountersOutput.pm »