Compute Library
 22.08
SimpleTestCaseFactory< T > Class Template Referencefinal

Implementation of a test case factory to create non-data test cases. More...

#include <TestCaseFactory.h>

Collaboration diagram for SimpleTestCaseFactory< T >:
[legend]

Public Member Functions

std::unique_ptr< TestCasemake () const override
 Factory function to create the test case. More...
 
- Public Member Functions inherited from TestCaseFactory
 TestCaseFactory (std::string suite_name, std::string name, DatasetMode mode, Status status, std::string description="")
 Constructor. More...
 
virtual ~TestCaseFactory ()=default
 Default destructor. More...
 
std::string name () const
 Name of the test case. More...
 
DatasetMode mode () const
 Get the mode for which test case will be enabled. More...
 
Status status () const
 Get the status of the test case. More...
 

Additional Inherited Members

- Public Types inherited from TestCaseFactory
enum  Status { ACTIVE, EXPECTED_FAILURE, DISABLED }
 Test case status. More...
 

Detailed Description

template<typename T>
class arm_compute::test::framework::SimpleTestCaseFactory< T >

Implementation of a test case factory to create non-data test cases.

Definition at line 103 of file TestCaseFactory.h.

Member Function Documentation

◆ make()

std::unique_ptr< TestCase > make ( ) const
inlineoverridevirtual

Factory function to create the test case.

Returns
Unique pointer to a newly created test case.

Implements TestCaseFactory.

Definition at line 183 of file TestCaseFactory.h.

184 {
185  return std::make_unique<T>();
186 }

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