KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_sch_sheet.cpp File Reference

Test suite for SCH_SHEET. More...

Go to the source code of this file.

Classes

class  TEST_SCH_SHEET_FIXTURE
 
struct  TEST_END_CONN_PIN
 

Functions

std::ostream & operator<< (std::ostream &os, DANGLING_END_ITEM const &d)
 Print helper.
 
 BOOST_AUTO_TEST_CASE (Default)
 Declare the test suite.
 
 BOOST_AUTO_TEST_CASE (SchematicParent)
 Test setting parent schematic.
 
 BOOST_AUTO_TEST_CASE (AddPins)
 Test adding pins to a sheet.
 
 BOOST_AUTO_TEST_CASE (PinRenumbering)
 Check that pins are added and renumbered to be unique.
 
 BOOST_AUTO_TEST_CASE (EndconnectionPoints)
 Test the endpoint and connection point collections: we should be able to add pins, then have them appear as endpoints.
 

Detailed Description

Test suite for SCH_SHEET.

Definition in file test_sch_sheet.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/5]

BOOST_AUTO_TEST_CASE ( AddPins  )

Test adding pins to a sheet.

Definition at line 108 of file test_sch_sheet.cpp.

References CHECK_WX_ASSERT.

◆ BOOST_AUTO_TEST_CASE() [2/5]

BOOST_AUTO_TEST_CASE ( Default  )

Declare the test suite.

Check default properties

Definition at line 79 of file test_sch_sheet.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/5]

BOOST_AUTO_TEST_CASE ( EndconnectionPoints  )

Test the endpoint and connection point collections: we should be able to add pins, then have them appear as endpoints.

Definition at line 184 of file test_sch_sheet.cpp.

References pin, and SHEET_LABEL_END.

◆ BOOST_AUTO_TEST_CASE() [4/5]

BOOST_AUTO_TEST_CASE ( PinRenumbering  )

Check that pins are added and renumbered to be unique.

Definition at line 149 of file test_sch_sheet.cpp.

References KI_TEST::CollectionHasNoDuplicates(), and pin.

◆ BOOST_AUTO_TEST_CASE() [5/5]

BOOST_AUTO_TEST_CASE ( SchematicParent  )

Test setting parent schematic.

Definition at line 94 of file test_sch_sheet.cpp.

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
DANGLING_END_ITEM const &  d 
)

Print helper.

Not a print_log_value because old Boosts don't like that in BOOST_CHECK_EQUAL_COLLECTIONS

Definition at line 63 of file test_sch_sheet.cpp.

References DANGLING_END_ITEM::GetItem(), DANGLING_END_ITEM::GetParent(), DANGLING_END_ITEM::GetPosition(), DANGLING_END_ITEM::GetType(), VECTOR2< T >::x, and VECTOR2< T >::y.