Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add author side tests

  • Loading branch information...
commit a61cc42fc2c7cf913e4b10a95923e40ec6e5e809 1 parent cfe8040
Tomas Doran bobtfish authored
14 Makefile.PL
@@ -15,5 +15,19 @@ requires 'Log::Stash' => '0.001';
15 15
16 16 test_requires 'Test::More' => '0.88';
17 17
  18 +author_requires 'Test::Pod' => '1.14';
  19 +author_requires 'Test::NoTabs';
  20 +author_requires 'Test::Pod::Coverage' => '1.04';
  21 +author_requires 'Pod::Coverage' => '0.19';
  22 +author_requires 'Pod::Coverage::TrustPod';
  23 +author_requires 'Test::Spelling';
  24 +
  25 +author_tests 't/author';
  26 +
  27 +if ($Module::Install::AUTHOR) {
  28 + system("pod2text lib/Log/Stash/Output/ElasticSearch.pm > README")
  29 + and die $!;
  30 +}
  31 +
18 32 WriteAll;
19 33
16 README
... ... @@ -0,0 +1,16 @@
  1 +NAME
  2 + Log::Stash::Output::ElasticSearch - output logstash messages into
  3 + ElasticSearch.
  4 +
  5 +DESCRIPTION
  6 +SEE ALSO
  7 + Log::Stash
  8 + <http://logstash.net>
  9 +
  10 +AUTHOR
  11 + Tomas (t0m) Doran <bobtfish@bobtfish.net>
  12 +
  13 +COPYRIGHT
  14 +LICENSE
  15 + XXX - TODO
  16 +
8 lib/Log/Stash/Output/ElasticSearch.pm
@@ -135,16 +135,8 @@ Log::Stash::Output::ElasticSearch - output logstash messages into ElasticSearch.
135 135
136 136 Tomas (t0m) Doran <bobtfish@bobtfish.net>
137 137
138   -=head1 SPONSORSHIP
139   -
140   -This module exists due to the wonderful people at
141   -L<Suretec Systems|http://www.suretecsystems.com/> who sponsored it's
142   -development.
143   -
144 138 =head1 COPYRIGHT
145 139
146   -Copyright Suretec Systems 2012.
147   -
148 140 =head1 LICENSE
149 141
150 142 XXX - TODO
10 t/author/notabs.t
... ... @@ -0,0 +1,10 @@
  1 +use strict;
  2 +use warnings;
  3 +
  4 +use File::Spec;
  5 +use FindBin ();
  6 +use Test::More;
  7 +use Test::NoTabs;
  8 +
  9 +all_perl_files_ok(qw/lib/);
  10 +
8 t/author/pod.t
... ... @@ -0,0 +1,8 @@
  1 +use strict;
  2 +use warnings;
  3 +use Test::More;
  4 +
  5 +use Test::Pod 1.14;
  6 +
  7 +all_pod_files_ok();
  8 +
20 t/author/podcoverage.t
... ... @@ -0,0 +1,20 @@
  1 +use strict;
  2 +use warnings;
  3 +use Test::More;
  4 +
  5 +use Pod::Coverage 0.19;
  6 +use Test::Pod::Coverage 1.04;
  7 +
  8 +my @modules = all_modules;
  9 +our @private = ( 'BUILD' );
  10 +foreach my $module (@modules) {
  11 + local @private = (@private, 'expand_class_name', 'make') if $module =~ /^Log::Stash::DSL::Factory$/;
  12 +
  13 + pod_coverage_ok($module, {
  14 + also_private => \@private,
  15 + coverage_class => 'Pod::Coverage::TrustPod',
  16 + });
  17 +}
  18 +
  19 +done_testing;
  20 +
29 t/author/spelling.t
... ... @@ -0,0 +1,29 @@
  1 +use strict;
  2 +use warnings;
  3 +use Test::More;
  4 +use Test::Spelling;
  5 +
  6 +add_stopwords(qw(
  7 + Starman
  8 + ZeroMQ
  9 + API
  10 + Affero
  11 + FCGI
  12 + JSON
  13 + Tomas
  14 + Doran
  15 + t0m
  16 + Jorden
  17 + Logstash
  18 + Sissel
  19 + Suretec
  20 + TODO
  21 + STDIN
  22 + STDOUT
  23 + STDERR
  24 + logstash
  25 +));
  26 +set_spell_cmd('aspell list -l en');
  27 +all_pod_files_spelling_ok();
  28 +
  29 +done_testing();

0 comments on commit a61cc42

Please sign in to comment.
Something went wrong with that request. Please try again.