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 (FromBackToInner)
 
 BOOST_AUTO_TEST_CASE (FromBackToInnerSixLayer)
 
 BOOST_AUTO_TEST_CASE (SizeMatchesIteration)
 
 BOOST_AUTO_TEST_CASE (InvalidLayerThrowsException)
 
 BOOST_AUTO_TEST_CASE (SingleLayerRange)
 
 BOOST_AUTO_TEST_CASE (ZeroLayerCountClampedToTwo)
 
 BOOST_AUTO_TEST_CASE (OneLayerCountClampedToTwo)
 
 BOOST_AUTO_TEST_CASE (NegativeLayerCountClampedToTwo)
 
 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/14]

BOOST_AUTO_TEST_CASE ( ForwardIterationFourLayers )

Definition at line 42 of file test_layer_range.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [2/14]

BOOST_AUTO_TEST_CASE ( ForwardIterationTwoLayers )

Definition at line 28 of file test_layer_range.cpp.

References B_Cu, BOOST_AUTO_TEST_CASE(), expected, F_Cu, and result.

◆ BOOST_AUTO_TEST_CASE() [3/14]

BOOST_AUTO_TEST_CASE ( FromBackToInner )

Definition at line 98 of file test_layer_range.cpp.

References B_Cu, expected, In2_Cu, and result.

◆ BOOST_AUTO_TEST_CASE() [4/14]

BOOST_AUTO_TEST_CASE ( FromBackToInnerSixLayer )

Definition at line 115 of file test_layer_range.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [5/14]

BOOST_AUTO_TEST_CASE ( InvalidLayerThrowsException )

Definition at line 166 of file test_layer_range.cpp.

References B_Cu, B_Mask, F_Cu, and F_Mask.

◆ BOOST_AUTO_TEST_CASE() [6/14]

BOOST_AUTO_TEST_CASE ( MaxLayerCount )

Definition at line 228 of file test_layer_range.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [7/14]

BOOST_AUTO_TEST_CASE ( NegativeLayerCountClampedToTwo )

Definition at line 214 of file test_layer_range.cpp.

References B_Cu, expected, F_Cu, and result.

◆ BOOST_AUTO_TEST_CASE() [8/14]

BOOST_AUTO_TEST_CASE ( OneLayerCountClampedToTwo )

Definition at line 200 of file test_layer_range.cpp.

References B_Cu, expected, F_Cu, and result.

◆ BOOST_AUTO_TEST_CASE() [9/14]

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, In4_Cu, and result.

◆ BOOST_AUTO_TEST_CASE() [10/14]

BOOST_AUTO_TEST_CASE ( PartialRangeReverse )

Definition at line 84 of file test_layer_range.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [11/14]

BOOST_AUTO_TEST_CASE ( ReverseIterationFourLayers )

Definition at line 56 of file test_layer_range.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [12/14]

BOOST_AUTO_TEST_CASE ( SingleLayerRange )

Definition at line 172 of file test_layer_range.cpp.

References expected, In2_Cu, and result.

◆ BOOST_AUTO_TEST_CASE() [13/14]

BOOST_AUTO_TEST_CASE ( SizeMatchesIteration )

Definition at line 129 of file test_layer_range.cpp.

References B_Cu, BOOST_CHECK_EQUAL(), expected, F_Cu, In1_Cu, In2_Cu, and In3_Cu.

◆ BOOST_AUTO_TEST_CASE() [14/14]

BOOST_AUTO_TEST_CASE ( ZeroLayerCountClampedToTwo )

Definition at line 186 of file test_layer_range.cpp.

References B_Cu, expected, F_Cu, and result.