Test::C...:Changes(3)
okay so you've opened the User Contributed Perl Documentation page for Test::C...:Changes(3), and bestie, we're about to make the Changes file situation make sense π Like, this is the manual for Test::CPAN::Changes, and it's giving "please let my changelog be valid" energy.
πΈ NAME πΈ
Test::CPAN::Changes β validation of the Changes file in a CPAN distribution. Yep, that's the whole vibe: it checks that your Changes file follows the rules, no cap. β¨
π¦ SYNOPSIS π¦
ok so first, in xt/author/cpan-changes.t, you can do this:
# in xt/author/cpan-changes.t
use Test::More;
use Test::CPAN::Changes;
changes_ok;
and if you're checking for a specific version, it's this:
# checking for specific version
use My::Module;
use Test::More;
use Test::CPAN::Changes;
changes_ok({ version => My::Module->VERSION });
iconic. slay. π
π DESCRIPTION π
This module lets CPAN authors write automated tests so their changelogs match the specification. That's it, that's the whole point. It's literally here so you don't have to eyeball your Changes file and hope for the best. π
π§ SUBROUTINES π§
π changes_ok( \%args ) π
This is a simple wrapper around changes_file_ok. It declares a test plan, and it uses the default filename of Changes. Cute, right? π
π¦ changes_file_ok( $filename, \%arg ) π¦
This one checks the contents of the changes file against the specification. It does not declare a plan, and if the filename is undefined, Changes is used. So like, no surprise plan energy here. π
Four tests are performed. The file must be parsable, it must have releases in it, and the versions and dates listed must be valid. Four whole tests, bestie β it's thorough. β¨
%arg may include a version entry, and in that case two additional tests are performed. The entry for that version must exist and have content. This is useful to ensure that the version currently being released has documented changes. So if you're dropping a release with zero notes, this test is gonna side-eye you. π
π SEE ALSO π
CPAN::Changes::SpecCPAN::Changes
π AUTHORS π
See CPAN::Changes for authors. π
π COPYRIGHT AND LICENSE π
See CPAN::Changes for the copyright and license. π«Ά
π that's the whole page, bestie. This cutie came fromperl v5.42.0, dated2025-07-25, and it's theTest::C...:Changes(3)manual. Mwah π
π¦ where this page comes from
- fedora 43: perl-CPAN-Changes 0.500005-2.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms