Definition at line 45 of file schematest.cpp.
◆ DocumentList
◆ TestSuiteList
◆ Schema()
◆ SetUp()
| virtual void Schema::SetUp |
( |
| ) |
|
|
inlinevirtual |
Definition at line 49 of file schematest.cpp.
52 const char* filenames[] = {
53 "additionalItems.json",
54 "additionalProperties.json",
74 "patternProperties.json",
83 char jsonBuffer[65536];
86 for (
size_t i = 0; i <
ARRAY_SIZE(filenames); i++) {
87 char filename[FILENAME_MAX];
88 sprintf(filename,
"jsonschema/tests/draft4/%s", filenames[i]);
89 char*
json = ReadFile(filename, jsonAllocator);
91 printf(
"json test suite file %s not found", filename);
98 printf(
"json test suite file %s has parse error", filename);
103 std::string schemaDescription = (*schemaItr)[
"description"].GetString();
104 if (IsExcludeTestSuite(schemaDescription))
107 TestSuite* ts =
new TestSuite;
112 if (IsExcludeTest(schemaDescription +
", " + (*testItr)[
"description"].GetString()))
117 ts->tests.push_back(d2);
Represents a JSON value. Use Value for UTF8 encoding and default allocator.
Allocator & GetAllocator()
Get the allocator of this document.
bool HasParseError() const
Whether a parse error has occurred in the last parsing.
GenericDocument< UTF8<> > Document
GenericDocument with UTF8 encoding.
GenericDocument & Parse(const typename SourceEncoding::Ch *str)
Parse JSON text from a read-only string (with Encoding conversion)
GenericSchemaDocument< Value, CrtAllocator > SchemaDocument
◆ TearDown()
| virtual void Schema::TearDown |
( |
| ) |
|
|
inlinevirtual |
◆ testSuites
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/external/rapidjson/test/perftest/schematest.cpp