|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <wx/ffile.h>#include <board.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/rule_editor/drc_re_numeric_constraint_types.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_vias_under_smd_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 <drc/drc_engine.h>#include <drc/drc_rule_condition.h>#include <dialogs/rule_editor_dialog_base.h>#include <footprint.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (RoundTripViaStyle) | |
| BOOST_AUTO_TEST_CASE (ShowMatchesIgnoresPairTokensInStringLiterals) | |
| 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 (ValidateRoutingWidthInvalidToleranceTooLarge) | |
| 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 (PanelMatcherLengthAndSkewConstraint) | |
| 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 (RuleLoaderMatchedLengthWithSkew) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderMatchedLengthRoundTrip) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderMatchedLengthWithinDiffPairs) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderMatchedLengthWithoutWithinDiffPairs) | |
| 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 (RuleSaverPreservesQuotedNameWithSpaces) | |
| BOOST_AUTO_TEST_CASE (RuleSaverPreservesBareSymbolNameUnquoted) | |
| BOOST_AUTO_TEST_CASE (RuleSaverQuotesNameStartingWithDigit) | |
| 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 (RuleSaverSilkToSoldermaskWithCondition) | |
| BOOST_AUTO_TEST_CASE (RuleSaverSilkToSoldermaskNoExtraCondition) | |
| BOOST_AUTO_TEST_CASE (RuleSaverSilkToSilkBothLayers) | |
| BOOST_AUTO_TEST_CASE (RuleSaverSilkToSilkFrontOnly) | |
| BOOST_AUTO_TEST_CASE (RuleSaverSilkToSilkWithCondition) | |
| BOOST_AUTO_TEST_CASE (ValidateViasUnderSmdValid) | |
| BOOST_AUTO_TEST_CASE (ValidateViasUnderSmdInvalid) | |
| BOOST_AUTO_TEST_CASE (ViasUnderSmdClauseGeneration) | |
| BOOST_AUTO_TEST_CASE (IntegrationViasUnderSmdRoundTrip) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderNonStandardOrientationFallsBackToCustom) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderStandardOrientationLoadsStructured) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderAllowAllOrientationLoadsStructured) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderPermittedLayersInnerLayerFallsBackToCustom) | |
| BOOST_AUTO_TEST_CASE (RuleLoaderPermittedLayersStandardLoadsStructured) | |
| BOOST_AUTO_TEST_CASE | ( | ConditionGroupBuildSingleCondition | ) |
Definition at line 1980 of file test_drc_rule_editor.cpp.
| BOOST_AUTO_TEST_CASE | ( | ConditionGroupTokenizeAndNotOperator | ) |
Definition at line 2013 of file test_drc_rule_editor.cpp.
| BOOST_AUTO_TEST_CASE | ( | ConditionGroupTokenizeAndOperator | ) |
Definition at line 1992 of file test_drc_rule_editor.cpp.
| BOOST_AUTO_TEST_CASE | ( | ConditionGroupTokenizeComplexExpression | ) |
Definition at line 2023 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL().
| BOOST_AUTO_TEST_CASE | ( | ConditionGroupTokenizeOrOperator | ) |
Definition at line 2003 of file test_drc_rule_editor.cpp.
| BOOST_AUTO_TEST_CASE | ( | FactoryOverwrite | ) |
Definition at line 364 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 289 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 1808 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 1789 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 1762 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 1834 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 1873 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 1913 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | IntegrationViasUnderSmdRoundTrip | ) |
Definition at line 2309 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DRC_RULE_SAVER::GenerateRulesText(), DRC_RULE_LOADER::LoadFromString(), and VIAS_UNDER_SMD.
| BOOST_AUTO_TEST_CASE | ( | ItemFilterExcludesNetInfoAndGenerator | ) |
Definition at line 2051 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 975 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 853 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 964 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), and DRC_PANEL_MATCHER::MatchRule().
| BOOST_AUTO_TEST_CASE | ( | PanelMatcherExactMatchViaStyle | ) |
Definition at line 750 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 992 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_CONSTRAINT, HOLE_TO_HOLE_DISTANCE, MINIMUM_CLEARANCE, ROUTING_WIDTH, SILK_CLEARANCE_CONSTRAINT, SILK_TO_SILK_CLEARANCE, and TRACK_WIDTH_CONSTRAINT.
| BOOST_AUTO_TEST_CASE | ( | PanelMatcherLengthAndSkewConstraint | ) |
Definition at line 940 of file test_drc_rule_editor.cpp.
References DRC_RULE::AddConstraint(), BOOST_CHECK_EQUAL(), LENGTH_CONSTRAINT, MATCHED_LENGTH_DIFF_PAIR, DRC_PANEL_MATCHER::MatchRule(), MINOPTMAX< T >::SetMax(), MINOPTMAX< T >::SetMin(), MINOPTMAX< T >::SetOpt(), SKEW_CONSTRAINT, and DRC_CONSTRAINT::Value().
| BOOST_AUTO_TEST_CASE | ( | PanelMatcherLengthConstraint | ) |
Definition at line 921 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 777 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 827 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 795 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 900 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 881 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 252 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 101 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::GetOptWidth(), DRC_RE_BASE_CONSTRAINT_DATA::GetRuleCondition(), RULE_EDITOR_DATA_BASE::GetRuleName(), DRC_RE_ROUTING_WIDTH_CONSTRAINT_DATA::GetWidthTolerance(), 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 50 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_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 1174 of file test_drc_rule_editor.cpp.
References ABSOLUTE_LENGTH, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderAllowAllOrientationLoadsStructured | ) |
Definition at line 2475 of file test_drc_rule_editor.cpp.
References ALLOWED_ORIENTATION, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderDiffPairFromText | ) |
Definition at line 1057 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 1374 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 1389 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderMatchedLengthRoundTrip | ) |
Definition at line 1222 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DRC_RULE_SAVER::GenerateRulesText(), DRC_RULE_LOADER::LoadFromString(), and MATCHED_LENGTH_DIFF_PAIR.
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderMatchedLengthWithinDiffPairs | ) |
Definition at line 1259 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DRC_RULE_SAVER::GenerateRulesText(), DRC_RULE_LOADER::LoadFromString(), and MATCHED_LENGTH_DIFF_PAIR.
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderMatchedLengthWithoutWithinDiffPairs | ) |
Definition at line 1300 of file test_drc_rule_editor.cpp.
References BOOST_REQUIRE(), DRC_RULE_SAVER::GenerateRulesText(), and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderMatchedLengthWithSkew | ) |
Definition at line 1196 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DRC_RULE_LOADER::LoadFromString(), and MATCHED_LENGTH_DIFF_PAIR.
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderMultipleRules | ) |
Definition at line 1346 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 | ( | RuleLoaderNonStandardOrientationFallsBackToCustom | ) |
Definition at line 2399 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), CUSTOM_RULE, and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderNumericConstraints | ) |
Definition at line 1400 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 | ( | RuleLoaderPermittedLayersInnerLayerFallsBackToCustom | ) |
Definition at line 2499 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), CUSTOM_RULE, and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderPermittedLayersStandardLoadsStructured | ) |
Definition at line 2517 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DRC_RULE_LOADER::LoadFromString(), and PERMITTED_LAYERS.
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderRoutingWidthFromText | ) |
Definition at line 1035 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 1083 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 | ( | RuleLoaderStandardOrientationLoadsStructured | ) |
Definition at line 2436 of file test_drc_rule_editor.cpp.
References ALLOWED_ORIENTATION, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderTextHeightThicknessFromText | ) |
Definition at line 1152 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 1010 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 1111 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 1328 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 1472 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 1586 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 1616 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 1521 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 | ( | RuleSaverPreservesBareSymbolNameUnquoted | ) |
| BOOST_AUTO_TEST_CASE | ( | RuleSaverPreservesQuotedNameWithSpaces | ) |
Definition at line 1645 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), DRC_RE_LOADED_PANEL_ENTRY::constraintData, DRC_RULE_SAVER::GenerateRulesText(), DRC_RULE_LOADER::LoadFromString(), 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 | ( | RuleSaverQuotesNameStartingWithDigit | ) |
Definition at line 1703 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), DRC_RE_LOADED_PANEL_ENTRY::constraintData, DRC_RULE_SAVER::GenerateRulesText(), DRC_RULE_LOADER::LoadFromString(), 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 | ( | RuleSaverRoundTripPreservation | ) |
Definition at line 1450 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 | ( | RuleSaverSilkToSilkBothLayers | ) |
Definition at line 2156 of file test_drc_rule_editor.cpp.
References B_SilkS, DRC_RE_LOADED_PANEL_ENTRY::constraintData, F_SilkS, DRC_RULE_SAVER::GenerateRulesText(), DRC_RE_LOADED_PANEL_ENTRY::layerCondition, DRC_RE_LOADED_PANEL_ENTRY::panelType, result, DRC_RE_LOADED_PANEL_ENTRY::ruleName, SILK_TO_SILK_CLEARANCE, and DRC_RE_LOADED_PANEL_ENTRY::wasEdited.
| BOOST_AUTO_TEST_CASE | ( | RuleSaverSilkToSilkFrontOnly | ) |
Definition at line 2180 of file test_drc_rule_editor.cpp.
References DRC_RE_LOADED_PANEL_ENTRY::constraintData, F_SilkS, DRC_RULE_SAVER::GenerateRulesText(), DRC_RE_LOADED_PANEL_ENTRY::layerCondition, DRC_RE_LOADED_PANEL_ENTRY::panelType, result, DRC_RE_LOADED_PANEL_ENTRY::ruleName, SILK_TO_SILK_CLEARANCE, and DRC_RE_LOADED_PANEL_ENTRY::wasEdited.
| BOOST_AUTO_TEST_CASE | ( | RuleSaverSilkToSilkWithCondition | ) |
Definition at line 2205 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), DRC_RE_LOADED_PANEL_ENTRY::condition, DRC_RE_LOADED_PANEL_ENTRY::constraintData, F_SilkS, DRC_RULE_SAVER::GenerateRulesText(), DRC_RE_LOADED_PANEL_ENTRY::layerCondition, DRC_RE_LOADED_PANEL_ENTRY::panelType, result, DRC_RE_LOADED_PANEL_ENTRY::ruleName, SILK_TO_SILK_CLEARANCE, and DRC_RE_LOADED_PANEL_ENTRY::wasEdited.
| BOOST_AUTO_TEST_CASE | ( | RuleSaverSilkToSoldermaskNoExtraCondition | ) |
Definition at line 2131 of file test_drc_rule_editor.cpp.
References B_SilkS, DRC_RE_LOADED_PANEL_ENTRY::constraintData, DRC_RULE_SAVER::GenerateRulesText(), DRC_RE_LOADED_PANEL_ENTRY::layerCondition, DRC_RE_LOADED_PANEL_ENTRY::panelType, result, DRC_RE_LOADED_PANEL_ENTRY::ruleName, SILK_TO_SOLDERMASK_CLEARANCE, and DRC_RE_LOADED_PANEL_ENTRY::wasEdited.
| BOOST_AUTO_TEST_CASE | ( | RuleSaverSilkToSoldermaskWithCondition | ) |
Definition at line 2093 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), DRC_RE_LOADED_PANEL_ENTRY::condition, DRC_RE_LOADED_PANEL_ENTRY::constraintData, F_SilkS, DRC_RULE_SAVER::GenerateRulesText(), DRC_RE_LOADED_PANEL_ENTRY::layerCondition, DRC_RE_LOADED_PANEL_ENTRY::panelType, result, DRC_RE_LOADED_PANEL_ENTRY::ruleName, SILK_TO_SOLDERMASK_CLEARANCE, and DRC_RE_LOADED_PANEL_ENTRY::wasEdited.
| BOOST_AUTO_TEST_CASE | ( | RuleSaverViaStyleRule | ) |
Definition at line 1496 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 1561 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 229 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 197 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 126 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 163 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 | ( | ShowMatchesIgnoresPairTokensInStringLiterals | ) |
Definition at line 78 of file test_drc_rule_editor.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), COURTYARD_CLEARANCE_CONSTRAINT, FOOTPRINT, BOARD::GetDesignSettings(), DRC_ENGINE::GetItemsMatchingRule(), and FOOTPRINT::SetReference().
| BOOST_AUTO_TEST_CASE | ( | ValidateAbsLengthTwoInvalid | ) |
Definition at line 400 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 389 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 623 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 588 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 642 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 725 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 714 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 450 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 438 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 672 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 661 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 540 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 530 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 511 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 484 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 | ( | ValidateRoutingWidthInvalidToleranceTooLarge | ) |
Definition at line 569 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 559 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 324 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 344 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 314 of file test_drc_rule_editor.cpp.
References result, and DRC_RE_VIA_STYLE_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateViasUnderSmdInvalid | ) |
Definition at line 2255 of file test_drc_rule_editor.cpp.
References result, and DRC_RE_VIAS_UNDER_SMD_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ValidateViasUnderSmdValid | ) |
Definition at line 2240 of file test_drc_rule_editor.cpp.
References VALIDATION_RESULT::errors, VALIDATION_RESULT::isValid, and DRC_RE_VIAS_UNDER_SMD_CONSTRAINT_DATA::Validate().
| BOOST_AUTO_TEST_CASE | ( | ViasUnderSmdClauseGeneration | ) |
Definition at line 2272 of file test_drc_rule_editor.cpp.
References RULE_GENERATION_CONTEXT::constraintCode, DRC_RE_VIAS_UNDER_SMD_CONSTRAINT_DATA::GetConstraintClauses(), and RULE_GENERATION_CONTEXT::ruleName.