Alert/Input/Dummy.pm

filter: Statementstmt 62.5% 10 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 28.5% 2 / 7 Podpod 0.0% 0 / 5 totaltotal 42.8% 12 / 28 CC 1 SCAR 5.4
CC
1
Cov
62%
open
2.0
opened
2.0
get
2.0
CRAP 1.7
« Alert/Output/Email.pm ↑ Summary Alert/Output/Null.pm »
1 package Transform::Alert::Input::Dummy;
2  
3 2 our $VERSION = '1.00'; # VERSION
4 # ABSTRACT: Transform alerts from random messages
5  
6 2 ▶use sanity;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 with 'Transform::Alert::Input';
10  
11 2 my @random_nonsense = (
12 'I am a meat popsicle.',
13 'I am a cheese sandwich.',
14 'I am an atomic playboy.',
15 'Ich bin ein Berliner!',
16 );
17  
18 0 ▶sub open { 1 }
Subroutine open: not called CC=1 SCAR=6.9
Pod undocumented
19 0 ▶sub opened { 1 }
Subroutine opened: not called CC=1 SCAR=6.9
Pod undocumented
20 0 ▶sub get {
Subroutine get: not called CC=1 SCAR=6.9
Pod undocumented
21 0 my $msg = $random_nonsense[int rand(@random_nonsense)];
22 0 return (\$msg, { item => $msg });
23 }
24 0 ▶sub eof { not int rand(5) }
Subroutine eof: not called CC=1 SCAR=6.9
Pod undocumented
25 0 ▶sub close { 1 }
Subroutine close: not called CC=1 SCAR=6.9
Pod undocumented
26  
27 2 42;
28  
29 __END__
« Alert/Output/Email.pm ↑ Summary Alert/Output/Null.pm »