join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
CacheTest Class Reference

Class used to test cache. More...

Inheritance diagram for CacheTest:
Collaboration diagram for CacheTest:

Public Member Functions

virtual void SetUp () override
 Set up test.
 
virtual void TearDown () override
 Tear down test.
 
bool writeFile (const std::string &filepath, const std::string &content)
 Create file.
 

Static Protected Attributes

static Cache cache
 
static const std::string base = "/tmp/"
 
static const std::string stem = "join_cache_test"
 
static const std::string ext = "txt"
 
static const std::string name = stem + "." + ext
 
static const std::string path = base + name
 
static const std::string content = "test string"
 
static const std::string bad = base + stem + ".bad"
 
static const std::string other = base + stem + ".other"
 
static const std::string otherContent = "other test string"
 

Detailed Description

Class used to test cache.

Member Function Documentation

◆ SetUp()

virtual void CacheTest::SetUp ( )
inlineoverridevirtual

Set up test.

◆ TearDown()

virtual void CacheTest::TearDown ( )
inlineoverridevirtual

Tear down test.

◆ writeFile()

bool CacheTest::writeFile ( const std::string & filepath,
const std::string & content )
inline

Create file.

Parameters
filepathpath.
contentcontent to write.
Returns
true on success, false otherwise.

Member Data Documentation

◆ bad

const std::string CacheTest::bad = base + stem + ".bad"
staticprotected

◆ base

const std::string CacheTest::base = "/tmp/"
staticprotected

◆ cache

Cache CacheTest::cache
staticprotected

◆ content

const std::string CacheTest::content = "test string"
staticprotected

◆ ext

const std::string CacheTest::ext = "txt"
staticprotected

◆ name

const std::string CacheTest::name = stem + "." + ext
staticprotected

◆ other

const std::string CacheTest::other = base + stem + ".other"
staticprotected

◆ otherContent

const std::string CacheTest::otherContent = "other test string"
staticprotected

◆ path

const std::string CacheTest::path = base + name
staticprotected

◆ stem

const std::string CacheTest::stem = "join_cache_test"
staticprotected

The documentation for this class was generated from the following file: