Exobrain/Agent/Action/Ping.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Exobrain::Agent::Action::Ping;
2 use Moose;
3 use Method::Signatures;
4  
5 with 'Exobrain::Agent::Run';
6  
7 # ABSTRACT: Automatically respond to any 'ping' tag sent to us.
8 our $VERSION = '1.08'; # VERSION
9  
10 method run() {
11 $self->exobrain->watch_loop(
12 class => 'Measurement::Social',
13 filter => sub { $_->to_me and grep { /^ping$/ } @{ $_->tags } },
14 then => sub { $_->respond("Ack (via exobrain)"); },
15 );
16 }
17  
18 1;
19  
20 __END__