reformat source code
according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
@ -38,14 +38,14 @@ struct SqlAndError {
|
||||
int64_t expect_error;
|
||||
};
|
||||
class TestResolver : public TestSqlUtils, public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
TestResolver();
|
||||
virtual ~TestResolver()
|
||||
{}
|
||||
virtual void SetUp();
|
||||
virtual void TearDown();
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(TestResolver);
|
||||
};
|
||||
|
||||
@ -24,21 +24,21 @@ using namespace oceanbase::common;
|
||||
using namespace oceanbase::sql;
|
||||
|
||||
class TestRawExprCanonicalizer : public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
TestRawExprCanonicalizer();
|
||||
virtual ~TestRawExprCanonicalizer();
|
||||
virtual void SetUp();
|
||||
virtual void TearDown();
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(TestRawExprCanonicalizer);
|
||||
|
||||
protected:
|
||||
protected:
|
||||
// function members
|
||||
void canon(const char* expr, const char*& canon_expr);
|
||||
|
||||
protected:
|
||||
protected:
|
||||
// data members
|
||||
};
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ namespace test {
|
||||
})
|
||||
|
||||
class TestRawExprToStr : public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
TestRawExprToStr()
|
||||
{}
|
||||
virtual ~TestRawExprToStr()
|
||||
@ -42,7 +42,7 @@ class TestRawExprToStr : public ::testing::Test {
|
||||
virtual void TearDown()
|
||||
{}
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy and assign
|
||||
TestRawExprToStr(const TestRawExprToStr& other);
|
||||
TestRawExprToStr& operator=(const TestRawExprToStr& ohter);
|
||||
|
||||
@ -18,19 +18,19 @@ using namespace oceanbase::common;
|
||||
using namespace oceanbase::sql;
|
||||
|
||||
class TestRawExprPrintVisitor : public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
TestRawExprPrintVisitor();
|
||||
virtual ~TestRawExprPrintVisitor();
|
||||
virtual void SetUp();
|
||||
virtual void TearDown();
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(TestRawExprPrintVisitor);
|
||||
|
||||
protected:
|
||||
protected:
|
||||
// function members
|
||||
protected:
|
||||
protected:
|
||||
// data members
|
||||
};
|
||||
|
||||
|
||||
@ -25,21 +25,21 @@ using namespace oceanbase::lib;
|
||||
using namespace oceanbase;
|
||||
|
||||
class TestRawExprResolver : public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
TestRawExprResolver();
|
||||
virtual ~TestRawExprResolver();
|
||||
virtual void SetUp();
|
||||
virtual void TearDown();
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(TestRawExprResolver);
|
||||
|
||||
protected:
|
||||
protected:
|
||||
// function members
|
||||
void resolve(const char* expr, const char*& json_expr);
|
||||
|
||||
protected:
|
||||
protected:
|
||||
// data members
|
||||
};
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ namespace test {
|
||||
})
|
||||
|
||||
class TestRawExprToStr : public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
TestRawExprToStr()
|
||||
{}
|
||||
virtual ~TestRawExprToStr()
|
||||
@ -42,7 +42,7 @@ class TestRawExprToStr : public ::testing::Test {
|
||||
virtual void TearDown()
|
||||
{}
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy and assign
|
||||
TestRawExprToStr(const TestRawExprToStr& other);
|
||||
TestRawExprToStr& operator=(const TestRawExprToStr& ohter);
|
||||
|
||||
@ -33,7 +33,7 @@ using namespace oceanbase::sql;
|
||||
#define BUF_LEN 102400
|
||||
namespace test {
|
||||
class TestRawExpr : public TestSqlUtils, public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
TestRawExpr();
|
||||
virtual ~TestRawExpr();
|
||||
virtual void SetUp();
|
||||
@ -41,17 +41,17 @@ class TestRawExpr : public TestSqlUtils, public ::testing::Test {
|
||||
ObArenaAllocator allocator;
|
||||
ObRawExprFactory expr_factory_;
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(TestRawExpr);
|
||||
|
||||
protected:
|
||||
protected:
|
||||
// function members
|
||||
int get_raw_expr(const char* expr, ObRawExpr*& raw_expr, const char*& json_expr);
|
||||
int get_result_tree(const char* sql, ParseResult& parse_result, ObIAllocator& allocator);
|
||||
void resolver(const char* expr, const char*& json_expr);
|
||||
|
||||
protected:
|
||||
protected:
|
||||
// data members
|
||||
};
|
||||
|
||||
|
||||
@ -37,14 +37,14 @@ namespace test {
|
||||
const char* SQL_DIR = "sql";
|
||||
const char* RESULT_DIR = "result";
|
||||
class TestResolver : public TestSqlUtils, public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
TestResolver();
|
||||
virtual ~TestResolver()
|
||||
{}
|
||||
virtual void SetUp();
|
||||
virtual void TearDown();
|
||||
|
||||
protected:
|
||||
protected:
|
||||
void do_equal_test();
|
||||
void do_stmt_copy_test();
|
||||
void do_padding_test();
|
||||
@ -56,7 +56,7 @@ class TestResolver : public TestSqlUtils, public ::testing::Test {
|
||||
bool is_show_sql(const ParseNode& node) const;
|
||||
static void get_index_name(std::string& str, const ObTableSchema& idx_schema);
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(TestResolver);
|
||||
};
|
||||
|
||||
@ -20,13 +20,13 @@ using namespace oceanbase::lib;
|
||||
using namespace oceanbase;
|
||||
|
||||
class TestSqlBitSet : public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
TestSqlBitSet();
|
||||
virtual ~TestSqlBitSet();
|
||||
virtual void SetUp();
|
||||
virtual void TearDown();
|
||||
|
||||
private:
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(TestSqlBitSet);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user