Skip to content

Commit

Permalink
Fix kritika issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 14, 2019
1 parent 9f8799a commit 45ebee2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
7 changes: 4 additions & 3 deletions t/00-load.t
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!perl -T

use strict;

use Test::Most tests => 2;

BEGIN {
use_ok( 'CGI::Untaint::Twitter' ) || print "Bail out!
";
use_ok('CGI::Untaint::Twitter') || print 'Bail out!';
}

require_ok('CGI::Untaint::Twitter') || print 'Bail out!';

diag( "Testing CGI::Untaint::Twitter $CGI::Untaint::Twitter::VERSION, Perl $], $^X" );
diag("Testing CGI::Untaint::Twitter $CGI::Untaint::Twitter::VERSION, Perl $], $^X");
12 changes: 9 additions & 3 deletions t/port.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#!perl -wT

use Test::Most;

use warnings;
use strict;

eval 'use Test::Portability::Files';
plan skip_all => "Test::Portability::Files required for testing filenames portability" if $@;

plan(skip_all => 'Test::Portability::Files required for testing filenames portability') if $@;

# Turn off test_one_dot because even thoug use_file_find is off, T:P:F still
# tests files not distributed e.g. .travis.yml
options(use_file_find => 0, test_one_dot => 0);
run_tests();
2 changes: 1 addition & 1 deletion t/strict.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ if($@) {
plan skip_all => 'Test::Strict required for testing use strict';
} else {
all_perl_files_ok();
warnings_ok('lib/CGI/Untaint/Twitter.pm');
warnings_ok('lib/CGI/Info.pm');
}

0 comments on commit 45ebee2

Please sign in to comment.