Debian Codegraph @

t/integration/stamps/lib/App/Yath/Plugin/TestPlugin.pm

raw
1 package App::Yath::Plugin::TestPlugin;
2 use strict;
3 use warnings;
4
5 use Test2::Harness::Util::JSON qw/encode_json/;
6
7 use parent 'App::Yath::Plugin';
8
9 sub handle_event {
10 my $self = shift;
11 my ($event) = @_;
12
13 die "Event did not have a stamp!" unless $event->stamp;
14 }
15
16 1;