RTC Toolkit  0.1.0-alpha
Classes | Typedefs | Functions
testFileRepository.cpp File Reference
#include <cstdio>
#include <dirent.h>
#include <algorithm>
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <yaml-cpp/yaml.h>
#include <fstream>
#include "rtctk/componentFramework/fileRepository.hpp"

Classes

struct  TestFileRepository
 
struct  TestFileRepositoryWithZeroFitsThreshold
 
struct  TestFileRepositoryWithPrecreatedYaml
 
struct  TestFileRepositoryHierarchy
 

Typedefs

using Request = rtctk::componentFramework::RepositoryIf::Request
 
using Response = rtctk::componentFramework::RepositoryIf::Response
 

Functions

 TEST_F (TestFileRepository, DataPointCreationAndDeletion)
 
 TEST_F (TestFileRepository, DataPointCreationTemplateVersion)
 
 TEST_F (TestFileRepository, DataPointCreationWithDefaults)
 
 TEST_F (TestFileRepository, SynchronousDataAccessBool)
 
 TEST_F (TestFileRepository, SynchronousDataAccessInt32)
 
 TEST_F (TestFileRepository, SynchronousDataAccessInt64)
 
 TEST_F (TestFileRepository, SynchronousDataAccessFloat)
 
 TEST_F (TestFileRepository, SynchronousDataAccessDouble)
 
 TEST_F (TestFileRepository, SynchronousDataAccessString)
 
 TEST_F (TestFileRepository, SynchronousDataAccessVectorBool)
 
 TEST_F (TestFileRepository, SynchronousDataAccessVectorInt32)
 
 TEST_F (TestFileRepository, SynchronousDataAccessVectorInt64)
 
 TEST_F (TestFileRepository, SynchronousDataAccessVectorFloat)
 
 TEST_F (TestFileRepository, SynchronousDataAccessVectorDouble)
 
 TEST_F (TestFileRepository, SynchronousDataAccessVectorString)
 
 TEST_F (TestFileRepository, SynchronousDataAccessMatrixBool)
 
 TEST_F (TestFileRepository, SynchronousDataAccessMatrixInt32)
 
 TEST_F (TestFileRepository, SynchronousDataAccessMatrixInt64)
 
 TEST_F (TestFileRepository, SynchronousDataAccessMatrixFloat)
 
 TEST_F (TestFileRepository, SynchronousDataAccessMatrixDouble)
 
 TEST_F (TestFileRepository, SynchronousDataAccessMatrixString)
 
 TEST_F (TestFileRepository, AsynchronousDataAccessBool)
 
 TEST_F (TestFileRepository, AsynchronousDataAccessInt32)
 
 TEST_F (TestFileRepository, AsynchronousDataAccessInt64)
 
 TEST_F (TestFileRepository, AsynchronousDataAccessFloat)
 
 TEST_F (TestFileRepository, AsynchronousDataAccessDouble)
 
 TEST_F (TestFileRepository, AsynchronousDataAccessString)
 
 TEST_F (TestFileRepository, CheckingForDataPointExistence)
 
 TEST_F (TestFileRepository, CheckExceptionForMissingPath)
 
 TEST_F (TestFileRepositoryWithZeroFitsThreshold, SynchronousDataAccessVectorBool)
 
 TEST_F (TestFileRepositoryWithZeroFitsThreshold, SynchronousDataAccessVectorInt32)
 
 TEST_F (TestFileRepositoryWithZeroFitsThreshold, SynchronousDataAccessVectorInt64)
 
 TEST_F (TestFileRepositoryWithZeroFitsThreshold, SynchronousDataAccessVectorFloat)
 
 TEST_F (TestFileRepositoryWithZeroFitsThreshold, SynchronousDataAccessVectorDouble)
 
 TEST_F (TestFileRepositoryWithZeroFitsThreshold, SynchronousDataAccessMatrixBool)
 
 TEST_F (TestFileRepositoryWithZeroFitsThreshold, SynchronousDataAccessMatrixInt32)
 
 TEST_F (TestFileRepositoryWithZeroFitsThreshold, SynchronousDataAccessMatrixInt64)
 
 TEST_F (TestFileRepositoryWithZeroFitsThreshold, SynchronousDataAccessMatrixFloat)
 
 TEST_F (TestFileRepositoryWithZeroFitsThreshold, SynchronousDataAccessMatrixDouble)
 
 TEST_F (TestFileRepositoryWithPrecreatedYaml, SynchronousDataAccessMatrixDouble)
 
 TEST_F (TestFileRepositoryHierarchy, QueryingFolderHierarchyRootdir)
 
 TEST_F (TestFileRepositoryHierarchy, QueryingFolderHierarchyTopdir)
 
 TEST_F (TestFileRepositoryHierarchy, QueryingFolderHierarchySubdir1)
 
 TEST_F (TestFileRepositoryHierarchy, QueryingFolderHierarchySubdir2)
 
 TEST_F (TestFileRepositoryHierarchy, QueryingFolderHierarchyDatapoint)
 

Typedef Documentation

◆ Request

◆ Response

Function Documentation

