|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <jobs/job_export_bom.h>#include <json_common.h>#include <settings/bom_settings.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (ByteOrderMarkFormatPresetRoundTripAndLegacyDefault) | |
| BOOST_AUTO_TEST_CASE (VariantRoundTrip) | |
| BOOST_AUTO_TEST_CASE (EmptyVariantRoundTrip) | |
| BOOST_AUTO_TEST_CASE (FilterScopeRoundTripAndDefault) | |
| BOOST_AUTO_TEST_CASE (PresetNamesAreClearedOnDeserialization) | |
| BOOST_AUTO_TEST_CASE (BomPresetFilterScopeRoundTripAndDefault) | |
| BOOST_AUTO_TEST_CASE (VariantNoAccumulation) | |
| BOOST_AUTO_TEST_CASE (DefaultVariantClearsList) | |
| BOOST_AUTO_TEST_CASE (VariantFromList) | |
| BOOST_AUTO_TEST_CASE | ( | BomPresetFilterScopeRoundTripAndDefault | ) |
Definition at line 127 of file test_job_export_sch_bom.cpp.
References ALL, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), from_json(), REFERENCE, and VISIBLE.
| BOOST_AUTO_TEST_CASE | ( | ByteOrderMarkFormatPresetRoundTripAndLegacyDefault | ) |
Definition at line 29 of file test_job_export_sch_bom.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_REQUIRE(), BOM_FMT_PRESET::CSV(), from_json(), and BOM_FMT_PRESET::includeByteOrderMark.
| BOOST_AUTO_TEST_CASE | ( | DefaultVariantClearsList | ) |
Definition at line 162 of file test_job_export_sch_bom.cpp.
References JOB_EXPORT_BOM::GetSelectedVariant(), JOB_EXPORT_BOM::m_variantNames, and JOB_EXPORT_BOM::SetSelectedVariant().
| BOOST_AUTO_TEST_CASE | ( | EmptyVariantRoundTrip | ) |
Definition at line 70 of file test_job_export_sch_bom.cpp.
References JOB_EXPORT_BOM::FromJson(), JOB_EXPORT_BOM::GetSelectedVariant(), and JOB::ToJson().
| BOOST_AUTO_TEST_CASE | ( | FilterScopeRoundTripAndDefault | ) |
Definition at line 84 of file test_job_export_sch_bom.cpp.
References ALL, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), JOB_EXPORT_BOM::FromJson(), JOB_EXPORT_BOM::m_filterScope, REFERENCE, JOB::ToJson(), and VISIBLE.
| BOOST_AUTO_TEST_CASE | ( | PresetNamesAreClearedOnDeserialization | ) |
Definition at line 106 of file test_job_export_sch_bom.cpp.
References JOB_EXPORT_BOM::FromJson(), JOB_EXPORT_BOM::m_bomFmtPresetName, JOB_EXPORT_BOM::m_bomPresetName, JOB_EXPORT_BOM::m_fieldDelimiter, JOB_EXPORT_BOM::m_filterString, and JOB::ToJson().
| BOOST_AUTO_TEST_CASE | ( | VariantFromList | ) |
Definition at line 174 of file test_job_export_sch_bom.cpp.
References JOB_EXPORT_BOM::FromJson(), JOB_EXPORT_BOM::GetSelectedVariant(), and JOB_EXPORT_BOM::m_includeByteOrderMark.
| BOOST_AUTO_TEST_CASE | ( | VariantNoAccumulation | ) |
Definition at line 149 of file test_job_export_sch_bom.cpp.
References BOOST_CHECK_EQUAL(), JOB_EXPORT_BOM::GetSelectedVariant(), JOB_EXPORT_BOM::m_variantNames, and JOB_EXPORT_BOM::SetSelectedVariant().
| BOOST_AUTO_TEST_CASE | ( | VariantRoundTrip | ) |
Definition at line 53 of file test_job_export_sch_bom.cpp.
References JOB_EXPORT_BOM::FromJson(), JOB_EXPORT_BOM::GetSelectedVariant(), JOB_EXPORT_BOM::m_includeByteOrderMark, JOB_EXPORT_BOM::SetSelectedVariant(), and JOB::ToJson().