use Test::More; use App::RecordStream::Test::OperationHelper 'fromdb'; # OperationHelper will catch fromdb's DBI requirement, but we require SQLite # for testing too. plan skip_all => 'DBD::SQLite needed to run tests' unless eval { require DBD::SQLite; }; my $solution = <do_match( 'fromdb', [ qw(--dbfile tests/files/sqliteDB --table recs) ], '', $solution, ); $solution = <do_match( 'fromdb', [ qw(--dbfile tests/files/sqliteDB --sql), 'select * from recs where foo > 5' ], '', $solution, ); done_testing;