◆ TEST_F() [1/45]

TEST_F ( TestFileRepository  ,
AsynchronousDataAccessBool   
)

◆ TEST_F() [2/45]

TEST_F ( TestFileRepository  ,
AsynchronousDataAccessDouble   
)

◆ TEST_F() [3/45]

TEST_F ( TestFileRepository  ,
AsynchronousDataAccessFloat   
)

◆ TEST_F() [4/45]

TEST_F ( TestFileRepository  ,
AsynchronousDataAccessInt32   
)

◆ TEST_F() [5/45]

TEST_F ( TestFileRepository  ,
AsynchronousDataAccessInt64   
)

◆ TEST_F() [6/45]

TEST_F ( TestFileRepository  ,
AsynchronousDataAccessString   
)

◆ TEST_F() [7/45]

TEST_F ( TestFileRepository  ,
CheckExceptionForMissingPath   
)

◆ TEST_F() [8/45]

TEST_F ( TestFileRepository  ,
CheckingForDataPointExistence   
)

◆ TEST_F() [9/45]

TEST_F ( TestFileRepository  ,
DataPointCreationAndDeletion   
)

◆ TEST_F() [10/45]

TEST_F ( TestFileRepository  ,
DataPointCreationTemplateVersion   
)

◆ TEST_F() [11/45]

TEST_F ( TestFileRepository  ,
DataPointCreationWithDefaults   
)

◆ TEST_F() [12/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessBool   
)

◆ TEST_F() [13/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessDouble   
)

◆ TEST_F() [14/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessFloat   
)

◆ TEST_F() [15/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessInt32   
)

◆ TEST_F() [16/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessInt64   
)

◆ TEST_F() [17/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessMatrixBool   
)

◆ TEST_F() [18/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessMatrixDouble   
)

◆ TEST_F() [19/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessMatrixFloat   
)

◆ TEST_F() [20/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessMatrixInt32   
)

◆ TEST_F() [21/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessMatrixInt64   
)

◆ TEST_F() [22/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessMatrixString   
)

◆ TEST_F() [23/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessString   
)

◆ TEST_F() [24/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessVectorBool   
)

◆ TEST_F() [25/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessVectorDouble   
)

◆ TEST_F() [26/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessVectorFloat   
)

◆ TEST_F() [27/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessVectorInt32   
)

◆ TEST_F() [28/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessVectorInt64   
)

◆ TEST_F() [29/45]

TEST_F ( TestFileRepository  ,
SynchronousDataAccessVectorString   
)

◆ TEST_F() [30/45]

TEST_F ( TestFileRepositoryHierarchy  ,
QueryingFolderHierarchyDatapoint   
)

◆ TEST_F() [31/45]

TEST_F ( TestFileRepositoryHierarchy  ,
QueryingFolderHierarchyRootdir   
)

◆ TEST_F() [32/45]

TEST_F ( TestFileRepositoryHierarchy  ,
QueryingFolderHierarchySubdir1   
)

◆ TEST_F() [33/45]

TEST_F ( TestFileRepositoryHierarchy  ,
QueryingFolderHierarchySubdir2   
)

◆ TEST_F() [34/45]

TEST_F ( TestFileRepositoryHierarchy  ,
QueryingFolderHierarchyTopdir   
)

◆ TEST_F() [35/45]

TEST_F ( TestFileRepositoryWithPrecreatedYaml  ,
SynchronousDataAccessMatrixDouble   
)

◆ TEST_F() [36/45]

TEST_F ( TestFileRepositoryWithZeroFitsThreshold  ,
SynchronousDataAccessMatrixBool   
)

◆ TEST_F() [37/45]

TEST_F ( TestFileRepositoryWithZeroFitsThreshold  ,
SynchronousDataAccessMatrixDouble   
)

◆ TEST_F() [38/45]

TEST_F ( TestFileRepositoryWithZeroFitsThreshold  ,
SynchronousDataAccessMatrixFloat   
)

◆ TEST_F() [39/45]

TEST_F ( TestFileRepositoryWithZeroFitsThreshold  ,
SynchronousDataAccessMatrixInt32   
)

◆ TEST_F() [40/45]

TEST_F ( TestFileRepositoryWithZeroFitsThreshold  ,
SynchronousDataAccessMatrixInt64   
)

◆ TEST_F() [41/45]

TEST_F ( TestFileRepositoryWithZeroFitsThreshold  ,
SynchronousDataAccessVectorBool   
)

◆ TEST_F() [42/45]

TEST_F ( TestFileRepositoryWithZeroFitsThreshold  ,
SynchronousDataAccessVectorDouble   
)

◆ TEST_F() [43/45]

TEST_F ( TestFileRepositoryWithZeroFitsThreshold  ,
SynchronousDataAccessVectorFloat   
)

◆ TEST_F() [44/45]

TEST_F ( TestFileRepositoryWithZeroFitsThreshold  ,
SynchronousDataAccessVectorInt32   
)

◆ TEST_F() [45/45]

TEST_F ( TestFileRepositoryWithZeroFitsThreshold  ,
SynchronousDataAccessVectorInt64   
)