8#ifndef META_OCEAN_TEST_TESTIO_TEST_JSON_PARSER_H
9#define META_OCEAN_TEST_TESTIO_TEST_JSON_PARSER_H
This class implements a JSON value that can hold different JSON types.
Definition JSONParser.h:35
This class implements a generator for random numbers.
Definition RandomGenerator.h:42
This class holds both the JSON string and the expected parsed value.
Definition TestJSONParser.h:41
IO::JSONParser::JSONValue expectedValue_
The expected parsed value.
Definition TestJSONParser.h:82
static JSONTestData randomValue(RandomGenerator &randomGenerator, const unsigned int remainingDepth)
Generates a random JSON value (primitive, array, or object) with expected value.
static std::string randomString(RandomGenerator &randomGenerator, const size_t maxLength=20)
Generates a random JSON string with random content.
static JSONTestData randomArray(RandomGenerator &randomGenerator, const unsigned int remainingDepth)
Generates a random JSON array with expected value.
static JSONTestData randomObject(RandomGenerator &randomGenerator, const unsigned int remainingDepth)
Generates a random JSON object with expected value.
std::string jsonString_
The JSON string representation.
Definition TestJSONParser.h:79
This class implements a JSON parser test.
Definition TestJSONParser.h:34
static bool testArrays(const double testDuration)
Tests parsing of JSON arrays.
static bool testObjects()
Tests parsing of JSON objects.
static bool testPrimitives(const double testDuration)
Tests parsing of primitive JSON values (null, boolean, number, string).
static bool testRandomJSON(const double testDuration)
Tests parsing of randomly generated JSON structures.
static bool testErrorHandling()
Tests error handling with invalid JSON.
static bool testNestedStructures()
Tests parsing of nested JSON structures.
static bool testStrictAndLenientParsing()
Tests strict and lenient parsing modes (trailing commas).
static bool compareJSONValues(Validation &validation, const IO::JSONParser::JSONValue &parsed, const IO::JSONParser::JSONValue &expected)
Compares two JSON values for equality.
static bool testInputSources()
Tests parsing from different input sources (file, buffer, stream).
static bool test(const double testDuration, const TestSelector &selector)
Tests all JSON parser functions.
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
This class implements a helper class to validate tests.
Definition Validation.h:105
The namespace covering the entire Ocean framework.
Definition Accessor.h:15