summaryrefslogtreecommitdiff
path: root/libdbpp/unittests/mockdb.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdbpp/unittests/mockdb.h')
-rw-r--r--libdbpp/unittests/mockdb.h35
1 files changed, 17 insertions, 18 deletions
diff --git a/libdbpp/unittests/mockdb.h b/libdbpp/unittests/mockdb.h
index 379d076..f291487 100644
--- a/libdbpp/unittests/mockdb.h
+++ b/libdbpp/unittests/mockdb.h
@@ -5,30 +5,29 @@
#include "../mockDatabase.h"
class MockDb : public DB::Connection {
- public:
- MockDb(const std::string &);
+public:
+ MockDb(const std::string &);
- void beginTxInt() override;
- void commitTxInt() override;
- void rollbackTxInt() override;
- void ping() const override;
- DB::BulkDeleteStyle bulkDeleteStyle() const override;
- DB::BulkUpdateStyle bulkUpdateStyle() const override;
+ void beginTxInt() override;
+ void commitTxInt() override;
+ void rollbackTxInt() override;
+ void ping() const override;
+ DB::BulkDeleteStyle bulkDeleteStyle() const override;
+ DB::BulkUpdateStyle bulkUpdateStyle() const override;
- void execute(const std::string & sql, const DB::CommandOptionsCPtr &) override;
- DB::SelectCommandPtr select(const std::string &, const DB::CommandOptionsCPtr &) override;
- DB::ModifyCommandPtr modify(const std::string &, const DB::CommandOptionsCPtr &) override;
+ void execute(const std::string & sql, const DB::CommandOptionsCPtr &) override;
+ DB::SelectCommandPtr select(const std::string &, const DB::CommandOptionsCPtr &) override;
+ DB::ModifyCommandPtr modify(const std::string &, const DB::CommandOptionsCPtr &) override;
- mutable std::vector<std::string> executed;
+ mutable std::vector<std::string> executed;
};
class MockMock : public DB::MockDatabase {
- public:
- MockMock(const std::string &, const std::string &, const std::vector<std::filesystem::path> &);
- DB::ConnectionPtr openConnection() const override;
- void CreateNewDatabase() const override;
- void DropDatabase() const override;
+public:
+ MockMock(const std::string &, const std::string &, const std::vector<std::filesystem::path> &);
+ DB::ConnectionPtr openConnection() const override;
+ void CreateNewDatabase() const override;
+ void DropDatabase() const override;
};
#endif
-