|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <boost/test/data/test_case.hpp>#include <wx/wx.h>#include <layer_ids.h>#include <pcbnew/pcbexpr_evaluator.h>#include <drc/drc_rule.h>#include <pcbnew/board.h>#include <board_design_settings.h>#include <pcbnew/pcb_track.h>#include <pcbnew/footprint.h>#include <pcbnew/pcb_text.h>#include <project/net_settings.h>#include <properties/property.h>#include <properties/property_mgr.h>Go to the source code of this file.
Classes | |
| struct | EXPR_TO_TEST |
Typedefs | |
| using | VAL = LIBEVAL::VALUE |
Functions | |
| static bool | testEvalExpr (const wxString &expr, const LIBEVAL::VALUE &expectedResult, bool expectError=false, BOARD_ITEM *itemA=nullptr, BOARD_ITEM *itemB=nullptr) |
| BOOST_AUTO_TEST_CASE (IntrospectedProperties) | |
| BOOST_AUTO_TEST_CASE (InNetChainClassWildcard) | |
| BOOST_AUTO_TEST_CASE (ParentNavigation) | |
Variables | |
| static const std::vector< EXPR_TO_TEST > | simpleExpressions |
| static const std::vector< EXPR_TO_TEST > | introspectionExpressions |
| using VAL = LIBEVAL::VALUE |
Definition at line 52 of file test_libeval_compiler.cpp.
| BOOST_AUTO_TEST_CASE | ( | InNetChainClassWildcard | ) |
Definition at line 196 of file test_libeval_compiler.cpp.
References BOARD::GetDesignSettings(), PROPERTY_MANAGER::Instance(), BOARD_DESIGN_SETTINGS::m_NetSettings, PROPERTY_MANAGER::Rebuild(), BOARD_CONNECTED_ITEM::SetNet(), and testEvalExpr().
| BOOST_AUTO_TEST_CASE | ( | IntrospectedProperties | ) |
Definition at line 161 of file test_libeval_compiler.cpp.
References F_Cu, BOARD::GetNetInfo(), PROPERTY_MANAGER::Instance(), introspectionExpressions, pcbIUScale, PROPERTY_MANAGER::Rebuild(), BOARD_CONNECTED_ITEM::SetLayer(), BOARD_CONNECTED_ITEM::SetNet(), PCB_TRACK::SetWidth(), and testEvalExpr().
| BOOST_AUTO_TEST_CASE | ( | ParentNavigation | ) |
Definition at line 243 of file test_libeval_compiler.cpp.
References FOOTPRINT::Add(), BOOST_CHECK_MESSAGE(), LIBEVAL::COMPILER::Compile(), PROPERTY_MANAGER::Instance(), LIBEVAL::COMPILER::IsErrorPending(), NULL_CONSTRAINT, PROPERTY_MANAGER::Rebuild(), FOOTPRINT::SetReference(), testEvalExpr(), text, and UNDEFINED_LAYER.
|
static |
Definition at line 104 of file test_libeval_compiler.cpp.
References LIBEVAL::VALUE::AsDouble(), LIBEVAL::VALUE::AsString(), BOOST_CHECK_EQUAL(), BOOST_TEST_MESSAGE(), LIBEVAL::COMPILER::Compile(), LIBEVAL::COMPILER::GetError(), LIBEVAL::VALUE::GetType(), LIBEVAL::ERROR_STATUS::message, NULL_CONSTRAINT, result, LIBEVAL::UCODE::Run(), PCBEXPR_CONTEXT::SetItems(), LIBEVAL::ERROR_STATUS::srcPos, UNDEFINED_LAYER, and LIBEVAL::VT_NUMERIC.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 88 of file test_libeval_compiler.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 54 of file test_libeval_compiler.cpp.