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 "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. More... | |
BOOST_AUTO_TEST_CASE (Default) | |
Declare the test suite. More... | |
BOOST_AUTO_TEST_CASE (SchematicParent) | |
Test setting parent schematic. More... | |
BOOST_AUTO_TEST_CASE (AddPins) | |
Test adding pins to a sheet. More... | |
BOOST_AUTO_TEST_CASE (PinRenumbering) | |
Check that pins are added and renumbered to be unique. More... | |
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. More... | |
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 109 of file test_sch_sheet.cpp.
References CHECK_WX_ASSERT.
BOOST_AUTO_TEST_CASE | ( | Default | ) |
Declare the test suite.
Check default properties
Definition at line 80 of file test_sch_sheet.cpp.
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 185 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 150 of file test_sch_sheet.cpp.
References KI_TEST::CollectionHasNoDuplicates(), and pin.
BOOST_AUTO_TEST_CASE | ( | SchematicParent | ) |
Test setting parent schematic.
Definition at line 95 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 64 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.