KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_layer_range.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <layer_range.h>
#include <vector>

Go to the source code of this file.

Macros

#define BOOST_TEST_NO_MAIN
 

Functions

 BOOST_AUTO_TEST_CASE (ForwardIterationTwoLayers)
 
 BOOST_AUTO_TEST_CASE (ForwardIterationFourLayers)
 
 BOOST_AUTO_TEST_CASE (ReverseIterationFourLayers)
 
 BOOST_AUTO_TEST_CASE (PartialRangeForward)
 
 BOOST_AUTO_TEST_CASE (PartialRangeReverse)
 
 BOOST_AUTO_TEST_CASE (InvalidLayerThrowsException)
 
 BOOST_AUTO_TEST_CASE (SingleLayerRange)
 
 BOOST_AUTO_TEST_CASE (MaxLayerCount)
 

Macro Definition Documentation

◆ BOOST_TEST_NO_MAIN

#define BOOST_TEST_NO_MAIN

Definition at line 21 of file test_layer_range.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/8]

BOOST_AUTO_TEST_CASE ( ForwardIterationFourLayers  )

Definition at line 42 of file test_layer_range.cpp.

References B_Cu, expected, F_Cu, In1_Cu, and In2_Cu.

◆ BOOST_AUTO_TEST_CASE() [2/8]

BOOST_AUTO_TEST_CASE ( ForwardIterationTwoLayers  )

Definition at line 28 of file test_layer_range.cpp.

References B_Cu, expected, and F_Cu.

◆ BOOST_AUTO_TEST_CASE() [3/8]

BOOST_AUTO_TEST_CASE ( InvalidLayerThrowsException  )

Definition at line 98 of file test_layer_range.cpp.

References B_Cu, B_Mask, F_Cu, and F_Mask.

◆ BOOST_AUTO_TEST_CASE() [4/8]

BOOST_AUTO_TEST_CASE ( MaxLayerCount  )

Definition at line 118 of file test_layer_range.cpp.

References B_Cu, expected, F_Cu, In1_Cu, and PCB_LAYER_ID_COUNT.

◆ BOOST_AUTO_TEST_CASE() [5/8]

BOOST_AUTO_TEST_CASE ( PartialRangeForward  )

Definition at line 70 of file test_layer_range.cpp.

References B_Cu, expected, In1_Cu, In2_Cu, In3_Cu, and In4_Cu.

◆ BOOST_AUTO_TEST_CASE() [6/8]

BOOST_AUTO_TEST_CASE ( PartialRangeReverse  )

Definition at line 84 of file test_layer_range.cpp.

References expected, F_Cu, In1_Cu, In2_Cu, and In3_Cu.

◆ BOOST_AUTO_TEST_CASE() [7/8]

BOOST_AUTO_TEST_CASE ( ReverseIterationFourLayers  )

Definition at line 56 of file test_layer_range.cpp.

References B_Cu, expected, F_Cu, In1_Cu, and In2_Cu.

◆ BOOST_AUTO_TEST_CASE() [8/8]

BOOST_AUTO_TEST_CASE ( SingleLayerRange  )

Definition at line 104 of file test_layer_range.cpp.

References expected, and In2_Cu.