KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_fields_table_presence.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <board.h>
#include <board_commit.h>
#include <footprint.h>
#include <footprint_fields_data_model.h>
#include <pcb_field.h>
#include <template_fieldnames.h>
#include <tool/tool_manager.h>

Go to the source code of this file.

Classes

struct  FOOTPRINT_FIELDS_TABLE_PRESENCE_FIXTURE
 

Functions

 BOOST_AUTO_TEST_CASE (UntouchedMissingPresetFieldRemainsAbsent)
 
 BOOST_AUTO_TEST_CASE (ExplicitEmptyValueCreatesField)
 
 BOOST_AUTO_TEST_CASE (ExistingEmptyFieldCanBeCleared)
 
 BOOST_AUTO_TEST_CASE (UserAddedColumnCreatesEmptyField)
 
 BOOST_AUTO_TEST_CASE (ExcludeFromSimulationAttributeIsEditable)
 
 BOOST_AUTO_TEST_CASE (ExcludeFromSimulationAttributeIsVariantAware)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/6]

BOOST_AUTO_TEST_CASE ( ExcludeFromSimulationAttributeIsEditable )

Definition at line 151 of file test_fields_table_presence.cpp.

References BOOST_CHECK_EQUAL().

◆ BOOST_AUTO_TEST_CASE() [2/6]

BOOST_AUTO_TEST_CASE ( ExcludeFromSimulationAttributeIsVariantAware )

Definition at line 167 of file test_fields_table_presence.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/6]

BOOST_AUTO_TEST_CASE ( ExistingEmptyFieldCanBeCleared )

Definition at line 113 of file test_fields_table_presence.cpp.

References BOOST_REQUIRE(), and USER.

◆ BOOST_AUTO_TEST_CASE() [4/6]

BOOST_AUTO_TEST_CASE ( ExplicitEmptyValueCreatesField )

Definition at line 93 of file test_fields_table_presence.cpp.

References BOOST_REQUIRE(), and EDA_TEXT::GetText().

◆ BOOST_AUTO_TEST_CASE() [5/6]

BOOST_AUTO_TEST_CASE ( UntouchedMissingPresetFieldRemainsAbsent )

Definition at line 79 of file test_fields_table_presence.cpp.

References BOOST_AUTO_TEST_CASE(), and BOOST_REQUIRE().

◆ BOOST_AUTO_TEST_CASE() [6/6]

BOOST_AUTO_TEST_CASE ( UserAddedColumnCreatesEmptyField )

Definition at line 134 of file test_fields_table_presence.cpp.

References BOOST_REQUIRE(), and EDA_TEXT::GetText().