greenplumn CMemoryPoolBasicTest 源码

2022-08-18 浏览 (313)

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

相关信息

greenplumn 源码目录

相关文章

greenplumn CCacheTest 源码

^