From 22e0839fd6912b888b7c3c790573aef1f5df3936 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 18 Nov 2020 16:55:04 +0000 Subject: Clang format --- libodbcpp/odbc-mock.cpp | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) (limited to 'libodbcpp/odbc-mock.cpp') diff --git a/libodbcpp/odbc-mock.cpp b/libodbcpp/odbc-mock.cpp index 29a9278..21b332a 100644 --- a/libodbcpp/odbc-mock.cpp +++ b/libodbcpp/odbc-mock.cpp @@ -1,33 +1,34 @@ -#include "odbc-connection.h" #include "odbc-mock.h" +#include "odbc-connection.h" #include namespace ODBC { -Mock::Mock(const std::string & b, const std::string & masterdb, const std::string & name, const std::vector & ss) : - MockServerDatabase(b + ";" + masterdb, name, "odbc"), - base(b) -{ - Mock::CreateNewDatabase(); - PlaySchemaScripts(ss); -} + Mock::Mock(const std::string & b, const std::string & masterdb, const std::string & name, + const std::vector & ss) : + MockServerDatabase(b + ";" + masterdb, name, "odbc"), + base(b) + { + Mock::CreateNewDatabase(); + PlaySchemaScripts(ss); + } -AdHocFormatter(MockConnStr, "%?;Database=%?"); -DB::ConnectionPtr -Mock::openConnection() const -{ - return std::make_shared(MockConnStr::get(base, testDbName)); -} + AdHocFormatter(MockConnStr, "%?;Database=%?"); + DB::ConnectionPtr + Mock::openConnection() const + { + return std::make_shared(MockConnStr::get(base, testDbName)); + } -Mock::~Mock() -{ - Mock::DropDatabase(); -} + Mock::~Mock() + { + Mock::DropDatabase(); + } -void Mock::DropDatabase() const -{ - MockServerDatabase::DropDatabase(); -} + void + Mock::DropDatabase() const + { + MockServerDatabase::DropDatabase(); + } } - -- cgit v1.2.3