Helm/Log/Channel.pm untested

filter: Statementstmt 0.0% 0 / 36 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 14 Podpod 0.0% 0 / 10 totaltotal 0.0% 0 / 60 CC 1 SCAR 6.9
CC
1
Cov
0%
initialize
2.0
finalize
2.0
parallelize
2.0
CRAP 2.0
1 package Helm::Log::Channel;
2 use strict;
3 use warnings;
4 use Moose;
5 use namespace::autoclean;
6  
7 has uri => (is => 'ro', writer => '_uri', isa => 'URI');
8 has task => (is => 'ro', writer => '_task', isa => 'Str');
9 has current_server => (is => 'ro', writer => '_current_server', isa => 'Helm::Server|Undef');
10  
11 sub initialize {
12 my ($self, $helm) = @_;
13 die "You must implement the initialize() method in your child class " . ref($self) . "!";
14 }
15  
16 sub finalize {
17 my ($self, $helm) = @_;
18 die "You must implement the finalize() method in your child class " . ref($self) . "!";
19 }
20  
21 sub parallelize {
22 my ($self, $helm) = @_;
23 die "You must implement the parallelize() method in your child class " . ref($self) . "!";
24 }
25  
26 sub start_server {
27 my ($self, $server) = @_;
28 $self->_current_server($server);
29 }
30  
31 sub end_server {
32 my ($self, $server) = @_;
33 $self->_current_server(undef);
34 }
35  
36 sub debug {
37 my ($self, $msg) = @_;
38 die "You must implement the debug() method in your child class " . ref($self) . "!";
39 }
40  
41 sub info {
42 my ($self, $msg) = @_;
43 die "You must implement the info() method in your child class " . ref($self) . "!";
44 }
45  
46 sub warn {
47 my ($self, $msg) = @_;
48 die "You must implement the warn() method in your child class " . ref($self) . "!";
49 }
50  
51 sub error {
52 my ($self, $msg) = @_;
53 die "You must implement the error() method in your child class " . ref($self) . "!";
54 }
55  
56 sub forked {
57 my ($self, $type) = @_;
58 die "You must implement the forked() method in your child class " . ref($self) . "!";
59 }
60  
61 __PACKAGE__->meta->make_immutable;
62  
63 1;