Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
Loading...
Searching...
No Matches
Protected Member Functions | Protected Attributes | List of all members
ChollaRootFixture Class Reference
Inheritance diagram for ChollaRootFixture:
Inheritance graph
[legend]
Collaboration diagram for ChollaRootFixture:
Collaboration graph
[legend]

Protected Member Functions

void SetUp () override
 
const std::filesystem::path & getRootPath () const
 

Protected Attributes

std::filesystem::path cholla_root_path_
 

Detailed Description

This is a reusable fixture for getting the path to the root of the Cholla directory

The basic idea is to use this fixture when you want to write a test that needs a file within the cholla directory. The fixture is designed so that if the path to the cholla directory can't be inferred, the associated test will be skipped.

At the time of writing, the tests will all be skipped if the path to the Cholla directory isn't explicitly provided on the command line. This fixture is being created so we can consider relaxing that requirement in the future.

Note
Right now, we are just using this for a single test. But, this will start to grow in the future.
Warning
A lot of care needs to be taken if you want to subclass this fixture (i.e. you need to explicitly call this fixture's SetUp method from the subclass's SetUp method)

Member Function Documentation

◆ getRootPath()

const std::filesystem::path & ChollaRootFixture::getRootPath ( ) const
inlineprotected

returns the path to the root of the cholla repository


The documentation for this class was generated from the following file: