Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@moznion
Last active December 27, 2015 07:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moznion/7287494 to your computer and use it in GitHub Desktop.
Save moznion/7287494 to your computer and use it in GitHub Desktop.
Syntax test for cpanfile.
#!perl
use strict;
use warnings;
use utf8;
use FindBin;
use Module::CPANfile;
use Test::More;
my $cpanfile = "$FindBin::Bin/../cpanfile";
eval { Module::CPANfile->load($cpanfile) };
my $error_message = $@;
ok !$error_message, "cpanfile syntax ok";
if ($error_message) {
warn "$error_message\n";
}
done_testing;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment