KiCad PCB EDA Suite
|
Test suite for SCH_SHEET. More...
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <sch_sheet.h>
#include <sch_sheet_pin.h>
#include <schematic.h>
#include <qa_utils/uuid_test_utils.h>
#include <qa_utils/wx_utils/wx_assert.h>
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. | |
Test suite for SCH_SHEET.
Definition in file test_sch_sheet.cpp.
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 | ( | Default | ) |
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 | ( | 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 | ( | SchematicParent | ) |
Test setting parent schematic.
Definition at line 94 of file test_sch_sheet.cpp.
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(), operator<<(), VECTOR2< T >::x, and VECTOR2< T >::y.