Skip to content

Commit

Permalink
Remove using namespaces from headers
Browse files Browse the repository at this point in the history
  • Loading branch information
rfdavid committed May 21, 2023
1 parent 5274ac0 commit cb6449c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 0 additions & 2 deletions test/include/test_runner/test_case.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

#include "main/kuzu.h"

using namespace kuzu::main;

namespace kuzu {
namespace testing {

Expand Down
16 changes: 7 additions & 9 deletions test/include/test_runner/test_runner.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,24 @@
#include "planner/planner.h"
#include "test_runner/test_case.h"

using namespace kuzu::planner;

namespace kuzu {
namespace testing {

class TestRunner {
public:
static void runTest(
const std::vector<std::unique_ptr<TestStatement>>& statements, Connection& conn);
const std::vector<std::unique_ptr<TestStatement>>& statements, main::Connection& conn);

static std::unique_ptr<planner::LogicalPlan> getLogicalPlan(
const std::string& query, Connection& conn);
const std::string& query, main::Connection& conn);

private:
static void initializeConnection(TestStatement* statement, Connection& conn);
static bool testStatement(TestStatement* statement, Connection& conn);
static bool checkLogicalPlans(std::unique_ptr<PreparedStatement>& preparedStatement,
TestStatement* statement, Connection& conn);
static void initializeConnection(TestStatement* statement, main::Connection& conn);
static bool testStatement(TestStatement* statement, main::Connection& conn);
static bool checkLogicalPlans(std::unique_ptr<main::PreparedStatement>& preparedStatement,
TestStatement* statement, main::Connection& conn);
static std::vector<std::string> convertResultToString(
QueryResult& queryResult, bool checkOutputOrder = false);
main::QueryResult& queryResult, bool checkOutputOrder = false);
};

} // namespace testing
Expand Down
2 changes: 2 additions & 0 deletions test/test_runner/test_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include "spdlog/spdlog.h"

using namespace kuzu::main;

namespace kuzu {
namespace testing {

Expand Down

0 comments on commit cb6449c

Please sign in to comment.