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

Guards issue #24193 where opening a V8 project in V10 left footprint reference and value text invisible because the PRL schema 3->5 migration mistranslated the legacy numeric layer ids. More...

#include <qa_utils/wx_utils/unit_test_utils.h>
#include <project.h>
#include <project/project_local_settings.h>
#include <settings/layer_settings_utils.h>
#include <settings/settings_manager.h>
#include <wildcards_and_files_ext.h>
#include <filesystem>
#include <fstream>

Go to the source code of this file.

Classes

class  PROJECT_LOCAL_SETTINGS_FIXTURE
 

Functions

 BOOST_AUTO_TEST_CASE (V8PrlFootprintTextStaysVisible)
 https://gitlab.com/kicad/code/kicad/-/issues/24193
 
 BOOST_AUTO_TEST_CASE (MinimalVisibleItemsAppliesMigration)
 Offset 5 maps to LAYER_FP_TEXT through the frozen table, not the live enum where commit 43e327b6 shifted it to 6.
 

Detailed Description

Guards issue #24193 where opening a V8 project in V10 left footprint reference and value text invisible because the PRL schema 3->5 migration mistranslated the legacy numeric layer ids.

Definition in file test_project_local_settings.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( MinimalVisibleItemsAppliesMigration )

Offset 5 maps to LAYER_FP_TEXT through the frozen table, not the live enum where commit 43e327b6 shifted it to 6.

The negative assertions prove the migration consumed the numeric list rather than falling back to defaults.

Definition at line 166 of file test_project_local_settings.cpp.

References GAL_LAYER_INDEX, PROJECT::GetLocalSettings(), LAYER_FP_REFERENCES, LAYER_FP_TEXT, LAYER_FP_VALUES, LAYER_PADS, LAYER_TRACKS, LAYER_ZONES, PROJECT_LOCAL_SETTINGS::m_VisibleItems, and SETTINGS_MANAGER::Prj().

◆ BOOST_AUTO_TEST_CASE() [2/2]