blob: 3b1d061b5b0731e0fd21540171297a65a5fd50cf [file] [log] [blame]
#ifndef CPER_IR_TEST_UTILS_H
#define CPER_IR_TEST_UTILS_H
#include <stdio.h>
#include <libcper/BaseTypes.h>
#include <libcper/generator/sections/gen-section.h>
#include <json.h>
// Controls whether required properties are added to the majority of property
// definitions. This is useful for unit tests that are validating JSON where
// all fields are valid
enum class AddRequiredProps { YES, NO };
FILE *generate_record_memstream(const char **types, UINT16 num_types,
char **buf, size_t *buf_size,
int single_section,
GEN_VALID_BITS_TEST_TYPE validBitsType);
int schema_validate_from_file(json_object *to_test, int single_section,
int all_valid_bits);
#endif