Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+8
-2
@@ -13,13 +13,19 @@ SET(UnitTestSources
|
||||
IF(BUILD_TESTING)
|
||||
ADD_EXECUTABLE(aesModuleTestExplosionCluster ${LinkedSources} ${UnitTestSources} )
|
||||
|
||||
NGL_TARGET_INCLUDE_DIRECTORIES(aesModuleTestExplosionCluster
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/Lts/
|
||||
${CMAKE_SOURCE_DIR}/Lts/Services/
|
||||
)
|
||||
|
||||
TARGET_LINK_LIBRARIES(aesModuleTestExplosionCluster
|
||||
NGLLogger
|
||||
nglcoreapplication
|
||||
LtsCommandLineParser
|
||||
LtsCoordinate
|
||||
Qt5::Core
|
||||
Qt5::Test
|
||||
Qt6::Core
|
||||
Qt6::Test
|
||||
ddsconnector
|
||||
svcAesCommon
|
||||
svcAesClient
|
||||
|
||||
+9
-8
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "explosion_cluster_module_test.h"
|
||||
#include <utility>
|
||||
#include <nglapplication/nglcoreapplication.h>
|
||||
#include <LtsCoordTrans/lts_coord_trans.h>
|
||||
|
||||
@@ -265,7 +266,7 @@ void ModuleTestExplosionCluster::dumpCnt()
|
||||
void ModuleTestExplosionCluster::dumpBldgStates()
|
||||
{
|
||||
NOTICE_LOG(m_logger) << " m_buildingStateVec.size() = " << m_buildingStateVec.size();
|
||||
for (const Buildings::BuildingState &bldgState : qAsConst(m_buildingStateVec))
|
||||
for (const Buildings::BuildingState &bldgState : std::as_const(m_buildingStateVec))
|
||||
NOTICE_LOG(m_logger) << " bldgState: "
|
||||
<< ", id = " << bldgState.id()
|
||||
<< ", damagePercent = " << bldgState.damagePercent()
|
||||
@@ -336,7 +337,7 @@ bool ModuleTestExplosionCluster::checkBldgStates(const QVector<int> &damagePerce
|
||||
QVector<int> damagePercentIst;
|
||||
damagePercentIst.reserve(m_buildingStateVec.size());
|
||||
|
||||
for (const Buildings::BuildingState &bldgState : qAsConst(m_buildingStateVec))
|
||||
for (const Buildings::BuildingState &bldgState : std::as_const(m_buildingStateVec))
|
||||
damagePercentIst.append(bldgState.damagePercent());
|
||||
|
||||
bool same = damagePercentIst == damagePercent;
|
||||
@@ -935,7 +936,7 @@ void ModuleTestExplosionCluster::resetBldgs()
|
||||
std::vector<Buildings::Building> buildingsVec;
|
||||
buildingsVec.reserve(m_bldgIdToName.size());
|
||||
auto bldgIds = m_bldgIdToName.keys();
|
||||
for (int bldgId : qAsConst(bldgIds))
|
||||
for (int bldgId : std::as_const(bldgIds))
|
||||
buildingsVec.push_back( Buildings::Building(bldgId, {}) );
|
||||
|
||||
Buildings::SetBuildingStatesRequest requestData;
|
||||
@@ -951,7 +952,7 @@ void ModuleTestExplosionCluster::resetBldgs()
|
||||
QTest::qWait(100);
|
||||
|
||||
// check states:
|
||||
for (int bldgId : qAsConst(bldgIds))
|
||||
for (int bldgId : std::as_const(bldgIds))
|
||||
{
|
||||
const ProjectDataManagement::VulnerabilityState& bldgState = m_bldDtc->buildingState(bldgId).vulnerabilityState();
|
||||
INFO_LOG(m_logger) << "resetBldgs: bldgId " << bldgId
|
||||
@@ -1292,7 +1293,7 @@ void ModuleTestExplosionCluster::test_TneVerificationBremen_01()
|
||||
<< ", m_data.mhPoints().size()=" << m_data.mhPoints().size();
|
||||
|
||||
const std::vector<Core::GeoPosition> &formRef = itemView.form();
|
||||
for (const Core::GeoPosition &geoCoord : qAsConst(formRef))
|
||||
for (const Core::GeoPosition &geoCoord : std::as_const(formRef))
|
||||
{
|
||||
const LtsCoordTrans::UtmCoordinate &utm = LtsCoordTrans::UtmCoordinate::fromGeographic(geoCoord.lon(), geoCoord.lat());
|
||||
INFO_LOG(m_logger) << " TNE VERIFICATION: CHECK:" << " utm: " << utm.mgrs() << ", item=" << geoCoord;
|
||||
@@ -1391,7 +1392,7 @@ void ModuleTestExplosionCluster::test_TneVerificationBremen_02()
|
||||
<< ", m_data.mhPoints().size()=" << m_data.mhPoints().size();
|
||||
|
||||
const std::vector<Core::GeoPosition> &formRef = itemView.form();
|
||||
for (const Core::GeoPosition &geoCoord : qAsConst(formRef))
|
||||
for (const Core::GeoPosition &geoCoord : std::as_const(formRef))
|
||||
{
|
||||
const LtsCoordTrans::UtmCoordinate &utm = LtsCoordTrans::UtmCoordinate::fromGeographic(geoCoord.lon(), geoCoord.lat());
|
||||
INFO_LOG(m_logger) << " TNE VERIFICATION: CHECK:" << " utm: " << utm.mgrs() << ", item=" << geoCoord;
|
||||
@@ -2364,7 +2365,7 @@ void ModuleTestExplosionCluster::test_bldg_1104_effects_only()
|
||||
QVERIFY2(m_counterDds.cntTrajectory == 0, "ERROR, cnt failed!!"); // 4 impacts -> 4 trajectory
|
||||
|
||||
std::vector<AreaEffectSimulation::SingleEffect>&singleEffects = m_effects.singleEffects();
|
||||
for (const AreaEffectSimulation::SingleEffect &se : qAsConst(singleEffects))
|
||||
for (const AreaEffectSimulation::SingleEffect &se : std::as_const(singleEffects))
|
||||
{
|
||||
// Since there is no trajectory, no intersection is calculated.
|
||||
// Therefore the impacts are on the ground.
|
||||
@@ -2741,7 +2742,7 @@ int main(int argc, char *argv[])
|
||||
--argc;
|
||||
|
||||
const QStringList &slPositionalArgs = options.positionalArguments();
|
||||
for (const QString &item : qAsConst(slPositionalArgs))
|
||||
for (const QString &item : std::as_const(slPositionalArgs))
|
||||
std::cout << " item = " << item << std::endl;
|
||||
|
||||
// enable_create_bulk only if it´s explicitly called by user:
|
||||
|
||||
Reference in new issue
Block a user