App-BigQuery-Importer-MySQL
view release on metacpan or search on metacpan
t/02__check_columns.t view on Meta::CPAN
subtest 'no allow_text_type' => sub {
like exception {
App::BigQuery::Importer::MySQL->_check_columns(
+{
dbh => $dbh,
src_schema => 'test',
src_table => 'test_blob',
allow_text_type => 0,
}
);
}, qr/test\.test_blob has BLOB table/, "throws ok";
like exception {
App::BigQuery::Importer::MySQL->_check_columns(
+{
dbh => $dbh,
src_schema => 'test',
src_table => 'test_text',
allow_text_type => 0,
}
);
t/02__check_columns.t view on Meta::CPAN
like exception {
App::BigQuery::Importer::MySQL->_check_columns(
+{
dbh => $dbh,
src_schema => 'test',
src_table => 'test_blob_and_text',
allow_text_type => 0,
}
);
}, qr/test\.test_blob_and_text has BLOB table/, "throws ok";
is exception {
App::BigQuery::Importer::MySQL->_check_columns(
+{
dbh => $dbh,
src_schema => 'test',
src_table => 'test_no_blob_and_no_text',
allow_text_type => 0,
}
);
t/02__check_columns.t view on Meta::CPAN
subtest 'allow_text_type' => sub {
like exception {
App::BigQuery::Importer::MySQL->_check_columns(
+{
dbh => $dbh,
src_schema => 'test',
src_table => 'test_blob',
allow_text_type => 1,
}
);
}, qr/test\.test_blob has BLOB table/, "throws ok";
is exception {
App::BigQuery::Importer::MySQL->_check_columns(
+{
dbh => $dbh,
src_schema => 'test',
src_table => 'test_text',
allow_text_type => 1,
}
);
t/02__check_columns.t view on Meta::CPAN
like exception {
App::BigQuery::Importer::MySQL->_check_columns(
+{
dbh => $dbh,
src_schema => 'test',
src_table => 'test_blob_and_text',
allow_text_type => 1,
}
);
}, qr/test\.test_blob_and_text has BLOB table/, "throws ok";
is exception {
App::BigQuery::Importer::MySQL->_check_columns(
+{
dbh => $dbh,
src_schema => 'test',
src_table => 'test_no_blob_and_no_text',
allow_text_type => 1,
}
);
( run in 0.343 second using v1.01-cache-2.11-cpan-496ff517765 )