|
RTC Toolkit 5.1.0
|
Test program for PersistentRepoAdapter integration tests. More...
#include <algorithm>#include <config-ng/ciiConfigApi.hpp>#include <filesystem>#include <fmt/format.h>#include <fstream>#include <gmock/gmock.h>#include <gtest/gtest.h>#include <tuple>#include "rtctk/componentFramework/test/repositoryIfTestSuiteLegacy.hpp"#include <rtctk/componentFramework/fitsIoFunctions.hpp>#include <rtctk/componentFramework/persistentRepoAdapter.hpp>#include <rtctk/componentFramework/typeTraits.hpp>Classes | |
| class | TestPersistentRepoAdapter |
| class | TestPersistentRepoAdapterWithFits< T > |
| Test fixture for specific tests related to FITS file reading and writing. More... | |
Namespaces | |
| namespace | rtctk |
| namespace | rtctk::componentFramework |
| namespace | rtctk::componentFramework::test |
Typedefs | |
| using | PathList = RepositoryIf::PathList |
| typedef testing::Types< PersistentRepoAdapter > | RepositoryTypes |
| using | DataPointTypes |
Functions | |
| rtctk::componentFramework::test::INSTANTIATE_TYPED_TEST_SUITE_P (TestPersistentRepoAdapter, RepositoryIfTestSuiteLegacy, RepositoryTypes, testing::internal::DefaultNameGenerator) | |
| TEST_F (TestPersistentRepoAdapter, DataPointCreationAndDeletion) | |
| TEST_F (TestPersistentRepoAdapter, TypesAreReturnedCorrectly) | |
| TEST_F (TestPersistentRepoAdapter, SizesAreReturnedCorrectly) | |
| TEST_F (TestPersistentRepoAdapter, DataPointWriteAndRead) | |
| template<typename T > | |
| auto | CreateReferenceData () |
| Helper function to prepare input test data for a specific datapoint type. | |
| template<typename T > | |
| auto | CreateEmptyResultBuffer () |
| Helper function to prepare an empty output buffer for a specific datapoint type. | |
| template<typename T , typename D > | |
| auto | PrepareSpan (D &data) |
| Helper function to prepare a span object associated with a data buffer. | |
| template<typename T > | |
| void | TestWriteAndReadWithSpansForType (RepositoryIf *adapter) |
| Helper function to test read and write operations using spans. | |
| TEST_F (TestPersistentRepoAdapter, DataPointWriteAndReadWithSpans) | |
| TEST_F (TestPersistentRepoAdapter, GetChildren) | |
| TEST_F (TestPersistentRepoAdapter, GetChildrenEdgeCase1) | |
| TEST_F (TestPersistentRepoAdapter, GetChildrenEdgeCase2) | |
| TEST_F (TestPersistentRepoAdapter, GetChildrenEdgeCase3) | |
| TEST_F (TestPersistentRepoAdapter, ReadFitsFilesFromExternalUris) | |
| TYPED_TEST_SUITE (TestPersistentRepoAdapterWithFits, DataPointTypes) | |
| TYPED_TEST (TestPersistentRepoAdapterWithFits, WriteAndReadSmallData) | |
| TYPED_TEST (TestPersistentRepoAdapterWithFits, WriteAndReadLargeData) | |
| TYPED_TEST (TestPersistentRepoAdapterWithFits, SwitchFromSmallToLarge) | |
| TYPED_TEST (TestPersistentRepoAdapterWithFits, SwitchFromLargeToSmall) | |
| int | main (int argc, char **argv) |
Variables | |
| std::string | g_repodir = std::string("persistentRepoTest-pid-") + std::to_string(getpid()) |
Test program for PersistentRepoAdapter integration tests.
| using DataPointTypes |
| using PathList = RepositoryIf::PathList |
| typedef testing::Types<PersistentRepoAdapter> RepositoryTypes |
| auto CreateEmptyResultBuffer | ( | ) |
Helper function to prepare an empty output buffer for a specific datapoint type.
| T | The datapoint type for which to prepare output buffer. |
| auto CreateReferenceData | ( | ) |
Helper function to prepare input test data for a specific datapoint type.
| T | The datapoint type for which to prepare reference test data. |
| int main | ( | int | argc, |
| char ** | argv ) |
| auto PrepareSpan | ( | D & | data | ) |
Helper function to prepare a span object associated with a data buffer.
This function works with buffers created by CreateReferenceData or CreateEmptyResultBuffer.
| T | The data type of the datapoint that is being created. |
| D | The data type of the buffer. |
| data | The data buffer that the span will alias. |
| TEST_F | ( | TestPersistentRepoAdapter | , |
| DataPointCreationAndDeletion | ) |
| TEST_F | ( | TestPersistentRepoAdapter | , |
| DataPointWriteAndRead | ) |
| TEST_F | ( | TestPersistentRepoAdapter | , |
| DataPointWriteAndReadWithSpans | ) |
| TEST_F | ( | TestPersistentRepoAdapter | , |
| GetChildren | ) |
| TEST_F | ( | TestPersistentRepoAdapter | , |
| GetChildrenEdgeCase1 | ) |
| TEST_F | ( | TestPersistentRepoAdapter | , |
| GetChildrenEdgeCase2 | ) |
| TEST_F | ( | TestPersistentRepoAdapter | , |
| GetChildrenEdgeCase3 | ) |
| TEST_F | ( | TestPersistentRepoAdapter | , |
| ReadFitsFilesFromExternalUris | ) |
| TEST_F | ( | TestPersistentRepoAdapter | , |
| SizesAreReturnedCorrectly | ) |
| TEST_F | ( | TestPersistentRepoAdapter | , |
| TypesAreReturnedCorrectly | ) |
| void TestWriteAndReadWithSpansForType | ( | RepositoryIf * | adapter | ) |
Helper function to test read and write operations using spans.
| T | The datapoint type to use for the testing. |
| adapter | The repository adapter who's API is under test. |
| TYPED_TEST | ( | TestPersistentRepoAdapterWithFits | , |
| SwitchFromLargeToSmall | ) |
| TYPED_TEST | ( | TestPersistentRepoAdapterWithFits | , |
| SwitchFromSmallToLarge | ) |
| TYPED_TEST | ( | TestPersistentRepoAdapterWithFits | , |
| WriteAndReadLargeData | ) |
| TYPED_TEST | ( | TestPersistentRepoAdapterWithFits | , |
| WriteAndReadSmallData | ) |
| TYPED_TEST_SUITE | ( | TestPersistentRepoAdapterWithFits | , |
| DataPointTypes | ) |
| std::string g_repodir = std::string("persistentRepoTest-pid-") + std::to_string(getpid()) |