|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <wx/ffile.h>#include <core/typeinfo.h>#include <drc/rule_editor/drc_rule_editor_utils.h>#include <drc/rule_editor/drc_re_via_style_constraint_data.h>#include <drc/rule_editor/drc_re_routing_width_constraint_data.h>#include <drc/rule_editor/drc_re_rtg_diff_pair_constraint_data.h>#include <drc/rule_editor/drc_re_abs_length_two_constraint_data.h>#include <drc/rule_editor/drc_re_custom_rule_constraint_data.h>#include <drc/rule_editor/drc_re_permitted_layers_constraint_data.h>#include <drc/rule_editor/drc_re_min_txt_ht_th_constraint_data.h>#include <drc/rule_editor/drc_re_allowed_orientation_constraint_data.h>#include <drc/rule_editor/drc_rule_editor_enums.h>#include <drc/drc_rule.h>#include <drc/rule_editor/drc_re_base_constraint_data.h>#include <drc/rule_editor/drc_re_numeric_input_constraint_data.h>#include <drc/rule_editor/drc_re_bool_input_constraint_data.h>#include <drc/rule_editor/drc_re_panel_matcher.h>#include <drc/rule_editor/drc_re_rule_loader.h>#include <drc/rule_editor/drc_re_rule_saver.h>#include <dialogs/rule_editor_dialog_base.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (RoundTripViaStyle) | |
| BOOST_AUTO_TEST_CASE (RoundTripRoutingWidth) | |
| BOOST_AUTO_TEST_CASE (SaveRules) | |
| BOOST_AUTO_TEST_CASE (SaveRulesToFileLogic) | |
| BOOST_AUTO_TEST_CASE (SaveNumericRules) | |
| BOOST_AUTO_TEST_CASE (SaveBoolRules) | |
| BOOST_AUTO_TEST_CASE (ParseRulesCategories) | |
| BOOST_AUTO_TEST_CASE (FactoryRegistration) | |
| BOOST_AUTO_TEST_CASE (ValidateViaStyleValid) | |
| BOOST_AUTO_TEST_CASE (ValidateViaStyleInvalidMinGreaterThanMax) | |
| BOOST_AUTO_TEST_CASE (ValidateViaStyleInvalidNegativeValues) | |
| BOOST_AUTO_TEST_CASE (FactoryOverwrite) | |
| BOOST_AUTO_TEST_CASE (ValidateAbsLengthTwoValid) | |
| BOOST_AUTO_TEST_CASE (ValidateAbsLengthTwoInvalid) | |
| BOOST_AUTO_TEST_CASE (ValidateDiffPairValid) | |
| BOOST_AUTO_TEST_CASE (ValidateDiffPairInvalid) | |
| BOOST_AUTO_TEST_CASE (ValidatePermittedLayersValid) | |
| BOOST_AUTO_TEST_CASE (ValidatePermittedLayersInvalid) | |
| BOOST_AUTO_TEST_CASE (ValidateNumericInputValid) | |
| BOOST_AUTO_TEST_CASE (ValidateNumericInputInvalidNegative) | |
| BOOST_AUTO_TEST_CASE (ValidateRoutingWidthValid) | |
| BOOST_AUTO_TEST_CASE (ValidateRoutingWidthInvalidMinGreaterThanMax) | |
| BOOST_AUTO_TEST_CASE (ValidateAllowedOrientationValid) | |
| BOOST_AUTO_TEST_CASE (ValidateAllowedOrientationInvalid) | |
| BOOST_AUTO_TEST_CASE (ValidateBoolInputValid) | |
| BOOST_AUTO_TEST_CASE (ValidateMinTxtHtThValid) | |
| BOOST_AUTO_TEST_CASE (ValidateMinTxtHtThInvalid) | |
| BOOST_AUTO_TEST_CASE (ValidateCustomRuleValid) | |
| BOOST_AUTO_TEST_CASE (ValidateCustomRuleInvalid) | |
| BOOST_AUTO_TEST_CASE (PanelMatcherExactMatchViaStyle) | |
| BOOST_AUTO_TEST_CASE (PanelMatcherPartialMatchViaDiameter) | |
| BOOST_AUTO_TEST_CASE (PanelMatcherSplitRule) | |
| BOOST_AUTO_TEST_CASE (PanelMatcherPriorityDiffPairOverRoutingWidth) | |
| BOOST_AUTO_TEST_CASE (PanelMatcherDiffPairWithOptionalUncoupled) | |
| BOOST_AUTO_TEST_CASE (PanelMatcherTrackWidthOnly) | |
| BOOST_AUTO_TEST_CASE (PanelMatcherTextHeightAndThickness) | |
| BOOST_AUTO_TEST_CASE (PanelMatcherLengthConstraint) | |
| BOOST_AUTO_TEST_CASE (PanelMatcherEmptyRule) | |
| BOOST_AUTO_TEST_CASE (PanelMatcherCanPanelLoad) | |
| BOOST_AUTO_TEST_CASE (PanelMatcherGetPanelForConstraint) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderViaStyleFromText) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderRoutingWidthFromText) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderDiffPairFromText) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderSplitRuleFromText) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderVmeWrenClearanceUnderFpga) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderTextHeightThicknessFromText) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderAbsoluteLengthFromText) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderWithCondition) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderMultipleRules) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderEmptyRule) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderInvalidText) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderNumericConstraints) | |
| BOOST_AUTO_TEST_CASE (RuleSaverBasicGeneration) | |
| BOOST_AUTO_TEST_CASE (RuleSaverRoundTripPreservation) | |
| BOOST_AUTO_TEST_CASE (RuleSaverEditedRuleRegenerated) | |
| BOOST_AUTO_TEST_CASE (RuleSaverViaStyleRule) | |
| BOOST_AUTO_TEST_CASE (RuleSaverMultipleEntries) | |
| BOOST_AUTO_TEST_CASE (RuleSaverWithCondition) | |
| BOOST_AUTO_TEST_CASE (RuleSaverEmptyEntries) | |
| BOOST_AUTO_TEST_CASE (RuleSaverNullConstraintData) | |
| BOOST_AUTO_TEST_CASE (RuleSaverLoadSaveRoundTrip) | |
| BOOST_AUTO_TEST_CASE (RuleSaverDiffPairRule) | |
| BOOST_AUTO_TEST_CASE (IntegrationLoadHoleClearanceRules) | |
| BOOST_AUTO_TEST_CASE (IntegrationLoadEdgeClearanceWithSeverity) | |
| BOOST_AUTO_TEST_CASE (IntegrationLoadConnectionWidthRules) | |
| BOOST_AUTO_TEST_CASE (IntegrationSaveLoadRoundTripMultipleRules) | |
| BOOST_AUTO_TEST_CASE (IntegrationSaveLoadViaStyleRoundTrip) | |
| BOOST_AUTO_TEST_CASE (IntegrationSplitRulePreservesOrder) | |
| BOOST_AUTO_TEST_CASE (ConditionGroupBuildSingleCondition) | |
| BOOST_AUTO_TEST_CASE (ConditionGroupTokenizeAndOperator) | |
| BOOST_AUTO_TEST_CASE (ConditionGroupTokenizeOrOperator) | |
| BOOST_AUTO_TEST_CASE (ConditionGroupTokenizeAndNotOperator) | |
| BOOST_AUTO_TEST_CASE (ConditionGroupTokenizeComplexExpression) | |
| BOOST_AUTO_TEST_CASE (ItemFilterExcludesNetInfoAndGenerator) | |
| BOOST_AUTO_TEST_CASE | ( | ConditionGroupBuildSingleCondition | ) |
Definition at line 1726 of file test_drc_rule_editor.cpp.
| BOOST_AUTO_TEST_CASE | ( | ConditionGroupTokenizeAndNotOperator | ) |
Definition at line 1759 of file test_drc_rule_editor.cpp.
| BOOST_AUTO_TEST_CASE | ( | ConditionGroupTokenizeAndOperator | ) |
Definition at line 1738 of file test_drc_rule_editor.cpp.
| BOOST_AUTO_TEST_CASE | ( | ConditionGroupTokenizeComplexExpression | ) |
Definition at line 1769 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL().
| BOOST_AUTO_TEST_CASE | ( | ConditionGroupTokenizeOrOperator | ) |
Definition at line 1749 of file test_drc_rule_editor.cpp.
| BOOST_AUTO_TEST_CASE | ( | FactoryOverwrite | ) |
Definition at line 341 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), DRC_RULE_EDITOR_UTILS::ParseRules(), and DRC_RULE_EDITOR_UTILS::RegisterRuleConverter().
| BOOST_AUTO_TEST_CASE | ( | FactoryRegistration | ) |
Definition at line 266 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), CLEARANCE_CONSTRAINT, DRC_RULE_EDITOR_UTILS::ParseRules(), and DRC_RULE_EDITOR_UTILS::RegisterRuleConverter().
| BOOST_AUTO_TEST_CASE | ( | IntegrationLoadConnectionWidthRules | ) |
Definition at line 1554 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), DRC_RULE_LOADER::LoadFromString(), and MINIMUM_CONNECTION_WIDTH.
| BOOST_AUTO_TEST_CASE | ( | IntegrationLoadEdgeClearanceWithSeverity | ) |
Definition at line 1535 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), COPPER_TO_EDGE_CLEARANCE, DRC_RULE_LOADER::LoadFromString(), and RPT_SEVERITY_IGNORE.
| BOOST_AUTO_TEST_CASE | ( | IntegrationLoadHoleClearanceRules | ) |
Definition at line 1508 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), COPPER_TO_HOLE_CLEARANCE, HOLE_SIZE, and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | IntegrationSaveLoadRoundTripMultipleRules | ) |
Definition at line 1580 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), DRC_RULE_SAVER::GenerateRulesText(), and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | IntegrationSaveLoadViaStyleRoundTrip | ) |
Definition at line 1619 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DRC_RULE_SAVER::GenerateRulesText(), DRC_RULE_LOADER::LoadFromString(), and VIA_STYLE.
| BOOST_AUTO_TEST_CASE | ( | IntegrationSplitRulePreservesOrder | ) |
Definition at line 1659 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | ItemFilterExcludesNetInfoAndGenerator | ) |
Definition at line 1797 of file test_drc_rule_editor.cpp.
References PCB_FOOTPRINT_T, PCB_GENERATOR_T, PCB_GROUP_T, PCB_NETINFO_T, PCB_PAD_T, PCB_SHAPE_T, PCB_TEXT_T, PCB_TRACE_T, PCB_VIA_T, and PCB_ZONE_T.
| BOOST_AUTO_TEST_CASE | ( | PanelMatcherCanPanelLoad | ) |
Definition at line 929 of file test_drc_rule_editor.cpp.
References DRC_PANEL_MATCHER::CanPanelLoad(), CLEARANCE_CONSTRAINT, CUSTOM_RULE, HOLE_SIZE_CONSTRAINT, VIA_DIAMETER_CONSTRAINT, and VIA_STYLE.
| BOOST_AUTO_TEST_CASE | ( | PanelMatcherDiffPairWithOptionalUncoupled | ) |
Definition at line 831 of file test_drc_rule_editor.cpp.
References DRC_RULE::AddConstraint(), BOOST_CHECK_EQUAL(), DIFF_PAIR_GAP_CONSTRAINT, DRC_PANEL_MATCHER::MatchRule(), MAX_UNCOUPLED_CONSTRAINT, ROUTING_DIFF_PAIR, MINOPTMAX< T >::SetMax(), MINOPTMAX< T >::SetMin(), TRACK_WIDTH_CONSTRAINT, and DRC_CONSTRAINT::Value().
| BOOST_AUTO_TEST_CASE | ( | PanelMatcherEmptyRule | ) |
Definition at line 918 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), and DRC_PANEL_MATCHER::MatchRule().
| BOOST_AUTO_TEST_CASE | ( | PanelMatcherExactMatchViaStyle | ) |
Definition at line 728 of file test_drc_rule_editor.cpp.
References DRC_RULE::AddConstraint(), BOOST_CHECK_EQUAL(), HOLE_SIZE_CONSTRAINT, DRC_PANEL_MATCHER::MatchRule(), MINOPTMAX< T >::SetMax(), MINOPTMAX< T >::SetMin(), MINOPTMAX< T >::SetOpt(), DRC_CONSTRAINT::Value(), VIA_DIAMETER_CONSTRAINT, and VIA_STYLE.
| BOOST_AUTO_TEST_CASE | ( | PanelMatcherGetPanelForConstraint | ) |
Definition at line 946 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), CLEARANCE_CONSTRAINT, COPPER_TO_EDGE_CLEARANCE, COPPER_TO_HOLE_CLEARANCE, EDGE_CLEARANCE_CONSTRAINT, DRC_PANEL_MATCHER::GetPanelForConstraint(), HOLE_CLEARANCE_CONSTRAINT, HOLE_TO_HOLE_CLEARANCE, HOLE_TO_HOLE_CONSTRAINT, MINIMUM_CLEARANCE, ROUTING_WIDTH, SILK_CLEARANCE_CONSTRAINT, SILK_TO_SILK_CLEARANCE, and TRACK_WIDTH_CONSTRAINT.
| BOOST_AUTO_TEST_CASE | ( | PanelMatcherLengthConstraint | ) |
Definition at line 899 of file test_drc_rule_editor.cpp.
References ABSOLUTE_LENGTH, DRC_RULE::AddConstraint(), BOOST_CHECK_EQUAL(), LENGTH_CONSTRAINT, DRC_PANEL_MATCHER::MatchRule(), MINOPTMAX< T >::SetMax(), MINOPTMAX< T >::SetMin(), MINOPTMAX< T >::SetOpt(), and DRC_CONSTRAINT::Value().
| BOOST_AUTO_TEST_CASE | ( | PanelMatcherPartialMatchViaDiameter | ) |
Definition at line 755 of file test_drc_rule_editor.cpp.
References DRC_RULE::AddConstraint(), BOOST_CHECK_EQUAL(), DRC_PANEL_MATCHER::MatchRule(), MINIMUM_VIA_DIAMETER, MINOPTMAX< T >::SetMin(), DRC_CONSTRAINT::Value(), and VIA_DIAMETER_CONSTRAINT.
| BOOST_AUTO_TEST_CASE | ( | PanelMatcherPriorityDiffPairOverRoutingWidth | ) |
Definition at line 805 of file test_drc_rule_editor.cpp.
References DRC_RULE::AddConstraint(), BOOST_CHECK_EQUAL(), DIFF_PAIR_GAP_CONSTRAINT, DRC_PANEL_MATCHER::MatchRule(), ROUTING_DIFF_PAIR, MINOPTMAX< T >::SetMax(), MINOPTMAX< T >::SetMin(), MINOPTMAX< T >::SetOpt(), TRACK_WIDTH_CONSTRAINT, and DRC_CONSTRAINT::Value().
| BOOST_AUTO_TEST_CASE | ( | PanelMatcherSplitRule | ) |
Definition at line 773 of file test_drc_rule_editor.cpp.
References DRC_RULE::AddConstraint(), BOOST_CHECK_EQUAL(), clearance, CLEARANCE_CONSTRAINT, HOLE_SIZE_CONSTRAINT, DRC_PANEL_MATCHER::MatchRule(), MINIMUM_CLEARANCE, MINOPTMAX< T >::SetMin(), DRC_CONSTRAINT::Value(), VIA_DIAMETER_CONSTRAINT, and VIA_STYLE.
| BOOST_AUTO_TEST_CASE | ( | PanelMatcherTextHeightAndThickness | ) |
Definition at line 878 of file test_drc_rule_editor.cpp.
References DRC_RULE::AddConstraint(), BOOST_CHECK_EQUAL(), DRC_PANEL_MATCHER::MatchRule(), MINIMUM_TEXT_HEIGHT_AND_THICKNESS, MINOPTMAX< T >::SetMin(), TEXT_HEIGHT_CONSTRAINT, TEXT_THICKNESS_CONSTRAINT, and DRC_CONSTRAINT::Value().
| BOOST_AUTO_TEST_CASE | ( | PanelMatcherTrackWidthOnly | ) |
Definition at line 859 of file test_drc_rule_editor.cpp.
References DRC_RULE::AddConstraint(), BOOST_CHECK_EQUAL(), DRC_PANEL_MATCHER::MatchRule(), ROUTING_WIDTH, MINOPTMAX< T >::SetMax(), MINOPTMAX< T >::SetMin(), MINOPTMAX< T >::SetOpt(), TRACK_WIDTH_CONSTRAINT, and DRC_CONSTRAINT::Value().
| BOOST_AUTO_TEST_CASE | ( | ParseRulesCategories | ) |
Definition at line 229 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and DRC_RULE_EDITOR_UTILS::ParseRules().
| BOOST_AUTO_TEST_CASE | ( | RoundTripRoutingWidth | ) |
Definition at line 77 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), RULE_GENERATION_CONTEXT::conditionExpression, RULE_GENERATION_CONTEXT::constraintCode, DRC_RE_ROUTING_WIDTH_CONSTRAINT_DATA::GenerateRule(), DRC_RE_BASE_CONSTRAINT_DATA::GetConstraintCode(), DRC_RE_ROUTING_WIDTH_CONSTRAINT_DATA::GetMaxRoutingWidth(), DRC_RE_ROUTING_WIDTH_CONSTRAINT_DATA::GetMinRoutingWidth(), DRC_RE_ROUTING_WIDTH_CONSTRAINT_DATA::GetPreferredRoutingWidth(), DRC_RE_BASE_CONSTRAINT_DATA::GetRuleCondition(), RULE_EDITOR_DATA_BASE::GetRuleName(), DRC_RULE_EDITOR_UTILS::ParseRules(), RULE_GENERATION_CONTEXT::ruleName, DRC_RE_BASE_CONSTRAINT_DATA::SetConstraintCode(), and DRC_RE_BASE_CONSTRAINT_DATA::SetRuleCondition().
| BOOST_AUTO_TEST_CASE | ( | RoundTripViaStyle | ) |
Definition at line 48 of file test_drc_rule_editor.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), RULE_GENERATION_CONTEXT::conditionExpression, RULE_GENERATION_CONTEXT::constraintCode, DRC_RE_VIA_STYLE_CONSTRAINT_DATA::GenerateRule(), DRC_RE_BASE_CONSTRAINT_DATA::GetConstraintCode(), DRC_RE_VIA_STYLE_CONSTRAINT_DATA::GetMaxViaDiameter(), DRC_RE_VIA_STYLE_CONSTRAINT_DATA::GetMaxViaHoleSize(), DRC_RE_VIA_STYLE_CONSTRAINT_DATA::GetMinViaDiameter(), DRC_RE_VIA_STYLE_CONSTRAINT_DATA::GetMinViaHoleSize(), DRC_RE_VIA_STYLE_CONSTRAINT_DATA::GetPreferredViaDiameter(), DRC_RE_VIA_STYLE_CONSTRAINT_DATA::GetPreferredViaHoleSize(), DRC_RE_BASE_CONSTRAINT_DATA::GetRuleCondition(), RULE_EDITOR_DATA_BASE::GetRuleName(), DRC_RULE_EDITOR_UTILS::ParseRules(), RULE_GENERATION_CONTEXT::ruleName, DRC_RE_BASE_CONSTRAINT_DATA::SetConstraintCode(), and DRC_RE_BASE_CONSTRAINT_DATA::SetRuleCondition().
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderAbsoluteLengthFromText | ) |
Definition at line 1133 of file test_drc_rule_editor.cpp.
References ABSOLUTE_LENGTH, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderDiffPairFromText | ) |
Definition at line 1014 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DRC_RULE_LOADER::LoadFromString(), and ROUTING_DIFF_PAIR.
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderEmptyRule | ) |
Definition at line 1201 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), CUSTOM_RULE, and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderInvalidText | ) |
Definition at line 1216 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderMultipleRules | ) |
Definition at line 1173 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), DRC_RULE_LOADER::LoadFromString(), MINIMUM_CLEARANCE, ROUTING_WIDTH, and VIA_STYLE.
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderNumericConstraints | ) |
Definition at line 1227 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), COPPER_TO_EDGE_CLEARANCE, COPPER_TO_HOLE_CLEARANCE, COURTYARD_CLEARANCE, and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderRoutingWidthFromText | ) |
Definition at line 991 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DRC_RULE_LOADER::LoadFromString(), and ROUTING_WIDTH.
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderSplitRuleFromText | ) |
Definition at line 1042 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DRC_RULE_LOADER::LoadFromString(), MINIMUM_CLEARANCE, and VIA_STYLE.
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderTextHeightThicknessFromText | ) |
Definition at line 1111 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DRC_RULE_LOADER::LoadFromString(), and MINIMUM_TEXT_HEIGHT_AND_THICKNESS.
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderViaStyleFromText | ) |
Definition at line 964 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DRC_RULE_LOADER::LoadFromString(), and VIA_STYLE.
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderVmeWrenClearanceUnderFpga | ) |
Definition at line 1070 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DRC_RULE_LOADER::LoadFromString(), MINIMUM_CLEARANCE, and VIA_STYLE.
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderWithCondition | ) |
Definition at line 1155 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | RuleSaverBasicGeneration | ) |
| BOOST_AUTO_TEST_CASE | ( | RuleSaverDiffPairRule | ) |
| BOOST_AUTO_TEST_CASE | ( | RuleSaverEditedRuleRegenerated | ) |
Definition at line 1299 of file test_drc_rule_editor.cpp.
References DRC_RE_LOADED_PANEL_ENTRY::constraintData, DRC_RULE_SAVER::GenerateRulesText(), MINIMUM_CLEARANCE, DRC_RE_LOADED_PANEL_ENTRY::originalRuleText, DRC_RE_LOADED_PANEL_ENTRY::panelType, result, DRC_RE_LOADED_PANEL_ENTRY::ruleName, and DRC_RE_LOADED_PANEL_ENTRY::wasEdited.
| BOOST_AUTO_TEST_CASE | ( | RuleSaverEmptyEntries | ) |
Definition at line 1416 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), DRC_RULE_SAVER::GenerateRulesText(), and result.
| BOOST_AUTO_TEST_CASE | ( | RuleSaverLoadSaveRoundTrip | ) |
Definition at line 1446 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), DRC_RULE_SAVER::GenerateRulesText(), and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | RuleSaverMultipleEntries | ) |
Definition at line 1350 of file test_drc_rule_editor.cpp.
References DRC_RE_LOADED_PANEL_ENTRY::constraintData, DRC_RULE_SAVER::GenerateRulesText(), MINIMUM_CLEARANCE, DRC_RE_LOADED_PANEL_ENTRY::panelType, result, ROUTING_WIDTH, DRC_RE_LOADED_PANEL_ENTRY::ruleName, and DRC_RE_LOADED_PANEL_ENTRY::wasEdited.
| BOOST_AUTO_TEST_CASE | ( | RuleSaverNullConstraintData | ) |
| BOOST_AUTO_TEST_CASE | ( | RuleSaverRoundTripPreservation | ) |
Definition at line 1277 of file test_drc_rule_editor.cpp.
References DRC_RE_LOADED_PANEL_ENTRY::constraintData, DRC_RULE_SAVER::GenerateRulesText(), MINIMUM_CLEARANCE, DRC_RE_LOADED_PANEL_ENTRY::originalRuleText, DRC_RE_LOADED_PANEL_ENTRY::panelType, result, DRC_RE_LOADED_PANEL_ENTRY::ruleName, and DRC_RE_LOADED_PANEL_ENTRY::wasEdited.
| BOOST_AUTO_TEST_CASE | ( | RuleSaverViaStyleRule | ) |
Definition at line 1323 of file test_drc_rule_editor.cpp.
References DRC_RE_LOADED_PANEL_ENTRY::constraintData, DRC_RULE_SAVER::GenerateRulesText(), DRC_RE_LOADED_PANEL_ENTRY::panelType, result, DRC_RE_LOADED_PANEL_ENTRY::ruleName, VIA_STYLE, and DRC_RE_LOADED_PANEL_ENTRY::wasEdited.
| BOOST_AUTO_TEST_CASE | ( | RuleSaverWithCondition | ) |
Definition at line 1391 of file test_drc_rule_editor.cpp.
References DRC_RE_LOADED_PANEL_ENTRY::condition, DRC_RE_LOADED_PANEL_ENTRY::constraintData, DRC_RULE_SAVER::GenerateRulesText(), MINIMUM_CLEARANCE, DRC_RE_LOADED_PANEL_ENTRY::panelType, result, DRC_RE_LOADED_PANEL_ENTRY::ruleName, and DRC_RE_LOADED_PANEL_ENTRY::wasEdited.
| BOOST_AUTO_TEST_CASE | ( | SaveBoolRules | ) |
Definition at line 206 of file test_drc_rule_editor.cpp.
References RULE_GENERATION_CONTEXT::constraintCode, and RULE_GENERATION_CONTEXT::ruleName.
| BOOST_AUTO_TEST_CASE | ( | SaveNumericRules | ) |
Definition at line 174 of file test_drc_rule_editor.cpp.
References RULE_GENERATION_CONTEXT::constraintCode, and RULE_GENERATION_CONTEXT::ruleName.
| BOOST_AUTO_TEST_CASE | ( | SaveRules | ) |
Definition at line 103 of file test_drc_rule_editor.cpp.
References BOOST_REQUIRE(), result, and DRC_RULE_EDITOR_UTILS::SaveRules().
| BOOST_AUTO_TEST_CASE | ( | SaveRulesToFileLogic | ) |
Definition at line 140 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), RULE_TREE_NODE::m_nodeData, RULE_TREE_NODE::m_nodeId, RULE_TREE_NODE::m_nodeName, RULE_TREE_NODE::m_nodeType, and RULE.
| BOOST_AUTO_TEST_CASE | ( | ValidateAbsLengthTwoInvalid | ) |
Definition at line 377 of file test_drc_rule_editor.cpp.
References VALIDATION_RESULT::errors, VALIDATION_RESULT::isValid, and DRC_RE_ABSOLUTE_LENGTH_TWO_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateAbsLengthTwoValid | ) |
Definition at line 366 of file test_drc_rule_editor.cpp.
References result, and DRC_RE_ABSOLUTE_LENGTH_TWO_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateAllowedOrientationInvalid | ) |
Definition at line 601 of file test_drc_rule_editor.cpp.
References result, and DRC_RE_ALLOWED_ORIENTATION_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateAllowedOrientationValid | ) |
Definition at line 566 of file test_drc_rule_editor.cpp.
References VALIDATION_RESULT::errors, VALIDATION_RESULT::isValid, and DRC_RE_ALLOWED_ORIENTATION_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateBoolInputValid | ) |
Definition at line 620 of file test_drc_rule_editor.cpp.
References VALIDATION_RESULT::errors, VALIDATION_RESULT::isValid, and DRC_RE_BOOL_INPUT_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateCustomRuleInvalid | ) |
Definition at line 703 of file test_drc_rule_editor.cpp.
References result, DRC_RE_CUSTOM_RULE_CONSTRAINT_DATA::SetRuleText(), and DRC_RE_CUSTOM_RULE_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateCustomRuleValid | ) |
Definition at line 692 of file test_drc_rule_editor.cpp.
References result, DRC_RE_CUSTOM_RULE_CONSTRAINT_DATA::SetRuleText(), and DRC_RE_CUSTOM_RULE_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateDiffPairInvalid | ) |
Definition at line 427 of file test_drc_rule_editor.cpp.
References VALIDATION_RESULT::errors, VALIDATION_RESULT::isValid, and DRC_RE_ROUTING_DIFF_PAIR_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateDiffPairValid | ) |
Definition at line 415 of file test_drc_rule_editor.cpp.
References result, and DRC_RE_ROUTING_DIFF_PAIR_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateMinTxtHtThInvalid | ) |
Definition at line 650 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), VALIDATION_RESULT::errors, VALIDATION_RESULT::isValid, and DRC_RE_MINIMUM_TEXT_HEIGHT_THICKNESS_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateMinTxtHtThValid | ) |
Definition at line 639 of file test_drc_rule_editor.cpp.
References result, and DRC_RE_MINIMUM_TEXT_HEIGHT_THICKNESS_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateNumericInputInvalidNegative | ) |
Definition at line 517 of file test_drc_rule_editor.cpp.
References result, and DRC_RE_NUMERIC_INPUT_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateNumericInputValid | ) |
Definition at line 507 of file test_drc_rule_editor.cpp.
References result, and DRC_RE_NUMERIC_INPUT_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidatePermittedLayersInvalid | ) |
Definition at line 488 of file test_drc_rule_editor.cpp.
References result, and DRC_RE_PERMITTED_LAYERS_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidatePermittedLayersValid | ) |
Definition at line 461 of file test_drc_rule_editor.cpp.
References VALIDATION_RESULT::errors, VALIDATION_RESULT::isValid, and DRC_RE_PERMITTED_LAYERS_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateRoutingWidthInvalidMinGreaterThanMax | ) |
Definition at line 546 of file test_drc_rule_editor.cpp.
References result, and DRC_RE_ROUTING_WIDTH_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateRoutingWidthValid | ) |
Definition at line 536 of file test_drc_rule_editor.cpp.
References result, and DRC_RE_ROUTING_WIDTH_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateViaStyleInvalidMinGreaterThanMax | ) |
Definition at line 301 of file test_drc_rule_editor.cpp.
References result, and DRC_RE_VIA_STYLE_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateViaStyleInvalidNegativeValues | ) |
Definition at line 321 of file test_drc_rule_editor.cpp.
References result, and DRC_RE_VIA_STYLE_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateViaStyleValid | ) |
Definition at line 291 of file test_drc_rule_editor.cpp.
References result, and DRC_RE_VIA_STYLE_CONSTRAINT_DATA::Validate().