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

Lightweight regression tests for EasyEDA Pro v3 raw index and parser behavior. More...

#include <boost/test/unit_test.hpp>
#include <array>
#include <set>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <io/easyedapro/easyedapro_import_utils.h>
#include <io/easyedapro/easyedapro_v3_parser.h>
#include <sch_io/easyedapro/sch_easyedapro_v3_parser.h>
#include <pgm_base.h>
#include <schematic.h>
#include <sch_io/sch_io.h>
#include <sch_io/sch_io_mgr.h>
#include <sch_label.h>
#include <sch_line.h>
#include <sch_pin.h>
#include <sch_screen.h>
#include <sch_symbol.h>
#include <sch_text.h>
#include <settings/settings_manager.h>
#include <wx/filefn.h>
#include <wx/filename.h>
#include <wx/wfstream.h>
#include <wx/zipstrm.h>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (LibraryIndexMergeKeepsSymbolAndFootprintNames)
 
 BOOST_AUTO_TEST_CASE (LibraryItemDuplicateNamesGetNumericSuffix)
 
 BOOST_AUTO_TEST_CASE (BuildProjectIndexHasSchematicSheets)
 
 BOOST_AUTO_TEST_CASE (RawSchematicPageContainsTextWireAndNetAttr)
 
 BOOST_AUTO_TEST_CASE (RawSymbolContainsBlobObjectReference)
 
 BOOST_AUTO_TEST_CASE (RawSymbolPartUnitsAndPinOrientationAreStable)
 
 BOOST_AUTO_TEST_CASE (PluginLoadProducesWireTextAndLabel)
 
 BOOST_AUTO_TEST_CASE (PluginLoadPreservesWireNetLabelAlignment)
 
 BOOST_AUTO_TEST_CASE (PluginLoadConvertsNetportsToGlobalLabels)
 
 BOOST_AUTO_TEST_CASE (PluginLoadKeepsSchematicVerticalOrderAndFootprints)
 
 BOOST_AUTO_TEST_CASE (PluginLoadPowerSymbolsKeepValueAndVisibility)
 
 BOOST_AUTO_TEST_CASE (PluginLoadFillsRootSheetWithFirstPage)
 The first EasyEDA page must fill the root sheet instead of leaving an empty index sheet above the real pages.
 
 BOOST_AUTO_TEST_CASE (AlignTokenMapsToJustify)
 The vertical alignment mapping must read only the vertical token.
 

Detailed Description

Lightweight regression tests for EasyEDA Pro v3 raw index and parser behavior.

Definition in file eeschema/test_easyedapro_v3_import.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/13]

BOOST_AUTO_TEST_CASE ( AlignTokenMapsToJustify )

The vertical alignment mapping must read only the vertical token.

CENTER is the horizontal token, so a bare CENTER match used to turn e.g. CENTER_BOTTOM into center-justified text.

Definition at line 1000 of file eeschema/test_easyedapro_v3_import.cpp.

References EASYEDAPRO::AlignToFontH(), EASYEDAPRO::AlignToFontV(), and BOOST_CHECK_EQUAL().

◆ BOOST_AUTO_TEST_CASE() [2/13]

BOOST_AUTO_TEST_CASE ( BuildProjectIndexHasSchematicSheets )

◆ BOOST_AUTO_TEST_CASE() [3/13]

BOOST_AUTO_TEST_CASE ( LibraryIndexMergeKeepsSymbolAndFootprintNames )

◆ BOOST_AUTO_TEST_CASE() [4/13]

BOOST_AUTO_TEST_CASE ( LibraryItemDuplicateNamesGetNumericSuffix )

◆ BOOST_AUTO_TEST_CASE() [5/13]

◆ BOOST_AUTO_TEST_CASE() [6/13]

BOOST_AUTO_TEST_CASE ( PluginLoadFillsRootSheetWithFirstPage )

The first EasyEDA page must fill the root sheet instead of leaving an empty index sheet above the real pages.

Definition at line 962 of file eeschema/test_easyedapro_v3_import.cpp.

References BOOST_REQUIRE(), getEasyEdaProV3ArchivePath(), BASE_SCREEN::GetPageNumber(), SCH_SHEET::GetScreen(), PGM_BASE::GetSettingsManager(), SCH_SCREEN::Items(), SETTINGS_MANAGER::LoadProject(), EE_RTREE::OfType(), Pgm(), Prj(), and SCH_SYMBOL_T.

◆ BOOST_AUTO_TEST_CASE() [7/13]

◆ BOOST_AUTO_TEST_CASE() [8/13]

◆ BOOST_AUTO_TEST_CASE() [9/13]

◆ BOOST_AUTO_TEST_CASE() [10/13]

◆ BOOST_AUTO_TEST_CASE() [11/13]

BOOST_AUTO_TEST_CASE ( RawSchematicPageContainsTextWireAndNetAttr )

◆ BOOST_AUTO_TEST_CASE() [12/13]

BOOST_AUTO_TEST_CASE ( RawSymbolContainsBlobObjectReference )

◆ BOOST_AUTO_TEST_CASE() [13/13]