Run a unit test from a unique temporary working directory. More...
#include <MooseUnitUtils.h>
Public Member Functions | |
| ScopedTestDirectory (const std::vector< std::filesystem::path > &inputs) | |
| ~ScopedTestDirectory () | |
| ScopedTestDirectory (const ScopedTestDirectory &)=delete | |
| ScopedTestDirectory & | operator= (const ScopedTestDirectory &)=delete |
| const std::filesystem::path & | path () const |
Static Private Member Functions | |
| static std::filesystem::path | createPath () |
Private Attributes | |
| const std::filesystem::path | _original_path |
| Working directory to restore upon destruction. | |
| const std::filesystem::path | _path |
| Unique temporary working directory. | |
Run a unit test from a unique temporary working directory.
The provided inputs are copied into the temporary directory using their file names. The original working directory is restored and the temporary directory is removed upon destruction.
Definition at line 140 of file MooseUnitUtils.h.
|
explicit |
Definition at line 42 of file MooseUnitUtils.C.
| Moose::UnitUtils::ScopedTestDirectory::~ScopedTestDirectory | ( | ) |
Definition at line 60 of file MooseUnitUtils.C.
|
delete |
|
staticprivate |
Definition at line 69 of file MooseUnitUtils.C.
|
delete |
|
inline |
Definition at line 152 of file MooseUnitUtils.h.
Referenced by createPath().
|
private |
Working directory to restore upon destruction.
Definition at line 158 of file MooseUnitUtils.h.
Referenced by ~ScopedTestDirectory().
|
private |
Unique temporary working directory.
Definition at line 160 of file MooseUnitUtils.h.
Referenced by path(), ScopedTestDirectory(), and ~ScopedTestDirectory().