|
HART
0.1.0
High level Audio Regression and Testing
|
Runs the tests. More...
Classes | |
| class | AudioTestBuilder< SampleType > |
| A DSP host used for building and running tests inside a test case. More... | |
| class | TestRegistry |
| Runs the test cases. More... | |
Macros | |
| #define | HART_TEST_WITH_TAGS(name, tags) HART_ITEM_WITH_TAGS(name, tags, hart::TaskCategory::test) |
| Declares a test case with tags. | |
| #define | HART_GENERATE_WITH_TAGS(name, tags) HART_ITEM_WITH_TAGS(name, tags, hart::TaskCategory::generate) |
| Declares a generator with tags. | |
| #define | HART_TEST(name) HART_TEST_WITH_TAGS(name, "") |
| Declares a test case. | |
| #define | HART_GENERATE(name) HART_GENERATE_WITH_TAGS(name, "") |
| Declares a generator. | |
| #define | HART_REQUIRES_DATA_PATH_ARG if (hart::CLIConfig::getInstance().getDataRootPath().empty()) { throw hart::ConfigurationError ("This test requires a data path set by the --data-root-path CLI argument, but it's empty"); } |
| Put it at the beginning of your tese case if it requires a properly set data path. | |
| #define | HART_RUN_ALL_TESTS(argc, argv) |
Runs all tests or generators @prief Place this macro in your main() function. | |
Enumerations | |
| enum class | Save { always , whenFails , never } |
| Determines when to save a file. More... | |
Functions | |
| template<typename DSPType > | |
| AudioTestBuilder< typename std::decay< DSPType >::type::SampleTypePublicAlias > | processAudioWith (DSPType &&dsp) |
| Call this to start building your test. | |
| template<typename DSPType > | |
| AudioTestBuilder< typename DSPType::SampleTypePublicAlias > | processAudioWith (std::unique_ptr< DSPType > &&dsp) |
| Call this to start building your test. | |
Runs the tests.
| #define HART_TEST_WITH_TAGS | ( | name, | |
| tags | |||
| ) | HART_ITEM_WITH_TAGS(name, tags, hart::TaskCategory::test) |
| #define HART_GENERATE_WITH_TAGS | ( | name, | |
| tags | |||
| ) | HART_ITEM_WITH_TAGS(name, tags, hart::TaskCategory::generate) |
| #define HART_TEST | ( | name | ) | HART_TEST_WITH_TAGS(name, "") |
| #define HART_GENERATE | ( | name | ) | HART_GENERATE_WITH_TAGS(name, "") |
| #define HART_REQUIRES_DATA_PATH_ARG if (hart::CLIConfig::getInstance().getDataRootPath().empty()) { throw hart::ConfigurationError ("This test requires a data path set by the --data-root-path CLI argument, but it's empty"); } |
| #define HART_RUN_ALL_TESTS | ( | argc, | |
| argv | |||
| ) |
Runs all tests or generators @prief Place this macro in your main() function.
Determines when to save a file.
| Enumerator | |
|---|---|
| always | File will be saved always, after the test is performed. |
| whenFails | File will be saved only when the test has failed. |
| never | File will not be saved. |
Definition at line 28 of file hart_process_audio.hpp.
|
related |
Call this to start building your test.
| dsp | Instance of your DSP effect |
Definition at line 564 of file hart_process_audio.hpp.
|
related |
Call this to start building your test.
Call this for DSP objects that do not support moving or copying
| dsp | Instance of your DSP effect wrapped in a smart pointer |
Definition at line 576 of file hart_process_audio.hpp.