rad  5.1.0
Classes | Functions
testOldbAsyncWriter.cpp File Reference

Unit tests for the OldbAsyncWriter class. More...

#include <rad/oldbAsyncWriter.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 <boost/asio.hpp>
#include <gtest/gtest.h>

Classes

class  TestOldbAsyncWriter
 

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 >
bool CompareAttribute (const std::string &attribute_name, const T exp_value, rad::cii::OldbAdapter &oldb_adapter)
 
template<typename T >
bool CompareVector (const std::string &attribute_name, const std::vector< T > exp_values, rad::cii::OldbAdapter &oldb_adapter)
 
 TEST_F (TestOldbAsyncWriter, ctor)
 
 TEST_F (TestOldbAsyncWriter, WriteStr)
 
 TEST_F (TestOldbAsyncWriter, WriteAllBasicTypes)
 
 TEST_F (TestOldbAsyncWriter, WriteAllVectorTypes)
 

Detailed Description

Unit tests for the OldbAsyncWriter class.

Function Documentation

◆ CompareAttribute()

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

◆ CompareVector()

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

◆ 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/4]

TEST_F ( TestOldbAsyncWriter  ,
ctor   
)

◆ TEST_F() [2/4]

TEST_F ( TestOldbAsyncWriter  ,
WriteAllBasicTypes   
)

◆ TEST_F() [3/4]

TEST_F ( TestOldbAsyncWriter  ,
WriteAllVectorTypes   
)

◆ TEST_F() [4/4]

TEST_F ( TestOldbAsyncWriter  ,
WriteStr   
)