1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 06:08:38 -04:00

use warnings

This commit is contained in:
Kenichi Ishigaki 2019-01-02 21:17:30 +09:00
parent 12ab284322
commit 11c2f4e70f
108 changed files with 108 additions and 541 deletions

View file

@ -2,11 +2,7 @@
# load modules without having to check if it worked.
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use Test::More tests => 3;
use lib "t/lib";

View file

@ -1,11 +1,7 @@
# Tests basic login and pragma setting
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok @CALL_FUNCS/;
use Test::More;

View file

@ -1,11 +1,7 @@
# Tests simple table creation
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 7;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 14;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 22;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 6;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 8;

View file

@ -1,11 +1,7 @@
# Test that two processes can write at once, assuming we commit timely.
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok dbfile @CALL_FUNCS/;
use Test::More;

View file

@ -1,10 +1,6 @@
use 5.00503;
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok @CALL_FUNCS/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok @CALL_FUNCS/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -2,11 +2,7 @@
# handle parameter.
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok dies @CALL_FUNCS/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok @CALL_FUNCS/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 37;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 12;

View file

@ -2,11 +2,7 @@
# and modify/extend it.
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 4;

View file

@ -1,11 +1,7 @@
# This is a simple insert/fetch test.
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 10;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 39;

View file

@ -2,11 +2,7 @@
# is expected to work correctly.
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 17;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 27;

View file

@ -1,11 +1,7 @@
# This is a test for statement attributes being present appropriately.
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 12;

View file

@ -1,11 +1,7 @@
# This is a test for correctly handling NULL values.
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 9;

View file

@ -1,11 +1,7 @@
# This tests, whether the number of rows can be retrieved.
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 18;

View file

@ -1,11 +1,7 @@
# Check whether 'ChopBlanks' works.
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 14;

View file

@ -1,11 +1,7 @@
# This is testing the transaction support.
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 28;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use Test::More tests => 21;
use lib "t/lib";
use SQLiteTest;

View file

@ -2,11 +2,7 @@
# the thing that the test was originally meant to test.
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use Test::More tests => 9;
use lib "t/lib";
use SQLiteTest;

View file

@ -1,11 +1,7 @@
# I've disabled warnings, so theoretically warnings shouldn't be printed
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 6;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
my @to_be_tested;
BEGIN { @to_be_tested = (1.23E4); }

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use Test::More tests => 7;
use lib "t/lib";
use SQLiteTest;

View file

@ -2,11 +2,7 @@
# currently fails on Windows
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 22;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok @CALL_FUNCS/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok @CALL_FUNCS/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok has_sqlite/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,11 +1,7 @@
# Trigger locking error and test prepared statement is still valid afterwards
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok dbfile @CALL_FUNCS/;
use Test::More;

View file

@ -1,11 +1,7 @@
# Check data type assignment in bind_param is sticky
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok/;
use DBI qw(:sql_types);

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok @CALL_FUNCS requires_sqlite/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use DBD::SQLite;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok @CALL_FUNCS requires_sqlite/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok @CALL_FUNCS has_sqlite/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok/;
use Test::More tests => 5;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok requires_sqlite/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/requires_sqlite/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok @CALL_FUNCS/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok @CALL_FUNCS/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok @CALL_FUNCS/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -3,11 +3,7 @@
# About re-using statements with prepare_cached().
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 13;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 11;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 14;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok @CALL_FUNCS/;
use Test::More;

View file

@ -1,10 +1,6 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 6;

View file

@ -1,10 +1,6 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 9;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 21;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 8;

View file

@ -3,11 +3,7 @@
# up and that it does not generate a warning.
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 32;

View file

@ -1,11 +1,7 @@
# This is a simple insert/fetch test.
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 5;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 4;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use Test::More;
use lib "t/lib";
use SQLiteTest;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 92 * 4 + 2;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok @CALL_FUNCS/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 8;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok/;
use Test::More tests => 34;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 2;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok/;
use Test::More tests => 6;

View file

@ -1,9 +1,6 @@
use warnings;
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 4;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok/;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More tests => 3;

View file

@ -1,11 +1,7 @@
#!/usr/bin/env perl
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -3,11 +3,7 @@
# sqlite_unicode => 1). Only bind values are properly converted.
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -5,11 +5,7 @@
# column, using a CAST expression or a call to bind_param().
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest;
use Test::More;

View file

@ -1,9 +1,5 @@
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
use warnings;
use lib "t/lib";
use SQLiteTest qw/connect_ok $sqlite_call/;
use Test::More;

Some files were not shown because too many files have changed in this diff Show more