mirror of
https://github.com/drwetter/testssl.sh.git
synced 2026-09-14 05:38:16 +02:00
Add "use warnings" + correct subroutine prototypes declaration
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More;
|
||||
use Data::Dumper;
|
||||
use JSON;
|
||||
@@ -66,7 +67,7 @@ is($found,0,"We should not have any finding with INFO level"); $tests++;
|
||||
done_testing($tests);
|
||||
printf "\n\n";
|
||||
|
||||
sub json($) {
|
||||
sub json {
|
||||
my $file = shift;
|
||||
$file = `cat $file`;
|
||||
unlink $file;
|
||||
|
||||
Reference in New Issue
Block a user