reformat source code
according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
@ -17,13 +17,13 @@ using namespace oceanbase::common;
|
||||
using namespace oceanbase::sql;
|
||||
|
||||
class ObIdManagerAllocatorTest : public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
ObIdManagerAllocatorTest();
|
||||
virtual ~ObIdManagerAllocatorTest();
|
||||
void SetUp();
|
||||
void TearDown();
|
||||
|
||||
private:
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObIdManagerAllocatorTest);
|
||||
};
|
||||
|
||||
|
@ -83,7 +83,7 @@ void generate_plan(TestSqlCtx& test_sql_ctx, const char* query, ParamStore& para
|
||||
}
|
||||
|
||||
class TestPCVSet : public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
TestPCVSet()
|
||||
{}
|
||||
virtual ~TestPCVSet()
|
||||
@ -93,7 +93,7 @@ class TestPCVSet : public ::testing::Test {
|
||||
void TearDown()
|
||||
{}
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
TestPCVSet(const TestPCVSet& other);
|
||||
TestPCVSet& operator=(const TestPCVSet& other);
|
||||
|
@ -55,7 +55,7 @@ void init_pc()
|
||||
}
|
||||
|
||||
class TestPlanCache : public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
TestPlanCache()
|
||||
{}
|
||||
virtual ~TestPlanCache()
|
||||
@ -65,7 +65,7 @@ class TestPlanCache : public ::testing::Test {
|
||||
void TearDown()
|
||||
{}
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
TestPlanCache(const TestPlanCache& other);
|
||||
TestPlanCache& operator=(const TestPlanCache& other);
|
||||
@ -293,7 +293,7 @@ void alter_table_schema_version()
|
||||
}
|
||||
|
||||
class PlanCacheRunnable : public share::ObThreadPool {
|
||||
public:
|
||||
public:
|
||||
void run1()
|
||||
{
|
||||
UNUSED(arg);
|
||||
|
@ -40,7 +40,7 @@ void init_pcm()
|
||||
}
|
||||
|
||||
class TestPlanCacheManager : public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
TestPlanCacheManager()
|
||||
{}
|
||||
virtual ~TestPlanCacheManager()
|
||||
@ -50,7 +50,7 @@ class TestPlanCacheManager : public ::testing::Test {
|
||||
void TearDown()
|
||||
{}
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
TestPlanCacheManager(const TestPlanCacheManager& other);
|
||||
TestPlanCacheManager& operator=(const TestPlanCacheManager& other);
|
||||
@ -79,7 +79,7 @@ void test_plan_cache_manager()
|
||||
}
|
||||
|
||||
class ObPlanCacheManagerRunnable : public share::ObThreadPool {
|
||||
public:
|
||||
public:
|
||||
void run1()
|
||||
{
|
||||
test_plan_cache_manager();
|
||||
|
@ -54,7 +54,7 @@ void init_pcv()
|
||||
}
|
||||
|
||||
class TestPlanCacheValue : public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
TestPlanCacheValue()
|
||||
{}
|
||||
virtual ~TestPlanCacheValue()
|
||||
@ -64,7 +64,7 @@ class TestPlanCacheValue : public ::testing::Test {
|
||||
void TearDown()
|
||||
{}
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
TestPlanCacheValue(const TestPlanCacheValue& other);
|
||||
TestPlanCacheValue& operator=(const TestPlanCacheValue& other);
|
||||
|
@ -44,7 +44,7 @@ int64_t allocate_sql_id()
|
||||
}
|
||||
|
||||
class TestPlanSet : public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
TestPlanSet()
|
||||
{}
|
||||
virtual ~TestPlanSet()
|
||||
@ -54,7 +54,7 @@ class TestPlanSet : public ::testing::Test {
|
||||
void TearDown()
|
||||
{}
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
TestPlanSet(const TestPlanSet& other);
|
||||
TestPlanSet& operator=(const TestPlanSet& other);
|
||||
|
@ -37,7 +37,7 @@ struct TestSqlCtx {
|
||||
};
|
||||
|
||||
class TestSQL : public TestOptimizerUtils {
|
||||
public:
|
||||
public:
|
||||
TestSQL(const ObString& schema_file_name);
|
||||
virtual ~TestSQL();
|
||||
void TestBody()
|
||||
@ -81,11 +81,11 @@ class TestSQL : public TestOptimizerUtils {
|
||||
return merged_version_;
|
||||
}
|
||||
|
||||
protected:
|
||||
protected:
|
||||
ObAddr addr_; // local addr
|
||||
int64_t merged_version_;
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
DISALLOW_COPY_AND_ASSIGN(TestSQL);
|
||||
};
|
||||
|
@ -24,18 +24,18 @@ using namespace share::schema;
|
||||
#define OK(value) ASSERT_EQ(OB_SUCCESS, (value))
|
||||
|
||||
class TestSqlParameterization : public ::testing::Test {
|
||||
public:
|
||||
public:
|
||||
TestSqlParameterization();
|
||||
virtual ~TestSqlParameterization();
|
||||
virtual void SetUp();
|
||||
virtual void TearDown();
|
||||
|
||||
private:
|
||||
private:
|
||||
// disallow copy
|
||||
TestSqlParameterization(const TestSqlParameterization& other);
|
||||
TestSqlParameterization& operator=(const TestSqlParameterization& other);
|
||||
|
||||
protected:
|
||||
protected:
|
||||
// data members
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user