ATLAS Offline Software
Loading...
Searching...
No Matches
UnitTestDir.h
Go to the documentation of this file.
1#ifndef ROOT_CORE_UTILS_UNIT_TEST_DIR_HH
2#define ROOT_CORE_UTILS_UNIT_TEST_DIR_HH
3
4// - 2012.
5// Distributed under the Boost Software License, Version 1.0.
6// (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8
9// Please feel free to contact me (krumnack@iastate.edu) for bug
10// reports, feature suggestions, praise and complaints.
11
12
17
18
19
21
22#include <string>
23
24namespace RCU
25{
27 {
28 //
29 // public interface
30 //
31
34 public:
35 void testInvariant () const;
36
37
42 public:
43 UnitTestDir (const std::string& package, const std::string& name);
44
45
47 private:
50
51
54 public:
55 ~UnitTestDir ();
56
57
60 public:
61 const std::string& path () const;
62
63
66 public:
67 bool cleanup () const;
68 void cleanup (bool val_cleanup);
69
70
71
72 //
73 // private interface
74 //
75
77 private:
78 std::string m_path;
79 private:
81 };
82}
83
84#endif
UnitTestDir(const UnitTestDir &)
rationale: I'm making these private to avoid copying
UnitTestDir & operator=(const UnitTestDir &)
const std::string & path() const
description: the path to the directory guarantee: no-fail
UnitTestDir(const std::string &package, const std::string &name)
effects: standard constructor guarantee: strong failures: out of memory failures: directory creation ...
~UnitTestDir()
effects: standard destructor guarantee: no-fail
void testInvariant() const
effects: test the invariant of this object guarantee: no-fail
std::string m_path
description: members directly corresponding to accessors
Definition UnitTestDir.h:78
bool cleanup() const
description: whether we clean up on completion guarantee: no-fail
This module defines a variety of assert style macros.
Definition Assert.cxx:26