| 17 | #include <catch2/catch_test_macros.hpp> |
| 18 | |
| 19 | class DBConnection |
| 20 | { |
| 21 | public: |
| 22 | static DBConnection createConnection( std::string const & /*dbName*/ ) { |
| 23 | return DBConnection(); |
| 24 | } |
| 25 | |
| 26 | bool executeSQL( std::string const & /*query*/, int const /*id*/, std::string const & arg ) { |
| 27 | if ( arg.length() == 0 ) { |
| 28 | throw std::logic_error("empty SQL query argument"); |
| 29 | } |
| 30 | return true; // ok |
| 31 | } |
| 32 | }; |
| 33 | |
| 34 | class UniqueTestsFixture |
| 35 | { |