Events/Listeners/Say.pm

filter: Statementstmt 71.4% 5 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod 100% 1 / 1 totaltotal 70.0% 7 / 10 CC 1 SCAR 4.1
CC
1
Cov
71%
handler
2.0
BEGIN
1.0
CRAP 1.5
« Events/AsyncListener.pm ↑ Summary Events/Dispatcher.pm »
1 package Mojolicious::Plugin::Events::Listeners::Say;
2 1 ▶use Mojo::Base 'Mojolicious::Plugin::Events::Listener';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 1 has event => 'say';
5  
6 =head2 handler
7  
8 Say $what
9  
10 =cut
11  
12 0 ▶sub handler {
Subroutine handler: not called CC=1 SCAR=6.9
Pod documented
13 0 my ($self, $what) = @_;
14  
15 0 say $what;
16 }
17  
18 1 1;
« Events/AsyncListener.pm ↑ Summary Events/Dispatcher.pm »