21.02
|
Test filter class. More...
#include <TestFilter.h>
Public Member Functions | |
TestFilter ()=default | |
Default constructor. More... | |
TestFilter (DatasetMode mode, const std::string &name_filter, const std::string &id_filter) | |
Constructor. More... | |
bool | is_selected (const TestInfo &info) const |
Check if a test case is selected to be executed. More... | |
Test filter class.
Stores information about which test cases are selected for execution. Based on test name and test id.
Definition at line 46 of file TestFilter.h.
|
default |
Default constructor.
All tests selected.
TestFilter | ( | DatasetMode | mode, |
const std::string & | name_filter, | ||
const std::string & | id_filter | ||
) |
Constructor.
The id_filter string has be a comma separated list of test ids. ... can be used to include a range of tests. For instance, "..., 15" means all test up to and including 15, "3, 6, ..., 10" means tests 3 and 6 to 10, and "15, ..." means test 15 and all following.
[in] | mode | Dataset mode. |
[in] | name_filter | Regular expression to filter tests by name. Only matching tests will be executed. |
[in] | id_filter | String to match selected test ids. Only matching tests will be executed. |
Definition at line 38 of file TestFilter.cpp.
bool is_selected | ( | const TestInfo & | info | ) | const |
Check if a test case is selected to be executed.
[in] | info | Test case info. |
Definition at line 43 of file TestFilter.cpp.
References arm_compute::test::framework::DISABLED, TestInfo::id, TestInfo::mode, TestInfo::name, arm_compute::test::validation::reference::range(), and caffe_data_extractor::str.