greenplumn CMemoryPoolBasicTest 源码
greenplumn CMemoryPoolBasicTest 代码
文件路径:/src/backend/gporca/libgpos/server/include/unittest/gpos/memory/CMemoryPoolBasicTest.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2008-2010 Greenplum Inc.
// Copyright (C) 2011 EMC Corp.
//
// @filename:
// CMemoryPoolBasicTest.h
//
// @doc:
// Test for CMemoryPoolBasic
//
// @owner:
//
// @test:
//
//---------------------------------------------------------------------------
#ifndef GPOS_CMemoryPoolBasicTest_H
#define GPOS_CMemoryPoolBasicTest_H
#include "gpos/memory/CMemoryPool.h"
#include "gpos/memory/CMemoryPoolManager.h"
namespace gpos
{
class CMemoryPoolBasicTest
{
private:
static GPOS_RESULT EresTestType();
static GPOS_RESULT EresTestExpectedError(GPOS_RESULT (*pfunc)(),
ULONG minor);
static GPOS_RESULT EresNewDelete();
static GPOS_RESULT EresThrowingCtor();
#ifdef GPOS_DEBUG
static GPOS_RESULT EresLeak();
static GPOS_RESULT EresLeakByException();
#endif // GPOS_DEBUG
static ULONG Size(ULONG offset);
public:
// unittests
static GPOS_RESULT EresUnittest();
#ifdef GPOS_DEBUG
static GPOS_RESULT EresUnittest_Print();
#endif // GPOS_DEBUG
static GPOS_RESULT EresUnittest_TestTracker();
static GPOS_RESULT EresUnittest_TestSlab();
}; // class CMemoryPoolBasicTest
} // namespace gpos
#endif // !GPOS_CMemoryPoolBasicTest_H
// EOF
相关信息
相关文章
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