1 #ifndef CPER_IR_TEST_UTILS_H 2 #define CPER_IR_TEST_UTILS_H 3 4 #include <valijson/adapters/nlohmann_json_adapter.hpp> 5 #include <valijson/schema.hpp> 6 #include <valijson/schema_parser.hpp> 7 #include <valijson/validator.hpp> 8 #include <nlohmann/json.hpp> 9 10 extern "C" { 11 #include <stdio.h> 12 #include <libcper/BaseTypes.h> 13 #include <libcper/generator/sections/gen-section.h> 14 } 15 16 FILE *generate_record_memstream(const char **types, UINT16 num_types, 17 char **buf, size_t *buf_size, 18 int single_section, 19 GEN_VALID_BITS_TEST_TYPE validBitsType); 20 int schema_validate_from_file(const char *file_path, nlohmann::json &jsonData, 21 std::string &error_message); 22 nlohmann::json loadJson(const char *filePath); 23 24 #endif 25