ATLAS Offline Software
Loading...
Searching...
No Matches
UnitTestDir.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#ifndef ROOT_CORE_UTILS_UNIT_TEST_DIR_HH
8#define ROOT_CORE_UTILS_UNIT_TEST_DIR_HH
9
12
13
14
16
17#include <string>
18
19namespace RCU
20{
22 {
23 //
24 // public interface
25 //
26
29 public:
30 void testInvariant () const;
31
32
37 public:
38 UnitTestDir (const std::string& package, const std::string& name);
39
40
42 private:
45
46
49 public:
50 ~UnitTestDir ();
51
52
55 public:
56 const std::string& path () const;
57
58
61 public:
62 bool cleanup () const;
63 void cleanup (bool val_cleanup);
64
65
66
67 //
68 // private interface
69 //
70
72 private:
73 std::string m_path;
74 private:
76 };
77}
78
79#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:73
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:23