reformat source code

according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
gm
2021-06-16 15:48:42 +08:00
committed by MizuhaHimuraki
parent 8c4a2f26a6
commit 4a92b6d7df
3314 changed files with 23131 additions and 23401 deletions

View File

@ -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);
};

View File

@ -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);

View File

@ -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);

View File

@ -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();

View File

@ -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);

View File

@ -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);

View File

@ -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);
};

View File

@ -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
};