109 BOOST_CHECK( nonCopper->m_Field == FIELD::END_LAYER );
113 std::nullopt, std::nullopt, std::nullopt, std::nullopt,
114 std::nullopt, std::nullopt, 2 );
117 BOOST_CHECK( offStack->m_Field == FIELD::END_LAYER );
128 BOOST_CHECK( tooSmall->m_Field == FIELD::SECONDARY_DRILL );
131 F_Cu,
B_Cu, std::nullopt, std::nullopt, std::nullopt,
135 BOOST_CHECK( tertiaryTooSmall->m_Field == FIELD::TERTIARY_DRILL );
140 BOOST_CHECK( !valid.has_value() );
151 BOOST_CHECK( secondaryStart->m_Field == FIELD::SECONDARY_START_LAYER );
157 BOOST_CHECK( secondaryEnd->m_Field == FIELD::SECONDARY_END_LAYER );
160 F_Cu,
B_Cu, std::nullopt, std::nullopt, std::nullopt,
164 BOOST_CHECK( tertiaryStart->m_Field == FIELD::TERTIARY_START_LAYER );
167 F_Cu,
B_Cu, std::nullopt, std::nullopt, std::nullopt,
171 BOOST_CHECK( tertiaryEnd->m_Field == FIELD::TERTIARY_END_LAYER );
static std::optional< VIA_PARAMETER_ERROR > ValidateViaParameters(std::optional< int > aDiameter, std::optional< int > aPrimaryDrill, std::optional< PCB_LAYER_ID > aPrimaryStartLayer=std::nullopt, std::optional< PCB_LAYER_ID > aPrimaryEndLayer=std::nullopt, std::optional< int > aSecondaryDrill=std::nullopt, std::optional< PCB_LAYER_ID > aSecondaryStartLayer=std::nullopt, std::optional< PCB_LAYER_ID > aSecondaryEndLayer=std::nullopt, std::optional< int > aTertiaryDrill=std::nullopt, std::optional< PCB_LAYER_ID > aTertiaryStartLayer=std::nullopt, std::optional< PCB_LAYER_ID > aTertiaryEndLayer=std::nullopt, int aCopperLayerCount=0)