diff --git a/t/10_baseline_ipv4_http.t b/t/10_baseline_ipv4_http.t index ec10bcd..1633945 100755 --- a/t/10_baseline_ipv4_http.t +++ b/t/10_baseline_ipv4_http.t @@ -7,6 +7,7 @@ # "finding" : "Scan interrupted" use strict; +use warnings; use Test::More; use Data::Dumper; use JSON; @@ -98,7 +99,7 @@ done_testing($tests); printf "\n\n"; -sub json($) { +sub json { my $file = shift; $file = `cat $file`; unlink $file; diff --git a/t/21_baseline_starttls.t b/t/21_baseline_starttls.t index ee1a0ac..a0360f7 100755 --- a/t/21_baseline_starttls.t +++ b/t/21_baseline_starttls.t @@ -10,6 +10,7 @@ # - Hosts which match the regex patterns should be avoided use strict; +use warnings; use Test::More; use Data::Dumper; # use JSON; @@ -150,7 +151,7 @@ if ( $os ne "darwin" ){ done_testing($tests); # unlink "tmp.json"; -sub json($) { +sub json { my $file = shift; $file = `cat $file`; unlink $file; diff --git a/t/23_client_simulation.t b/t/23_client_simulation.t index 107efcd..27fbcb9 100755 --- a/t/23_client_simulation.t +++ b/t/23_client_simulation.t @@ -7,6 +7,7 @@ # "finding" : "Scan interrupted" use strict; +use warnings; use Test::More; use Data::Dumper; # if needed: comment this and the lines below in: @@ -64,7 +65,7 @@ done_testing($tests); printf "\n"; -sub json($) { +sub json { my $file = shift; $file = `cat $file`; unlink $file; diff --git a/t/31_isJSON_valid.t b/t/31_isJSON_valid.t index 27ad4b2..07ac615 100755 --- a/t/31_isJSON_valid.t +++ b/t/31_isJSON_valid.t @@ -4,6 +4,7 @@ # use strict; +use warnings; use Test::More; use JSON; @@ -94,7 +95,7 @@ if ( $os eq "linux" ){ done_testing($tests); printf "\n\n"; -sub json($) { +sub json { my $file = shift; $file = `cat $file`; unlink $file; diff --git a/t/33_isJSON_severitylevel_valid.t b/t/33_isJSON_severitylevel_valid.t index a681507..d3c86e1 100755 --- a/t/33_isJSON_severitylevel_valid.t +++ b/t/33_isJSON_severitylevel_valid.t @@ -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; diff --git a/t/51_badssl.com.t b/t/51_badssl.com.t index 88c59fe..9ecaefc 100755 --- a/t/51_badssl.com.t +++ b/t/51_badssl.com.t @@ -1,6 +1,7 @@ #!/usr/bin/env perl use strict; +use warnings; use Test::More; use Data::Dumper; use JSON; @@ -154,7 +155,7 @@ is($found,1,"We should have a finding for this in the JSON output"); $tests++; done_testing($tests); -sub json($) { +sub json { my $file = shift; $file = `cat $file`; unlink $file;