8 #ifndef META_OCEAN_TEST_TEST_DATA_H
9 #define META_OCEAN_TEST_TEST_DATA_H
84 inline const Value& value()
const;
91 inline const Frame& image()
const;
97 inline const Value& expectation()
const;
103 inline bool isValid()
const;
109 inline explicit operator bool()
const;
157 inline TestData::operator bool()
const
This class implements Ocean's image class.
Definition: Frame.h:1792
This class holds the test data necessary for one test iteration combining input data and potential ex...
Definition: TestData.h:36
const Value & expectation() const
Returns the potential expectation of this test object.
Definition: TestData.h:145
Value value_
The object's value, invalid if not defined.
Definition: TestData.h:117
bool isValid() const
Returns whether this object is valid and holds valid test data.
Definition: TestData.h:152
TestData(Value &&value, Value &&expectation=Value())
Creates a new test data object holding a value.
TestData()=default
Default constructor.
const Value & value() const
Returns the value of this object.
Definition: TestData.h:131
Frame image_
Definition: TestData.h:120
DataType
Definition of individual data types.
Definition: TestData.h:43
@ DT_INVALID
Invalid data type.
Definition: TestData.h:45
@ DT_VALUE
The data is a value.
Definition: TestData.h:47
@ DT_IMAGE
The data is an image.
Definition: TestData.h:49
DataType dataType_
The data type of this test object.
Definition: TestData.h:114
Value expectation_
The object's expectation, invalid if not defined.
Definition: TestData.h:123
DataType dataType() const
Returns the data type of this test data object.
Definition: TestData.h:126
TestData(Frame &&image, Value &&expectation)
Creates a new test data object holding an image.
const Frame & image() const
Returns the image of this object.
Definition: TestData.h:138
This class implements a type independent value.
Definition: Value.h:23
std::shared_ptr< TestData > SharedTestData
Definition of a shared pointer holding a TestData object.
Definition: TestData.h:29
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15