Dist::...::Test(3pm)
π Dist::Inkt::Role::Test π
okay bestie, welcome to the manual page for Dist::Inkt::Role::Test, straight out of the User Contributed Perl Documentation collection (you'll see it filed under Dist::...::Test(3pm) if you go looking). buckle up, it's short and sweet. π
β¨ NAME β¨
Dist::Inkt::Role::Test β run various tests on a distribution at build time π§ͺ
πΈ SYNOPSIS πΈ
here's the vibe, copy-paste girlies:
package Dist::Inkt::Profile::JOEBLOGGS;
use Moose;
extends qw(Dist::Inkt);
with (
...,
"Dist::Inkt::Role::Test",
...,
);
after BUILD => sub {
my $self = shift;
# Run a test before attempting to build
# the dist dir.
#
$self->setup_prebuild_test(sub {
die "rude!" if $self->name =~ /Arse/;
});
# Run a test after building the dist dir.
#
$self->setup_build_test(sub {
die "missing change log" unless -f "Changes";
});
# Run a test after tarballing the dist dir.
#
$self->setup_tarball_test(sub {
my $tarball = $_[1]
die "too big" if $tarball->stat->size > 1_000_000;
});
};
1;
likeβ¦ the way you just consume the role and then stack your own little after BUILD checks on top? iconic. π
π DESCRIPTION π
so what even is this. this role exists to give hooks to Dist::Inkt subclasses and to other roles, so they can run tests. that's it. that's the whole job. hooks for tests. slay.
and bundled with this role are a few other roles that consume it in useful ways β so it's giving main-character role with a lil entourage. β¨
π¦ BUGS π¦
found something cursed? pls report any bugs here, bestie:
<http://rt.cpan.org/Dist/Display.html?Queue=Dist-Inkt-Role-Test>
π SEE ALSO π
Dist::Inkt.β the parent vibe, go read it.
π AUTHOR π
Toby Inkster <tobyink@cpan.org>.
π COPYRIGHT AND LICENCE π
This software is copyright (c) 2014 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. no cap, it's open like that. π«Ά
π DISCLAIMER OF WARRANTIES π
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
translating that for you fr fr: no promises, no guarantees, you're on your own. π
okay that's the whole page, you ate that. this was perl v5.40.1, dated 2025-08-06, coming at you from the User Contributed Perl Documentation section of the manual. mwah. πβ¨πΈπ¦π
π¦ where this page comes from
- ubuntu resolute: libdist-inkt-role-test-perl 0.002-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdist-inkt-role-test-perl 0.002-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms