Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
=pod | ||
=encoding utf-8 | ||
=head1 NAME | ||
00versions.t - print versions of dependencies | ||
=head1 AUTHOR | ||
Toby Inkster E<lt>tobyink@cpan.orgE<gt>. | ||
=head1 COPYRIGHT AND LICENCE | ||
This software is copyright (c) 2022 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. | ||
=head1 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. | ||
=cut | ||
|
||
use strict; | ||
use warnings; | ||
use Test::More; | ||
|
||
sub diag_version { | ||
my ( $module, $version ) = @_; | ||
if ( @_ == 1 ) { | ||
eval "require $module"; | ||
$version = $module->VERSION; | ||
} | ||
diag sprintf '%s %s', $module, $version; | ||
} | ||
|
||
diag ''; | ||
diag_version 'perl', $]; | ||
diag_version 'Carp'; | ||
diag_version 'Data::Dumper'; | ||
diag_version 'Exporter::Shiny'; | ||
diag_version 'List::Util'; | ||
diag_version 'Scalar::Util'; | ||
diag_version 'Test::Fatal'; | ||
diag_version 'Test::More'; | ||
diag ''; | ||
|
||
pass; | ||
|
||
done_testing; |