App-Workflow-Lint

 view release on metacpan or  search on metacpan

t/autofix.t  view on Meta::CPAN


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;

t/dsl.t  view on Meta::CPAN


new_ok('App::Workflow::Lint::Rule::MissingTimeout');

my $rule = App::Workflow::Lint::Rule::MissingTimeout->new;

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.760 second using v1.01-cache-2.11-cpan-39bf76dae61 )