Skip to content

Commit

Permalink
Add a test to check tests for #62 (too many reports for perl)
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Sep 10, 2024
1 parent 1a007c5 commit 0562b13
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions t/cli/dist.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
use strict;
use warnings;
use lib 't/lib';
use Test::More;
use TestCommand;

subtest 'command: dist' => sub {
my $expected_reports = 14;
my( $stdout, $stderr, $exit ) = TestCommand->command( 'dist', 'perl', '5.024004' );

unlike $stdout, qr/CPANSA-perl-2023-47(?:100|038)/, 'CVE-2023-471100 nor CVE-2023-47028 are in the reports';
is $exit, 64 + $expected_reports, "there are $expected_reports reports";
};

done_testing;

0 comments on commit 0562b13

Please sign in to comment.