Files
FreeCADWasmDev/tests/src/Mod/Points/App/PointsFeature.cpp
wangdequan b5a086fda5
Some checks failed
FreeCAD master CI / Prepare (push) Has been cancelled
FreeCAD master CI / Pixi (push) Has been cancelled
FreeCAD master CI / Ubuntu (push) Has been cancelled
FreeCAD master CI / Windows (push) Has been cancelled
FreeCAD master CI / Lint (push) Has been cancelled
FreeCAD master CI / WrapUp (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Stale Issues / stale (push) Has been cancelled
FreeCAD WebAssembly development snapshot
2026-08-20 07:00:53 +08:00

39 lines
803 B
C++

// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <src/App/InitApplication.h>
#include <Mod/Points/App/PointsFeature.h>
class PointsFeatureTest: public ::testing::Test
{
protected:
static void SetUpTestSuite()
{
tests::initApplication();
}
void SetUp() override
{}
void TearDown() override
{}
};
// NOLINTBEGIN(cppcoreguidelines-*,readability-*)
TEST_F(PointsFeatureTest, getElementTypes)
{
Points::Feature pf;
std::vector<const char*> types = pf.getElementTypes();
EXPECT_EQ(types.size(), 0);
}
TEST_F(PointsFeatureTest, getComplexElementTypes)
{
Points::PointKernel pk;
std::vector<const char*> types = pk.getElementTypes();
EXPECT_EQ(types.size(), 0);
}
// NOLINTEND(cppcoreguidelines-*,readability-*)