Permalink
Browse files

update dist to my current standards

  • Loading branch information...
patch committed Mar 25, 2012
1 parent 6b50653 commit d28119ce74ead78b0a0949543d40309bcb6db243
Showing with 36 additions and 31 deletions.
  1. +1 −2 Build.PL
  2. +4 −3 Changes
  3. +3 −0 INSTALL
  4. +1 −0 MANIFEST
  5. +10 −9 README
  6. +14 −11 lib/Test/BSON.pm
  7. +0 −1 t/00-load.t
  8. +1 −2 t/bson.t
  9. +0 −1 xt/author/kwalitee.t
  10. +1 −1 xt/author/pod-coverage.t
  11. +1 −1 xt/author/pod.t
View
@@ -1,5 +1,5 @@
use 5.006;
use strict;
use warnings;
use Module::Build;
my $builder = Module::Build->new(
@@ -19,7 +19,6 @@ my $builder = Module::Build->new(
'parent' => 0,
'BSON' => 0,
'Test::Differences' => 0.47,
'Test::Simple' => 0.62,
},
meta_merge => {
resources => {
View
@@ -1,7 +1,8 @@
# Revision history for Perl module Test::BSON
---
version: 0.01
date: XXX
changes:
- First release
- Forked from Test::JSYNC, which was previously forked from
Curtis "Ovid" Poe's Test::JSON
- First release
- Forked from Test::JSYNC, which was previously forked from
Curtis "Ovid" Poe's Test::JSON
View
@@ -6,6 +6,9 @@ cpanm Test::BSON
# install via CPAN shell
cpan Test::BSON
# install via ActivePerl
ppm install Test::BSON
# install manually
perl Build.PL
./Build
View
@@ -12,3 +12,4 @@ t/bson.t
xt/author/kwalitee.t
xt/author/pod-coverage.t
xt/author/pod.t
xt/author/spelling.t
View
19 README
@@ -7,8 +7,8 @@ VERSION
SYNOPSIS
use Test::BSON;
bson_ok $bson, 'bson is well formed';
bson_is $bson, $expected_bson, 'bson matches what we expected';
bson_ok $bson, 'BSON is valid';
bson_is $bson, $expected_bson, 'BSON matches what we expected';
DESCRIPTION
BSON is a binary-encoded extension of JSON. Test::BSON makes it easy to
@@ -17,9 +17,9 @@ DESCRIPTION
EXPORTED TESTS
bson_ok
Test passes if the string passed is a valid BSON document.
Test passes if the BSON document is valid.
bson_ok $bson, 'bson is well formed';
bson_ok $bson, 'BSON is valid';
"is_valid_bson" is provided as an alternative to "bson_ok" using the
same naming convention as Test::JSON but is not exported by default.
@@ -28,12 +28,12 @@ EXPORTED TESTS
Test passes if the two BSON documents are valid and evaluate to the same
data structure.
bson_is $bson, $expected_bson, 'bson matches what we expected';
bson_is $bson, $expected_bson, 'BSON matches what we expected';
Test::Differences is used to provide easy diagnostics of why the BSON
documents did not match. For example:
Failed test 'bson matches what we expected'
Failed test 'BSON matches what we expected'
in t/bson.t at line 10.
+----+----------------+----------------+
| Elt|Got |Expected |
@@ -57,12 +57,13 @@ AUTHOR
Nick Patch <patch@cpan.org>
ACKNOWLEDGEMENTS
This module was forked from Test::JSON by Curtis "Ovid" Poe.
This module was forked from Test::JSYNC, which was forked from
Test::JSON authored by Curtis “Ovid” Poe.
COPYRIGHT & LICENSE
Copyright 2011-2012 Nick Patch
© 20112012 Nick Patch
Copyright 2005-2007 Curtis "Ovid" Poe. All rights reserved.
© 20052007 Curtis Ovid Poe
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
View
@@ -64,6 +64,8 @@ sub bson_is ($$;$) {
__END__
=encoding utf8
=head1 NAME
Test::BSON - Test BSON documents
@@ -78,8 +80,8 @@ This document describes Test::BSON version 0.01.
use Test::BSON;
bson_ok $bson, 'bson is well formed';
bson_is $bson, $expected_bson, 'bson matches what we expected';
bson_ok $bson, 'BSON is valid';
bson_is $bson, $expected_bson, 'BSON matches what we expected';
=head1 DESCRIPTION
@@ -91,9 +93,9 @@ expected.
=head2 bson_ok
Test passes if the string passed is a valid BSON document.
Test passes if the BSON document is valid.
bson_ok $bson, 'bson is well formed';
bson_ok $bson, 'BSON is valid';
C<is_valid_bson> is provided as an alternative to C<bson_ok> using the same
naming convention as L<Test::JSON> but is not exported by default.
@@ -103,12 +105,12 @@ naming convention as L<Test::JSON> but is not exported by default.
Test passes if the two BSON documents are valid and evaluate to the same data
structure.
bson_is $bson, $expected_bson, 'bson matches what we expected';
bson_is $bson, $expected_bson, 'BSON matches what we expected';
L<Test::Differences> is used to provide easy diagnostics of why the BSON
documents did not match. For example:
Failed test 'bson matches what we expected'
Failed test 'BSON matches what we expected'
in t/bson.t at line 10.
+----+----------------+----------------+
| Elt|Got |Expected |
@@ -136,15 +138,16 @@ Nick Patch <patch@cpan.org>
=head1 ACKNOWLEDGEMENTS
This module was forked from L<Test::JSON> by Curtis "Ovid" Poe.
This module was forked from L<Test::JSYNC>, which was forked from
L<Test::JSON> authored by Curtis “Ovid” Poe.
=head1 COPYRIGHT & LICENSE
Copyright 2011-2012 Nick Patch
© 20112012 Nick Patch
Copyright 2005-2007 Curtis "Ovid" Poe. All rights reserved.
© 20052007 Curtis Ovid Poe
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
=cut
View
@@ -1,4 +1,3 @@
#!perl
use strict;
use warnings;
use Test::More tests => 1;
View
@@ -1,4 +1,3 @@
#!perl
use strict;
use warnings;
use Test::Tester;
@@ -53,7 +52,7 @@ check_test(
$name = 'Different BSON should fail';
check_test(
sub { bson_is $valid, $different, $name },
sub { bson_is $different, $valid, $name },
{
ok => 0,
name => $name,
View
@@ -1,4 +1,3 @@
#!perl
use strict;
use warnings;
use Test::More;
View
@@ -1,8 +1,8 @@
#!perl
use strict;
use warnings;
use Test::More;
eval 'use Test::Pod::Coverage 1.00';
plan skip_all => 'Test::Pod::Coverage 1.00 not installed; skipping' if $@;
all_pod_coverage_ok({ trustme => [qw< is_valid_bson is_bson >] });
View
@@ -1,8 +1,8 @@
#!perl
use strict;
use warnings;
use Test::More;
eval 'use Test::Pod 1.00';
plan skip_all => 'Test::Pod 1.00 not installed; skipping' if $@;
all_pod_files_ok();

0 comments on commit d28119c

Please sign in to comment.