/
spivag
/
command_occ
Обзор
Документация
Войти
/
spivag
/
command_occ
Код
Запросы
1
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
initial
tests/gtest_fillet_demo.cpp
131 строка
2 KB
Spivakov
Initial
10 апр 2026, 13:45
10 апр 2026, 13:45
b2ad868
Код
Авторство
О чём код?
/// @file gtest_fillet_demo.cpp /// @brief Fillet tests from demo code /// @project gtests /// /// (c) Alexander Spivakov on 02.09.2025. /// #include <gtest/gtest.h> #include <../demo/demo_faces_conjugate.hxx> class FilletSymmetricRoundTest : public testing::Test { public: void SetUp() override { shape = demo::Fillet::CreateSymmetrycRound(); if ( shape != nullptr) { shape->Execute(); c3dShape = shape->GetMbItem(); } } std::shared_ptr<IShapeBuilder> shape{}; c3d::ItemSPtr c3dShape{}; }; TEST_F( FilletSymmetricRoundTest, Execute ) { ASSERT_NE(nullptr, shape); ASSERT_FALSE( c3dShape.is_null() ); } class FilletNonSymmetricRoundTest : public testing::Test { public: void SetUp() override { shape = demo::Fillet::CreateNonSymmetrycRound(); if ( shape != nullptr) { shape->Execute(); c3dShape = shape->GetMbItem(); } } std::shared_ptr<IShapeBuilder> shape{}; c3d::ItemSPtr c3dShape{}; }; TEST_F( FilletNonSymmetricRoundTest, Execute ) { ASSERT_NE(nullptr, shape); ASSERT_FALSE( c3dShape.is_null() ); } class FilletsSharpPointTest : public testing::Test { public: void SetUp() override { shape = demo::Fillet::FilletsJoin::CreateFilltesSharpPoint(); if ( shape != nullptr) { shape->Execute(); c3dShape = shape->GetMbItem(); } } std::shared_ptr<IShapeBuilder> shape{}; c3d::ItemSPtr c3dShape{}; }; TEST_F( FilletsSharpPointTest, Execute ) { ASSERT_NE(nullptr, shape); ASSERT_FALSE( c3dShape.is_null() ); } class FilletsSmopothSharpPoint : public testing::Test { public: void SetUp() override { shape = demo::Fillet::FilletsJoin::CreateFilltesSmoothSharp(); if ( shape != nullptr) { shape->Execute(); c3dShape = shape->GetMbItem(); } } std::shared_ptr<IShapeBuilder> shape{}; c3d::ItemSPtr c3dShape{}; }; TEST_F( FilletsSmopothSharpPoint, Execute ) { ASSERT_NE(nullptr, shape); ASSERT_FALSE( c3dShape.is_null() ); } class FilletsSmopothSharpSharpTest : public testing::Test { public: void SetUp() override { shape = demo::Fillet::FilletsJoin::CreateFilltesSharpSharp(); if ( shape != nullptr) { shape->Execute(); c3dShape = shape->GetMbItem(); } } std::shared_ptr<IShapeBuilder> shape{}; c3d::ItemSPtr c3dShape{}; }; TEST_F( FilletsSmopothSharpSharpTest, Execute ) { ASSERT_NE(nullptr, shape); ASSERT_FALSE( c3dShape.is_null() ); }