Test suite for the Array Class. More...
#include <TsArray.h>
Public Member Functions | |
| void | setUp () |
| void | tearDown () |
Protected Member Functions | |
| void | tcArray () |
| Test Case: Multi-dimensional array constructor. More... | |
| void | tcClone () |
| Test Case: It creates a new clone of the array. More... | |
| void | tcGetData () |
| Test Case: Returns data from specified position. More... | |
| void | tcGetDimension () |
| Test Case: Returns the number of dimensions of the array. More... | |
| void | tcGetDimensionSize () |
| Test Case: Gets the number of elements in the i-th dimension. More... | |
| void | tcGetElementsTypeCode () |
| Test Case: Returns the data type of the elements of the array. More... | |
| void | tcGetTypeCode () |
| Test Case: Copy Constructor. More... | |
| void | tcInsert () |
| Test Case: Inserts data into specified position. More... | |
| void | tcOperatorBraket () |
| Test Case: Access data in i index. More... | |
| void | tcToString () |
| Test Case: It returns an string representation of Array. More... | |
Private Attributes | |
| te::dt::Array * | myarray |
| te::gm::Point * | mypoint1 |
| te::gm::Point * | mypoint2 |
| te::gm::Point * | mypoint3 |
| te::gm::Point * | mypoint4 |
| te::gm::Point * | mypoint5 |
| std::vector< std::size_t > | pos |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void TsArray::setUp | ( | ) |
Definition at line 29 of file TsArray.cpp.
References te::dt::GEOMETRY_TYPE, te::dt::Array::insert(), myarray, mypoint1, mypoint2, mypoint3, mypoint4, mypoint5, pos, and te::dt::Array::toString().
|
protected |
Test Case: Multi-dimensional array constructor.
Definition at line 75 of file TsArray.cpp.
References te::dt::ARRAY_TYPE, te::dt::GEOMETRY_TYPE, te::dt::Array::getData(), te::dt::Array::getDimension(), te::dt::Array::getElementsTypeCode(), te::dt::Array::getTypeCode(), te::dt::Array::insert(), te::gm::LineStringType, te::gm::PolygonType, pos, te::gm::CurvePolygon::push_back(), te::gm::LineString::setPoint(), and te::dt::Array::toString().
|
protected |
Test Case: It creates a new clone of the array.
Definition at line 243 of file TsArray.cpp.
References te::dt::Array::clone(), myarray, te::dt::AbstractData::toString(), and te::dt::Array::toString().
|
protected |
Test Case: Returns data from specified position.
Definition at line 199 of file TsArray.cpp.
References te::gm::Geometry::equals(), te::dt::Array::getData(), myarray, mypoint1, mypoint5, and pos.
|
protected |
Test Case: Returns the number of dimensions of the array.
Definition at line 120 of file TsArray.cpp.
References te::dt::ARRAY_TYPE, b, te::dt::Array::getDimension(), te::dt::Array::getElementsTypeCode(), te::dt::Array::getTypeCode(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, and pos.
|
protected |
Test Case: Gets the number of elements in the i-th dimension.
Definition at line 159 of file TsArray.cpp.
References te::dt::Array::getDimensionSize(), and myarray.
|
protected |
Test Case: Returns the data type of the elements of the array.
Definition at line 152 of file TsArray.cpp.
References te::dt::GEOMETRY_TYPE, te::dt::Array::getElementsTypeCode(), and myarray.
|
protected |
Test Case: Copy Constructor.
Test Case: Returns the type code for array data: te::dt::ARRAY_TYPE.
Definition at line 253 of file TsArray.cpp.
References te::dt::ARRAY_TYPE, te::dt::Array::getTypeCode(), and myarray.
|
protected |
Test Case: Inserts data into specified position.
Definition at line 169 of file TsArray.cpp.
References te::dt::ARRAY_TYPE, te::dt::GEOMETRY_TYPE, te::dt::Array::getData(), te::dt::Array::getDimension(), te::dt::Array::getDimensionSize(), te::dt::Array::getElementsTypeCode(), te::dt::Array::getTypeCode(), te::dt::Array::insert(), myarray, pos, and te::dt::Array::toString().
|
protected |
Test Case: Access data in i index.
Definition at line 221 of file TsArray.cpp.
References te::gm::Geometry::equals(), te::gm::Point::getX(), te::gm::Point::getY(), myarray, mypoint1, and pos.
|
protected |
Test Case: It returns an string representation of Array.
Definition at line 260 of file TsArray.cpp.
References myarray, and te::dt::Array::toString().
| void TsArray::tearDown | ( | ) |
Definition at line 69 of file TsArray.cpp.
|
private |
Definition at line 126 of file TsArray.h.
Referenced by setUp(), tcClone(), tcGetData(), tcGetDimensionSize(), tcGetElementsTypeCode(), tcGetTypeCode(), tcInsert(), tcOperatorBraket(), tcToString(), and tearDown().
|
private |
Definition at line 128 of file TsArray.h.
Referenced by setUp(), tcGetData(), and tcOperatorBraket().
|
private |
|
private |
|
private |
|
private |
Definition at line 132 of file TsArray.h.
Referenced by setUp(), and tcGetData().
|
private |
Definition at line 127 of file TsArray.h.
Referenced by setUp(), tcArray(), tcGetData(), tcGetDimension(), tcInsert(), tcOperatorBraket(), and tearDown().