|
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/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 <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 (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 1952 of file test_drc_rule_editor.cpp.
| BOOST_AUTO_TEST_CASE | ( | ConditionGroupTokenizeAndNotOperator | ) |
Definition at line 1985 of file test_drc_rule_editor.cpp.
| BOOST_AUTO_TEST_CASE | ( | ConditionGroupTokenizeAndOperator | ) |
Definition at line 1964 of file test_drc_rule_editor.cpp.
| BOOST_AUTO_TEST_CASE | ( | ConditionGroupTokenizeComplexExpression | ) |
Definition at line 1995 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL().
| BOOST_AUTO_TEST_CASE | ( | ConditionGroupTokenizeOrOperator | ) |
Definition at line 1975 of file test_drc_rule_editor.cpp.
| BOOST_AUTO_TEST_CASE | ( | FactoryOverwrite | ) |
Definition at line 336 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 261 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 1780 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 1761 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 1734 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 1806 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 1845 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 1885 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | IntegrationViasUnderSmdRoundTrip | ) |
Definition at line 2281 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 2023 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 947 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 825 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 936 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), and DRC_PANEL_MATCHER::MatchRule().
| BOOST_AUTO_TEST_CASE | ( | PanelMatcherExactMatchViaStyle | ) |
Definition at line 722 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 964 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 912 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 893 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 749 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 799 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 767 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 872 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 853 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 224 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 73 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 46 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 1146 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 2447 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 1029 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 1346 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 1361 of file test_drc_rule_editor.cpp.
References BOOST_CHECK_EQUAL(), and DRC_RULE_LOADER::LoadFromString().
| BOOST_AUTO_TEST_CASE | ( | RuleLoaderMatchedLengthRoundTrip | ) |
Definition at line 1194 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 1231 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 1272 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 1168 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 1318 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 2371 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 1372 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 2471 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 2489 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 1007 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 1055 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 2408 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 1124 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 982 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 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 | ( | RuleLoaderWithCondition | ) |
Definition at line 1300 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 1444 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 1558 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 1588 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 1493 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 1617 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 1675 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 1422 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 2128 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 2152 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 2177 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 2103 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 2065 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 1468 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 1533 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 201 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 169 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 98 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 135 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 372 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 361 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 595 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 560 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 614 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 697 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 686 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 422 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 410 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 644 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 633 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 512 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 502 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 483 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 456 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 541 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 531 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 296 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 316 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 286 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 2227 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 2212 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 2244 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.