reformat source code
according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
@ -31,7 +31,7 @@ using namespace oceanbase::share::schema;
|
||||
|
||||
const int64_t BUF_LEN = 102400;
|
||||
class ObQueryRangeTest : public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
ObQueryRangeTest();
|
||||
virtual ~ObQueryRangeTest();
|
||||
virtual void SetUp();
|
||||
@ -254,12 +254,12 @@ class ObQueryRangeTest : public ::testing::Test {
|
||||
allocator_.reset();
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
ObQueryRangeTest(const ObQueryRangeTest& other);
|
||||
ObQueryRangeTest& operator=(const ObQueryRangeTest& other);
|
||||
|
||||
protected:
|
||||
protected:
|
||||
// data members
|
||||
uint64_t table_id_;
|
||||
uint64_t column_id1_;
|
||||
|
||||
@ -27,7 +27,7 @@ namespace test {
|
||||
class TestTransUtils {
|
||||
static const int trans_type_[];
|
||||
|
||||
public:
|
||||
public:
|
||||
struct CmdLineParam {
|
||||
CmdLineParam() : use_it_(false)
|
||||
{
|
||||
@ -37,18 +37,18 @@ class TestTransUtils {
|
||||
bool use_it_;
|
||||
};
|
||||
|
||||
public:
|
||||
public:
|
||||
TestTransUtils();
|
||||
virtual ~TestTransUtils()
|
||||
{}
|
||||
|
||||
public:
|
||||
public:
|
||||
static bool parse_cmd(int argc, char* argv[], CmdLineParam& param);
|
||||
|
||||
private:
|
||||
private:
|
||||
static void print_help();
|
||||
|
||||
private:
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(TestTransUtils);
|
||||
};
|
||||
} // namespace test
|
||||
|
||||
@ -60,16 +60,16 @@ namespace test {
|
||||
test::TestTransUtils::CmdLineParam param;
|
||||
|
||||
class TestRewrite : public TestOptimizerUtils {
|
||||
public:
|
||||
public:
|
||||
TestRewrite();
|
||||
virtual ~TestRewrite();
|
||||
|
||||
private:
|
||||
private:
|
||||
void virtual SetUp();
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(TestRewrite);
|
||||
|
||||
protected:
|
||||
protected:
|
||||
// function members
|
||||
int parse_resolve_transform(std::ofstream& of_result, ObTransformerImpl& trans_util, ObString& sql, ObDMLStmt*& stmt,
|
||||
ObLogPlan*& logical_plan, bool do_transform, bool do_gen_plan, ObIAllocator* allocator);
|
||||
@ -89,13 +89,13 @@ class TestRewrite : public TestOptimizerUtils {
|
||||
int optimize(ObDMLStmt*& stmt, ObLogPlan*& logical_plan);
|
||||
bool do_loop_test;
|
||||
|
||||
protected:
|
||||
protected:
|
||||
ObTransformerCtx ctx_;
|
||||
ObSchemaChecker schema_checker_;
|
||||
};
|
||||
|
||||
class TestStackCheck : public TestOptimizerUtils {
|
||||
public:
|
||||
public:
|
||||
TestStackCheck()
|
||||
{
|
||||
memset(schema_file_path_, '\0', 128);
|
||||
|
||||
Reference in New Issue
Block a user