KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_net_chains_branching.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <schematic_utils/schematic_file_util.h>
#include <connection_graph.h>
#include <schematic.h>
#include <sch_symbol.h>
#include <locale_io.h>
#include <settings/settings_manager.h>
#include <set>
#include <algorithm>
#include <vector>

Go to the source code of this file.

Classes

struct  SIGNALS_BRANCH_TEST_FIXTURE
 
struct  BRANCH_TEST_PARAM
 

Enumerations

enum class  BRANCH_EXTRA_CHECK { NONE , AVOID_GND , NET_TAIL_EQUAL }
 

Functions

static void loadFixture (const wxString &name, std::unique_ptr< SCHEMATIC > &schematic, SETTINGS_MANAGER &settings)
 
 BOOST_FIXTURE_TEST_CASE (SignalBuilder_BranchingVariants, SIGNALS_BRANCH_TEST_FIXTURE)
 

Variables

static const BRANCH_TEST_PARAM BRANCH_PARAMS []
 

Enumeration Type Documentation

◆ BRANCH_EXTRA_CHECK

enum class BRANCH_EXTRA_CHECK
strong
Enumerator
NONE 
AVOID_GND 
NET_TAIL_EQUAL 

Definition at line 51 of file test_net_chains_branching.cpp.

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE()

BOOST_FIXTURE_TEST_CASE ( SignalBuilder_BranchingVariants ,
SIGNALS_BRANCH_TEST_FIXTURE  )

◆ loadFixture()

static void loadFixture ( const wxString & name,
std::unique_ptr< SCHEMATIC > & schematic,
SETTINGS_MANAGER & settings )
static

Variable Documentation

◆ BRANCH_PARAMS

const BRANCH_TEST_PARAM BRANCH_PARAMS[]
static
Initial value:
= {
{ "net_chains_branching_longer", 1, 4, BRANCH_EXTRA_CHECK::NONE },
{ "net_chains_branching_no_power", 2, 4, BRANCH_EXTRA_CHECK::AVOID_GND },
{ "net_chains_branching_named", 1, 2, BRANCH_EXTRA_CHECK::NONE },
{ "net_chains_branching_named2", 2, 2, BRANCH_EXTRA_CHECK::NET_TAIL_EQUAL }
}

Definition at line 67 of file test_net_chains_branching.cpp.

Referenced by BOOST_FIXTURE_TEST_CASE().