[SCM] libmessage-passing-perl Debian packaging branch, master, updated. debian/0.111-3-14-g44f6e88

Tomas Doran bobtfish at bobtfish.net
Mon May 6 11:57:43 UTC 2013


The following commit has been merged in the master branch:
commit 16097b0251656bfade1698465b1f23076c6c21d9
Author: Tomas Doran <bobtfish at bobtfish.net>
Date:   Mon Sep 3 22:03:52 2012 +0100

    Start testing this

diff --git a/t/filter_tologstash.t b/t/filter_tologstash.t
new file mode 100644
index 0000000..1fea4dc
--- /dev/null
+++ b/t/filter_tologstash.t
@@ -0,0 +1,24 @@
+use strict;
+use warnings;
+use Test::More;
+
+use_ok 'Message::Passing::Filter::ToLogStash';
+use_ok 'Message::Passing::Output::Test';
+
+my @data = (
+    [ 'Simple empty hash', {}, { '@fields' => {}, '@tags' => [] } ],
+);
+
+foreach my $datum (@data) {
+    my ($name, $input, $exp) = @$datum;
+    my $out = Message::Passing::Output::Test->new;
+    my $in = Message::Passing::Filter::ToLogStash->new(
+        output_to => $out,
+    );
+    $in->consume($input);
+    my ($output) = $out->messages;
+    is_deeply $output, $exp, $name;
+}
+
+done_testing;
+

-- 
libmessage-passing-perl Debian packaging



More information about the Pkg-perl-cvs-commits mailing list