KiCad PCB EDA Suite
Loading...
Searching...
No Matches
common/test_lset.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <lset.h>
#include <lseq.h>

Go to the source code of this file.

Macros

#define BOOST_TEST_NO_MAIN
 
#define PCB_LAYER_COUNT   PCB_LAYER_ID_COUNT
 

Functions

 BOOST_AUTO_TEST_CASE (LSETConstructorEmpty)
 
 BOOST_AUTO_TEST_CASE (LSETConstructorFromBaseSet)
 
 BOOST_AUTO_TEST_CASE (LSETConstructorFromLayer)
 
 BOOST_AUTO_TEST_CASE (LSETConstructorFromList)
 
 BOOST_AUTO_TEST_CASE (LSETConstructorFromSequence)
 
 BOOST_AUTO_TEST_CASE (LSETContains)
 
 BOOST_AUTO_TEST_CASE (LSETSequenceGeneration)
 
 BOOST_AUTO_TEST_CASE (LSETFormatting)
 
 BOOST_AUTO_TEST_CASE (LSETManipulations)
 
 BOOST_AUTO_TEST_CASE (LSETStaticMasks)
 
bool compareLSEQ (const LSEQ &seq1, const LSEQ &seq2)
 
 BOOST_AUTO_TEST_CASE (LSETSeqBaseCase)
 
 BOOST_AUTO_TEST_CASE (LSETSeqEmptyCase)
 
 BOOST_AUTO_TEST_CASE (LSETSeqStackupTop2BottomBaseCase)
 
 BOOST_AUTO_TEST_CASE (LSETSeqStackupTop2BottomWithSelection)
 
 BOOST_AUTO_TEST_CASE (LSETSeqStackupForPlottingBaseCase)
 

Macro Definition Documentation

◆ BOOST_TEST_NO_MAIN

#define BOOST_TEST_NO_MAIN

Definition at line 21 of file common/test_lset.cpp.

◆ PCB_LAYER_COUNT

#define PCB_LAYER_COUNT   PCB_LAYER_ID_COUNT

Definition at line 27 of file common/test_lset.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/15]

BOOST_AUTO_TEST_CASE ( LSETConstructorEmpty  )

Definition at line 32 of file common/test_lset.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/15]

BOOST_AUTO_TEST_CASE ( LSETConstructorFromBaseSet  )

Definition at line 39 of file common/test_lset.cpp.

References F_Cu, In1_Cu, PCB_LAYER_ID_COUNT, and BASE_SET::set().

◆ BOOST_AUTO_TEST_CASE() [3/15]

BOOST_AUTO_TEST_CASE ( LSETConstructorFromLayer  )

Definition at line 52 of file common/test_lset.cpp.

References F_Cu.

◆ BOOST_AUTO_TEST_CASE() [4/15]

BOOST_AUTO_TEST_CASE ( LSETConstructorFromList  )

Definition at line 60 of file common/test_lset.cpp.

References F_Cu, In1_Cu, and In2_Cu.

◆ BOOST_AUTO_TEST_CASE() [5/15]

BOOST_AUTO_TEST_CASE ( LSETConstructorFromSequence  )

Definition at line 70 of file common/test_lset.cpp.

References F_Cu, In1_Cu, and In2_Cu.

◆ BOOST_AUTO_TEST_CASE() [6/15]

BOOST_AUTO_TEST_CASE ( LSETContains  )

Definition at line 81 of file common/test_lset.cpp.

References F_Cu, In1_Cu, In2_Cu, and In30_Cu.

◆ BOOST_AUTO_TEST_CASE() [7/15]

BOOST_AUTO_TEST_CASE ( LSETFormatting  )

Definition at line 102 of file common/test_lset.cpp.

References F_Cu, LSET::FmtHex(), In1_Cu, and In2_Cu.

◆ BOOST_AUTO_TEST_CASE() [8/15]

BOOST_AUTO_TEST_CASE ( LSETManipulations  )

Definition at line 115 of file common/test_lset.cpp.

References B_Cu, LSET::ExtractLayer(), F_Cu, In1_Cu, In2_Cu, and UNDEFINED_LAYER.

◆ BOOST_AUTO_TEST_CASE() [9/15]

BOOST_AUTO_TEST_CASE ( LSETSeqBaseCase  )

Definition at line 162 of file common/test_lset.cpp.

References B_Cu, compareLSEQ(), expected, F_Cu, In1_Cu, and In2_Cu.

◆ BOOST_AUTO_TEST_CASE() [10/15]

BOOST_AUTO_TEST_CASE ( LSETSeqEmptyCase  )

Definition at line 172 of file common/test_lset.cpp.

References compareLSEQ(), expected, and LSET::Seq().

◆ BOOST_AUTO_TEST_CASE() [11/15]

BOOST_AUTO_TEST_CASE ( LSETSeqStackupForPlottingBaseCase  )

Definition at line 203 of file common/test_lset.cpp.

References B_Cu, B_SilkS, compareLSEQ(), Edge_Cuts, expected, F_Cu, F_SilkS, In1_Cu, In2_Cu, and Margin.

◆ BOOST_AUTO_TEST_CASE() [12/15]

BOOST_AUTO_TEST_CASE ( LSETSeqStackupTop2BottomBaseCase  )

◆ BOOST_AUTO_TEST_CASE() [13/15]

BOOST_AUTO_TEST_CASE ( LSETSeqStackupTop2BottomWithSelection  )

Definition at line 193 of file common/test_lset.cpp.

References B_Cu, B_SilkS, compareLSEQ(), Dwgs_User, Edge_Cuts, expected, F_Cu, F_SilkS, In1_Cu, In2_Cu, and Margin.

◆ BOOST_AUTO_TEST_CASE() [14/15]

BOOST_AUTO_TEST_CASE ( LSETSequenceGeneration  )

Definition at line 90 of file common/test_lset.cpp.

References F_Cu, In1_Cu, and In2_Cu.

◆ BOOST_AUTO_TEST_CASE() [15/15]

BOOST_AUTO_TEST_CASE ( LSETStaticMasks  )

Definition at line 138 of file common/test_lset.cpp.

References B_Cu, LSET::Contains(), F_Cu, In1_Cu, In30_Cu, and LSET::InternalCuMask().

◆ compareLSEQ()

bool compareLSEQ ( const LSEQ seq1,
const LSEQ seq2 
)

Definition at line 148 of file common/test_lset.cpp.

Referenced by BOOST_AUTO_TEST_CASE().