RTC Toolkit 4.0.1
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
rtctk::componentFramework::test Namespace Reference

Classes

class  FakeClock
 
class  FakeOldbIf
 Implementation of a fake of OldbIf for testing. More...
 
class  FakePersistentRepoIf
 Implementation of a fake of PersistentRepoIf for testing. More...
 
class  FakeRedisProvider
 A fake provider that can also be used for external Redis unit testing. More...
 
class  FakeRepositoryIf
 Implementation of an in-memory fake repository for testing. More...
 
class  FakeRepositorySubscriber
 A very simple fake implementation of RepositorySubscriberIf to allow testing the interactions and callbacks over this API. More...
 
class  FakeRuntimeRepoIf
 Implementation of a fake of RuntimeRepoIf for testing. More...
 
class  MockExtRedisBackend
 Mock interface representing the external Redis backend. More...
 
class  MockPersistentRepoIf
 A mock of PersistentRepoIf. More...
 
class  MockRepositoryIf
 A mock of RepositoryIf. More...
 
class  MockRuntimeRepoIf
 A mock of RuntimeRepoIf. More...
 
class  RepositoryIfTestSuite
 A test suite for performing acceptance tests of a RepositoryIf implementation. More...
 

Typedefs

using OldbCreationResult = std::tuple< std::shared_ptr< elt::oldb::CiiOldb >, std::shared_ptr< MockExtRedisBackend >, std::shared_ptr< MockExtRedisBackend > >
 

Functions

 TYPED_TEST_SUITE_P (RepositoryIfTestSuite)
 
 TYPED_TEST_P (RepositoryIfTestSuite, DataPointCreationAndDeletion)
 
 TYPED_TEST_P (RepositoryIfTestSuite, TypesAreReturnedCorrectly)
 
 TYPED_TEST_P (RepositoryIfTestSuite, SizesAreReturnedCorrectly)
 
 TYPED_TEST_P (RepositoryIfTestSuite, DataPointWriteAndRead)
 
 TYPED_TEST_P (RepositoryIfTestSuite, DataPointExistanceConsistency)
 
 REGISTER_TYPED_TEST_SUITE_P (RepositoryIfTestSuite, DataPointCreationAndDeletion, TypesAreReturnedCorrectly, SizesAreReturnedCorrectly, DataPointWriteAndRead, DataPointExistanceConsistency)
 
OldbCreationResult CreateInMemoryOldbWithExtRedis ()
 This function prepares an in-memory OLDB with fake external Redis providers for unit testing.
 
std::shared_ptr< elt::oldb::CiiOldb > CreateInMemoryOldb ()
 This function prepares an in-memory OLDB that is suitable for unit testing.
 
void DeleteAllConfigDataPoints (const std::string &target_config_storage=elt::oldb::CiiOldbGlobal::CONFIG_STORAGE_CACHE)
 Deletes all configuration datapoints in the CII configuration service.
 
 INSTANTIATE_TYPED_TEST_SUITE_P (TestPersistentRepoAdapter, RepositoryIfTestSuite, RepositoryTypes, testing::internal::DefaultNameGenerator)
 

Typedef Documentation

◆ OldbCreationResult

using rtctk::componentFramework::test::OldbCreationResult = typedef std::tuple<std::shared_ptr<elt::oldb::CiiOldb>, std::shared_ptr<MockExtRedisBackend>, std::shared_ptr<MockExtRedisBackend> >

Function Documentation

◆ INSTANTIATE_TYPED_TEST_SUITE_P()

rtctk::componentFramework::test::INSTANTIATE_TYPED_TEST_SUITE_P ( TestPersistentRepoAdapter  ,
RepositoryIfTestSuite  ,
RepositoryTypes  ,
testing::internal::DefaultNameGenerator   
)

◆ REGISTER_TYPED_TEST_SUITE_P()

rtctk::componentFramework::test::REGISTER_TYPED_TEST_SUITE_P ( RepositoryIfTestSuite  ,
DataPointCreationAndDeletion  ,
TypesAreReturnedCorrectly  ,
SizesAreReturnedCorrectly  ,
DataPointWriteAndRead  ,
DataPointExistanceConsistency   
)

◆ TYPED_TEST_P() [1/5]

rtctk::componentFramework::test::TYPED_TEST_P ( RepositoryIfTestSuite  ,
DataPointCreationAndDeletion   
)

◆ TYPED_TEST_P() [2/5]

rtctk::componentFramework::test::TYPED_TEST_P ( RepositoryIfTestSuite  ,
DataPointExistanceConsistency   
)

◆ TYPED_TEST_P() [3/5]

rtctk::componentFramework::test::TYPED_TEST_P ( RepositoryIfTestSuite  ,
DataPointWriteAndRead   
)

◆ TYPED_TEST_P() [4/5]

rtctk::componentFramework::test::TYPED_TEST_P ( RepositoryIfTestSuite  ,
SizesAreReturnedCorrectly   
)

◆ TYPED_TEST_P() [5/5]

rtctk::componentFramework::test::TYPED_TEST_P ( RepositoryIfTestSuite  ,
TypesAreReturnedCorrectly   
)

◆ TYPED_TEST_SUITE_P()

rtctk::componentFramework::test::TYPED_TEST_SUITE_P ( RepositoryIfTestSuite  )