KiCad PCB EDA Suite
|
#include <wx/wx.h>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <layer_ids.h>
#include <pcbnew/pcbexpr_evaluator.h>
#include <drc/drc_rule.h>
#include <pcbnew/board.h>
#include <pcbnew/pcb_track.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 (SimpleExpressions) | |
BOOST_AUTO_TEST_CASE (IntrospectedProperties) | |
Variables | |
static const std::vector< EXPR_TO_TEST > | simpleExpressions |
static const std::vector< EXPR_TO_TEST > | introspectionExpressions |
using VAL = LIBEVAL::VALUE |
Definition at line 43 of file test_libeval_compiler.cpp.
BOOST_AUTO_TEST_CASE | ( | IntrospectedProperties | ) |
Definition at line 149 of file test_libeval_compiler.cpp.
References F_Cu, BOARD::GetNetInfo(), PROPERTY_MANAGER::Instance(), introspectionExpressions, EDA_IU_SCALE::MilsToIU(), pcbIUScale, PROPERTY_MANAGER::Rebuild(), BOARD_ITEM::SetLayer(), BOARD_CONNECTED_ITEM::SetNet(), PCB_TRACK::SetWidth(), and testEvalExpr().
BOOST_AUTO_TEST_CASE | ( | SimpleExpressions | ) |
Definition at line 140 of file test_libeval_compiler.cpp.
References simpleExpressions, and testEvalExpr().
|
static |
Definition at line 89 of file test_libeval_compiler.cpp.
References LIBEVAL::VALUE::AsDouble(), LIBEVAL::VALUE::AsString(), LIBEVAL::COMPILER::Compile(), LIBEVAL::VALUE::EqualTo(), LIBEVAL::COMPILER::GetError(), LIBEVAL::VALUE::GetType(), LIBEVAL::ERROR_STATUS::message, NULL_CONSTRAINT, LIBEVAL::UCODE::Run(), PCBEXPR_CONTEXT::SetItems(), LIBEVAL::ERROR_STATUS::srcPos, UNDEFINED_LAYER, and LIBEVAL::VT_NUMERIC.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 75 of file test_libeval_compiler.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 45 of file test_libeval_compiler.cpp.
Referenced by BOOST_AUTO_TEST_CASE().