Skip to content

Commit

Permalink
Fix unit test bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarquisbq committed Jun 3, 2024
1 parent 0137fd3 commit a79e8a4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ IFilter::UniquePointer CreateAMScanPathsFilter::clone() const
IFilter::PreflightResult CreateAMScanPathsFilter::preflightImpl(const DataStructure& dataStructure, const Arguments& filterArgs, const MessageHandler& messageHandler,
const std::atomic_bool& shouldCancel) const
{
auto pStripeWidthValue = filterArgs.value<float32>(k_StripeWidth_Key);
auto pHatchSpacingValue = filterArgs.value<float32>(k_HatchSpacing_Key);
auto pPowerValue = filterArgs.value<float32>(k_Power_Key);
auto pSpeedValue = filterArgs.value<float32>(k_Speed_Key);
auto pCADSliceDataContainerNameValue = filterArgs.value<DataPath>(k_CADSliceDataContainerPath_Key);
auto pCADSliceIdsArrayPathValue = filterArgs.value<DataPath>(k_CADSliceIdsArrayPath_Key);
auto pCADRegionIdsArrayPathValue = filterArgs.value<DataPath>(k_CADRegionIdsArrayPath_Key);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ IFilter::PreflightResult SliceTriangleGeometryFilter::preflightImpl(const DataSt
auto pSliceRangeValue = filterArgs.value<ChoicesParameter::ValueType>(k_SliceRange_Key);
auto pZStartValue = filterArgs.value<float32>(k_Zstart_Key);
auto pZEndValue = filterArgs.value<float32>(k_Zend_Key);
auto pSliceResolutionValue = filterArgs.value<float32>(k_SliceResolution_Key);
auto pHaveRegionIdsValue = filterArgs.value<bool>(k_HaveRegionIds_Key);
auto pCADDataContainerNameValue = filterArgs.value<DataPath>(k_TriangleGeometryDataPath_Key);
auto pRegionIdArrayPathValue = filterArgs.value<DataPath>(k_RegionIdArrayPath_Key);
Expand Down
10 changes: 5 additions & 5 deletions src/Plugins/SimplnxCore/test/CreateAMScanPathsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ TEST_CASE("SimplnxCore::CreateAMScanPathsFilter: Valid Filter Execution", "[Simp
args.insertOrAssign(CreateAMScanPathsFilter::k_CADSliceIdsArrayPath_Key, std::make_any<DataPath>(k_SliceIdsPath));
args.insertOrAssign(CreateAMScanPathsFilter::k_CADRegionIdsArrayPath_Key, std::make_any<DataPath>(k_RegionIdsPath));
args.insertOrAssign(CreateAMScanPathsFilter::k_HatchDataContainerPath_Key, std::make_any<DataPath>(k_ComputedScanVectorsPath));
args.insertOrAssign(CreateAMScanPathsFilter::k_VertexAttributeMatrixName_Key, std::make_any<StringParameter::ValueType>(k_VertexData));
args.insertOrAssign(CreateAMScanPathsFilter::k_HatchAttributeMatrixName_Key, std::make_any<StringParameter::ValueType>(k_EdgeData));
args.insertOrAssign(CreateAMScanPathsFilter::k_TimeArrayName_Key, std::make_any<StringParameter::ValueType>(k_Times));
args.insertOrAssign(CreateAMScanPathsFilter::k_RegionIdsArrayName_Key, std::make_any<StringParameter::ValueType>(k_RegionIdsName));
args.insertOrAssign(CreateAMScanPathsFilter::k_PowersArrayName_Key, std::make_any<StringParameter::ValueType>(k_Powers));
args.insertOrAssign(CreateAMScanPathsFilter::k_VertexAttributeMatrixName_Key, std::make_any<DataObjectNameParameter::ValueType>(k_VertexData));
args.insertOrAssign(CreateAMScanPathsFilter::k_HatchAttributeMatrixName_Key, std::make_any<DataObjectNameParameter::ValueType>(k_EdgeData));
args.insertOrAssign(CreateAMScanPathsFilter::k_TimeArrayName_Key, std::make_any<DataObjectNameParameter::ValueType>(k_Times));
args.insertOrAssign(CreateAMScanPathsFilter::k_RegionIdsArrayName_Key, std::make_any<DataObjectNameParameter::ValueType>(k_RegionIdsName));
args.insertOrAssign(CreateAMScanPathsFilter::k_PowersArrayName_Key, std::make_any<DataObjectNameParameter::ValueType>(k_Powers));

// Preflight the filter and check result
auto preflightResult = filter.preflight(dataStructure, args);
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/SimplnxCore/test/SliceTriangleGeometryTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ TEST_CASE("SimplnxCore::SliceTriangleGeometryFilter: Valid Filter Execution", "[
args.insertOrAssign(SliceTriangleGeometryFilter::k_TriangleGeometryDataPath_Key, std::make_any<DataPath>(k_InputTriangleGeometryPath));
args.insertOrAssign(SliceTriangleGeometryFilter::k_RegionIdArrayPath_Key, std::make_any<DataPath>(k_RegionIdsPath));

args.insertOrAssign(SliceTriangleGeometryFilter::k_OutputEdgeGeometryPath_Key, std::make_any<DataGroupCreationParameter::ValueType>(k_ComputedEdgeGeometryPath));
args.insertOrAssign(SliceTriangleGeometryFilter::k_OutputEdgeGeometryPath_Key, std::make_any<DataPath>(k_ComputedEdgeGeometryPath));
args.insertOrAssign(SliceTriangleGeometryFilter::k_EdgeAttributeMatrixName_Key, std::make_any<DataObjectNameParameter::ValueType>(k_EdgeData));
args.insertOrAssign(SliceTriangleGeometryFilter::k_SliceIdArrayName_Key, std::make_any<DataObjectNameParameter::ValueType>(k_SliceIds));
args.insertOrAssign(SliceTriangleGeometryFilter::k_SliceAttributeMatrixName_Key, std::make_any<DataObjectNameParameter::ValueType>(k_SliceData));
Expand Down

0 comments on commit a79e8a4

Please sign in to comment.