| 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__ | ||