rad 6.2.0
Loading...
Searching...
No Matches
Classes | Functions
testOldbAdapter.cpp File Reference

Unit tests for the OldbAdapter class. More...

#include <rad/cii/oldbAdapter.hpp>
#include <ciiOldbFactory.hpp>
#include <ciiOldbProviderFactory.hpp>
#include <ciiOldbDataPoint.hpp>
#include <ciiOldbSubscription.hpp>
#include <ciiOldbConfigClass.hpp>
#include <meta/mdOldb.hpp>
#include <meta/mdOldbMatrix.hpp>
#include <mal/utility/Uri.hpp>
#include <provider/ciiOldbInMemoryDataPointProvider.hpp>
#include <provider/ciiOldbLocalFileProvider.hpp>
#include <provider/ciiOldbDirectoryTreeProvider.hpp>
#include <gtest/gtest.h>

Classes

class  OldbAdapterDummy
 
class  OldbAdapterBad
 
class  TestOldbAdapter
 

Functions

template<typename T >
void CreateMetadataAndAttribute (const std::string &metadata_instance_name, const std::string &attribute_name, std::shared_ptr< elt::oldb::CiiOldb > oldb_client)
 
template<typename T >
void VerifyAttribute (const std::string &attribute_name, const T exp_value, rad::cii::OldbAdapter &oldb_adapter)
 
template<typename T >
void VerifyVector (const std::string &attribute_name, const std::vector< T > exp_values, rad::cii::OldbAdapter &oldb_adapter)
 
 TEST_F (TestOldbAdapter, Ctor)
 
 TEST_F (TestOldbAdapter, CtorDummy)
 
 TEST_F (TestOldbAdapter, String)
 
 TEST_F (TestOldbAdapter, Int32)
 
 TEST_F (TestOldbAdapter, Failures)
 
 TEST_F (TestOldbAdapter, TrySetScalarTypes)
 
 TEST_F (TestOldbAdapter, TrySetVectorTypes)
 
 TEST_F (TestOldbAdapter, TrySetMatrixTypes)
 

Detailed Description

Unit tests for the OldbAdapter class.

Author
landolfa

Function Documentation

◆ CreateMetadataAndAttribute()

template<typename T >
void CreateMetadataAndAttribute ( const std::string & metadata_instance_name,
const std::string & attribute_name,
std::shared_ptr< elt::oldb::CiiOldb > oldb_client )

◆ TEST_F() [1/8]

TEST_F ( TestOldbAdapter ,
Ctor  )

◆ TEST_F() [2/8]

TEST_F ( TestOldbAdapter ,
CtorDummy  )

◆ TEST_F() [3/8]

TEST_F ( TestOldbAdapter ,
Failures  )

◆ TEST_F() [4/8]

TEST_F ( TestOldbAdapter ,
Int32  )

◆ TEST_F() [5/8]

TEST_F ( TestOldbAdapter ,
String  )

◆ TEST_F() [6/8]

TEST_F ( TestOldbAdapter ,
TrySetMatrixTypes  )

◆ TEST_F() [7/8]

TEST_F ( TestOldbAdapter ,
TrySetScalarTypes  )

◆ TEST_F() [8/8]

TEST_F ( TestOldbAdapter ,
TrySetVectorTypes  )

◆ VerifyAttribute()

template<typename T >
void VerifyAttribute ( const std::string & attribute_name,
const T exp_value,
rad::cii::OldbAdapter & oldb_adapter )

◆ VerifyVector()

template<typename T >
void VerifyVector ( const std::string & attribute_name,
const std::vector< T > exp_values,
rad::cii::OldbAdapter & oldb_adapter )