Class used to test cache.
More...
|
| 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 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" |
| |
Class used to test cache.
◆ SetUp()
| virtual void CacheTest::SetUp |
( |
| ) |
|
|
inlineoverridevirtual |
◆ TearDown()
| virtual void CacheTest::TearDown |
( |
| ) |
|
|
inlineoverridevirtual |
◆ writeFile()
| bool CacheTest::writeFile |
( |
const std::string & | filepath, |
|
|
const std::string & | content ) |
|
inline |
Create file.
- Parameters
-
| filepath | path. |
| content | content to write. |
- Returns
- true on success, false otherwise.
◆ bad
| const std::string CacheTest::bad = base + stem + ".bad" |
|
staticprotected |
◆ base
| const std::string CacheTest::base = "/tmp/" |
|
staticprotected |
◆ cache
◆ 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: