App-Workflow-Lint
view release on metacpan or search on metacpan
t/autofix.t view on Meta::CPAN
use strict;
use warnings;
use Test::Most;
use_ok('App::Workflow::Lint::Rule::MissingTimeout');
my $rule = new_ok('App::Workflow::Lint::Rule::MissingTimeout');
my $wf = { jobs => { build => {} } };
my @out = $rule->check($wf, { file => 'test.yml' });
is scalar(@out), 1, 'one diagnostic returned';
like $out[0]{message}, qr/missing timeout/, 'message looks right';
done_testing;
( run in 1.393 second using v1.01-cache-2.11-cpan-437f7b0c052 )