MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / test_json_import_info

Function test_json_import_info

tests/test_project_export.cpp:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace TestProjectExport {
16
17Error test_json_import_info(const Ref<ImportInfo> &import_info) {
18 Error err = OK;
19 Dictionary json = import_info->to_json();
20 Ref<ImportInfo> import_info2 = ImportInfo::from_json(json);
21 CHECK(import_info->is_equal_to(import_info2));
22 return err;
23}
24
25Error test_json_export_report(const Ref<ExportReport> &export_report) {
26 Error err = OK;

Callers 1

test_export_projectFunction · 0.85

Calls 3

from_jsonFunction · 0.85
to_jsonMethod · 0.45
is_equal_toMethod · 0.45

Tested by

no test coverage detected