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)
 

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/10]

BOOST_AUTO_TEST_CASE ( LSETConstructorEmpty  )

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

References BASE_SET::count().

◆ BOOST_AUTO_TEST_CASE() [2/10]

BOOST_AUTO_TEST_CASE ( LSETConstructorFromBaseSet  )

◆ BOOST_AUTO_TEST_CASE() [3/10]

BOOST_AUTO_TEST_CASE ( LSETConstructorFromLayer  )

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

References BOOST_CHECK(), BASE_SET::count(), F_Cu, and BASE_SET::test().

◆ BOOST_AUTO_TEST_CASE() [4/10]

BOOST_AUTO_TEST_CASE ( LSETConstructorFromList  )

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

References BOOST_CHECK(), F_Cu, In1_Cu, and In2_Cu.

◆ BOOST_AUTO_TEST_CASE() [5/10]

BOOST_AUTO_TEST_CASE ( LSETConstructorFromSequence  )

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

References BOOST_CHECK(), BASE_SET::count(), F_Cu, In1_Cu, In2_Cu, and BASE_SET::test().

◆ BOOST_AUTO_TEST_CASE() [6/10]

BOOST_AUTO_TEST_CASE ( LSETContains  )

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

References BOOST_CHECK(), F_Cu, In1_Cu, In2_Cu, and In30_Cu.

◆ BOOST_AUTO_TEST_CASE() [7/10]

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/10]

BOOST_AUTO_TEST_CASE ( LSETManipulations  )

◆ BOOST_AUTO_TEST_CASE() [9/10]

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() [10/10]

BOOST_AUTO_TEST_CASE ( LSETStaticMasks  )