2021-01-06 21:14:23 +01:00
|
|
|
#include "LocalPoolOwnerBase.h"
|
|
|
|
|
|
|
|
#include <catch2/catch_test_macros.hpp>
|
|
|
|
#include <fsfw/datapoollocal/HasLocalDataPoolIF.h>
|
2021-01-08 20:44:05 +01:00
|
|
|
#include <fsfw/datapoollocal/StaticLocalDataSet.h>
|
2021-01-06 21:14:23 +01:00
|
|
|
#include <unittest/core/CatchDefinitions.h>
|
|
|
|
|
|
|
|
TEST_CASE("LocalDataSet" , "[LocDataSetTest]") {
|
|
|
|
LocalPoolOwnerBase* poolOwner = objectManager->
|
|
|
|
get<LocalPoolOwnerBase>(objects::TEST_LOCAL_POOL_OWNER_BASE);
|
|
|
|
REQUIRE(poolOwner != nullptr);
|
|
|
|
REQUIRE(poolOwner->initializeHkManager() == retval::CATCH_OK);
|
|
|
|
REQUIRE(poolOwner->initializeHkManagerAfterTaskCreation()
|
|
|
|
== retval::CATCH_OK);
|
2021-01-08 20:44:05 +01:00
|
|
|
const uint32_t setId = 0;
|
2021-01-06 21:14:23 +01:00
|
|
|
SECTION("BasicTest") {
|
2021-01-08 20:44:05 +01:00
|
|
|
StaticLocalDataSet<3> localSet = StaticLocalDataSet<3>(
|
|
|
|
sid_t(objects::TEST_LOCAL_POOL_OWNER_BASE, setId));
|
2021-01-06 21:14:23 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|