Ensure a Changes file looks exactly like it would if it was machine generated.
Perl Perl 6
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
corpus
lib/Test/CPAN/Changes
maint
misc
t
util
.gitignore
.mailmap
.perltidyrc
.travis.yml
CONTRIBUTING.pod
Changes
INSTALL.SKIP
LICENSE
Makefile.PL
README.mkdn
dist.ini
dist.ini.meta
perlcritic.rc
weaver.ini

README.mkdn

NAME

Test::CPAN::Changes::ReallyStrict - Ensure a Changes file looks exactly like it would if it was machine generated.

VERSION

version 1.000005

SYNOPSIS

use Test::More;
eval 'use Test::CPAN::Changes::ReallyStrict';
plan skip_all => 'Test::CPAN::Changes::ReallyStrict required for this test' if $@;
changes_ok();
done_testing();

DESCRIPTION

This module is for people who want their Changes file to be 1:1 Identical to how it would be if they'd generated it programmatically with CPAN::Changes.

This is not for the faint of heart, and will whine about even minor changes of white-space.

You are also at upstream's mercy as to what a changes file looks like, and in order to keep this test happy, you'll have to update your whole changes file if upstream changes how they format things.

EXPORTED FUNCTIONS

changes_ok

changes_ok();

changes_ok({
  delete_empty_groups => 1,
  keep_comparing => 1,
  next_style => 'dzil'
});

changes_file_ok

changes_file_ok();

changes_file_ok('ChangeLog');

changes_ok('ChangeLog', {
  delete_empty_groups => 1,
  keep_comparing => 1,
  next_style => 'dzil'
});

AUTHOR

Kent Fredric kentnl@cpan.org

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Kent Fredric kentnl@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.