TsArray Class Reference

Test suite for the Array Class. More...

#include <TsArray.h>

Inheritance diagram for TsArray:

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 Member Functions

 CPPUNIT_TEST (tcArray)
 
 CPPUNIT_TEST (tcGetDimension)
 
 CPPUNIT_TEST (tcGetElementsTypeCode)
 
 CPPUNIT_TEST (tcGetDimensionSize)
 
 CPPUNIT_TEST (tcInsert)
 
 CPPUNIT_TEST (tcGetData)
 
 CPPUNIT_TEST (tcOperatorBraket)
 
 CPPUNIT_TEST (tcClone)
 
 CPPUNIT_TEST (tcGetTypeCode)
 
 CPPUNIT_TEST (tcToString)
 
 CPPUNIT_TEST_SUITE (TsArray)
 
 CPPUNIT_TEST_SUITE_END ()
 

Private Attributes

te::dt::Arraymyarray
 
te::gm::Pointmypoint1
 
te::gm::Pointmypoint2
 
te::gm::Pointmypoint3
 
te::gm::Pointmypoint4
 
te::gm::Pointmypoint5
 
std::vector< std::size_t > pos
 

Detailed Description

Test suite for the Array Class.

This test suite will check the following:

Definition at line 59 of file TsArray.h.

Member Function Documentation

TsArray::CPPUNIT_TEST ( tcArray  )
private
TsArray::CPPUNIT_TEST ( tcGetDimension  )
private
TsArray::CPPUNIT_TEST ( tcGetElementsTypeCode  )
private
TsArray::CPPUNIT_TEST ( tcGetDimensionSize  )
private
TsArray::CPPUNIT_TEST ( tcInsert  )
private
TsArray::CPPUNIT_TEST ( tcGetData  )
private
TsArray::CPPUNIT_TEST ( tcOperatorBraket  )
private
TsArray::CPPUNIT_TEST ( tcClone  )
private
TsArray::CPPUNIT_TEST ( tcGetTypeCode  )
private
TsArray::CPPUNIT_TEST ( tcToString  )
private
TsArray::CPPUNIT_TEST_SUITE ( TsArray  )
private
TsArray::CPPUNIT_TEST_SUITE_END ( )
private
void TsArray::setUp ( )
void TsArray::tcClone ( )
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().

void TsArray::tcGetData ( )
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.

void TsArray::tcGetDimension ( )
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.

void TsArray::tcGetDimensionSize ( )
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.

void TsArray::tcGetElementsTypeCode ( )
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.

void TsArray::tcGetTypeCode ( )
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.

void TsArray::tcOperatorBraket ( )
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.

void TsArray::tcToString ( )
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.

References myarray, and pos.

Member Data Documentation

te::gm::Point* TsArray::mypoint1
private

Definition at line 128 of file TsArray.h.

Referenced by setUp(), tcGetData(), and tcOperatorBraket().

te::gm::Point* TsArray::mypoint2
private

Definition at line 129 of file TsArray.h.

Referenced by setUp().

te::gm::Point* TsArray::mypoint3
private

Definition at line 130 of file TsArray.h.

Referenced by setUp().

te::gm::Point* TsArray::mypoint4
private

Definition at line 131 of file TsArray.h.

Referenced by setUp().

te::gm::Point* TsArray::mypoint5
private

Definition at line 132 of file TsArray.h.

Referenced by setUp(), and tcGetData().

std::vector<std::size_t> TsArray::pos
private

Definition at line 127 of file TsArray.h.

Referenced by setUp(), tcArray(), tcGetData(), tcGetDimension(), tcInsert(), tcOperatorBraket(), and tearDown().


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