Progress/Broker.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Regexp::Log::Progress::Broker;
2  
3 use strict;
4 use warnings;
5  
6 our $VERSION = '0.01';
7  
8 use base 'Regexp::Log';
9 use vars qw( %DEFAULT %FORMAT %REGEXP );
10  
11 %DEFAULT = (
12 format => '%datetime%pid%tid%level%process%facility%message',
13 capture => [qw( datetime pid tid level process facility message msgnum )],
14 );
15  
16 %FORMAT = (
17 ':default' => '%datetime%pid%tid%level%process%facility%message',
18 );
19  
20 %REGEXP = (
21 '%datetime' => '\[(?#=datetime)\d{2}/\d{2}/\d{2}@\d{2}:\d{2}:\d{2}\.\d+.\d{4}(?#!datetime)\]\s+',
22 '%pid' => 'P-(?#=pid)[\d|-]+(?#!pid)\s+',
23 '%tid' => 'T-(?#=tid)[\w|\d|-]+(?#!tid)\s+',
24 '%level' => '(?#=level)[I|W|F|\d+](?#!level)\s+',
25 '%process' => '(?#=process)[\w|-]+(?#!process)\s+',
26 '%facility' => '(?#=facility)[\w|-]+(?#!facility)\s+',
27 '%message' => '(?#=message).*(?#!message)',
28 '%msgnum' => '\((?#=msgnum)\d+(?#!msgnum)\)',
29 );
30  
31 1;
32  
33 __END__