#include <UnitTestDir.h>
Definition at line 26 of file UnitTestDir.h.
◆ UnitTestDir() [1/2]
RCU::UnitTestDir::UnitTestDir |
( |
const std::string & |
package, |
|
|
const std::string & |
name |
|
) |
| |
effects: standard constructor guarantee: strong failures: out of memory failures: directory creation errors
Definition at line 36 of file UnitTestDir.cxx.
46 output += (
"/ut-" +
package + "-" + name + ".$$").c_str();
47 gSystem->ExpandPathName (
output);
50 if (gSystem->MakeDirectory (
output.Data()) != 0)
◆ UnitTestDir() [2/2]
rationale: I'm making these private to avoid copying
◆ ~UnitTestDir()
RCU::UnitTestDir::~UnitTestDir |
( |
| ) |
|
effects: standard destructor guarantee: no-fail
Definition at line 56 of file UnitTestDir.cxx.
62 gSystem->Exec ((
"rm -rf " +
m_path).c_str());
◆ cleanup() [1/2]
bool RCU::UnitTestDir::cleanup |
( |
| ) |
const |
description: whether we clean up on completion guarantee: no-fail
Definition at line 78 of file UnitTestDir.cxx.
◆ cleanup() [2/2]
void RCU::UnitTestDir::cleanup |
( |
bool |
val_cleanup | ) |
|
◆ operator=()
◆ path()
const std::string & RCU::UnitTestDir::path |
( |
| ) |
const |
description: the path to the directory guarantee: no-fail
Definition at line 69 of file UnitTestDir.cxx.
◆ testInvariant()
void RCU::UnitTestDir::testInvariant |
( |
| ) |
const |
effects: test the invariant of this object guarantee: no-fail
Definition at line 28 of file UnitTestDir.cxx.
◆ m_cleanup
bool RCU::UnitTestDir::m_cleanup |
|
private |
◆ m_path
std::string RCU::UnitTestDir::m_path |
|
private |
description: members directly corresponding to accessors
Definition at line 78 of file UnitTestDir.h.
The documentation for this class was generated from the following files: