|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <json_schema_validator.h>#include <remote_provider_utils.h>#include <atomic>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (PcmSchemasLoadWithoutThrowing) | |
| CreatePCM() builds these on every project open, where a throw is fatal with the CLR loaded. | |
| BOOST_AUTO_TEST_CASE (PcmPackageRefsResolve) | |
| Package reaches Contact through $ref, so the verdict only lands if that reference resolved. | |
| BOOST_AUTO_TEST_CASE (BothDefinitionContainersResolve) | |
| Draft 2019-09 renamed "definitions" to "$defs", so a schema part way through that migration carries both and either name has to work as an initial URI. | |
| validator | set_root_schema (schema) |
| for (const std::string &fragment :{ "#/$defs/Modern", "#/definitions/Legacy" }) | |
Variables | |
| nlohmann::json_schema::json_validator | validator |
| BOOST_AUTO_TEST_CASE | ( | BothDefinitionContainersResolve | ) |
Draft 2019-09 renamed "definitions" to "$defs", so a schema part way through that migration carries both and either name has to work as an initial URI.
Definition at line 192 of file test_json_schema_validator.cpp.
| BOOST_AUTO_TEST_CASE | ( | PcmPackageRefsResolve | ) |
Package reaches Contact through $ref, so the verdict only lands if that reference resolved.
Definition at line 169 of file test_json_schema_validator.cpp.
References COLLECTING_JSON_ERROR_HANDLER::HasErrors(), and validator.
| BOOST_AUTO_TEST_CASE | ( | PcmSchemasLoadWithoutThrowing | ) |
CreatePCM() builds these on every project open, where a throw is fatal with the CLR loaded.
Definition at line 146 of file test_json_schema_validator.cpp.
References BOOST_AUTO_TEST_CASE(), name, and validator.
| for | ( | const std::string &fragment :{ "#/$defs/Modern", "#/definitions/Legacy" } | ) |
Definition at line 203 of file test_json_schema_validator.cpp.
| nlohmann::json_schema::json_validator validator |
Definition at line 200 of file test_json_schema_validator.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SYMBOL_EDIT_FRAME::CreateNewSymbol(), DIALOG_SHEET_PIN_PROPERTIES::DIALOG_SHEET_PIN_PROPERTIES(), LIB_FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), PLUGIN_CONTENT_MANAGER::fetchPackages(), REMOTE_PROVIDER_METADATA::FromJson(), REMOTE_PROVIDER_PART_MANIFEST::FromJson(), GetFieldValidationErrorMessage(), PCB_NET_INSPECTOR_PANEL::onAddGroup(), PCB_NET_INSPECTOR_PANEL::onAddNet(), PCB_NET_INSPECTOR_PANEL::onRenameSelectedNet(), PINSHAPE_COMBOBOX::PINSHAPE_COMBOBOX(), PINTYPE_COMBOBOX::PINTYPE_COMBOBOX(), set_root_schema(), SCH_SYMBOL::SetRefProp(), WX_TEXT_ENTRY_DIALOG::SetTextValidator(), GRID_CELL_TEXT_EDITOR::SetValidator(), DRC_RULE_EDITOR_UTILS::ValidateCheckBoxCtrls(), DRC_RE_NUMERIC_INPUT_OVERLAY_PANEL::ValidateInputs(), DRC_RULE_EDITOR_UTILS::ValidateIntegerCtrl(), DRC_RULE_EDITOR_UTILS::ValidateNumericCtrl(), and WX_BITMAP_COMBOBOX::WX_BITMAP_COMBOBOX().