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

Go to the source code of this file.

Functions

 BOOST_FIXTURE_TEST_CASE (GroupsLoadSave, GROUP_LOAD_TEST_FIXTURE)
 This is similar to group_saveload.cpp's HealthyGroups, but runs the other way around: it loads a fixed board file and checks that the groups are loaded correctly.
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE()

BOOST_FIXTURE_TEST_CASE ( GroupsLoadSave  ,
GROUP_LOAD_TEST_FIXTURE   
)

This is similar to group_saveload.cpp's HealthyGroups, but runs the other way around: it loads a fixed board file and checks that the groups are loaded correctly.

This makes it a good place to check parsing of the board file format, as well as stability of the format even if it's saved at a newer format version and re-read.

But it's less good at programmatic generation of interesting groups in the first place.

Definition at line 77 of file test_group_load_save.cpp.

References group, KI_TEST::LoadAndTestBoardFile(), PCB_GROUP_T, and KI_TEST::RequireBoardItemWithTypeAndId().