|
proxygen
|
#include <folly/experimental/JSONSchema.h>#include <folly/json.h>#include <folly/portability/GTest.h>Go to the source code of this file.
Functions | |
| bool | check (const dynamic &schema, const dynamic &value, bool check=true) |
| TEST (JSONSchemaTest, TestMultipleOfInt) | |
| TEST (JSONSchemaTest, TestMultipleOfDouble) | |
| TEST (JSONSchemaTest, TestMinimumIntInclusive) | |
| TEST (JSONSchemaTest, TestMinimumIntExclusive) | |
| TEST (JSONSchemaTest, TestMaximumIntInclusive) | |
| TEST (JSONSchemaTest, TestMaximumIntExclusive) | |
| TEST (JSONSchemaTest, TestMinimumDoubleInclusive) | |
| TEST (JSONSchemaTest, TestMinimumDoubleExclusive) | |
| TEST (JSONSchemaTest, TestMaximumDoubleInclusive) | |
| TEST (JSONSchemaTest, TestMaximumDoubleExclusive) | |
| TEST (JSONSchemaTest, TestInvalidSchema) | |
| TEST (JSONSchemaTest, TestMinimumStringLength) | |
| TEST (JSONSchemaTest, TestMaximumStringLength) | |
| TEST (JSONSchemaTest, TestStringPattern) | |
| TEST (JSONSchemaTest, TestMinimumArrayItems) | |
| TEST (JSONSchemaTest, TestMaximumArrayItems) | |
| TEST (JSONSchemaTest, TestArrayUniqueItems) | |
| TEST (JSONSchemaTest, TestArrayItems) | |
| TEST (JSONSchemaTest, TestArrayAdditionalItems) | |
| TEST (JSONSchemaTest, TestArrayNoAdditionalItems) | |
| TEST (JSONSchemaTest, TestArrayItemsNotPresent) | |
| TEST (JSONSchemaTest, TestRef) | |
| TEST (JSONSchemaTest, TestRecursiveRef) | |
| TEST (JSONSchemaTest, TestDoubleRecursiveRef) | |
| TEST (JSONSchemaTest, TestInfinitelyRecursiveRef) | |
| TEST (JSONSchemaTest, TestRequired) | |
| TEST (JSONSchemaTest, TestMinMaxProperties) | |
| TEST (JSONSchemaTest, TestProperties) | |
| TEST (JSONSchemaTest, TestPropertyAndPattern) | |
| TEST (JSONSchemaTest, TestPropertyDependency) | |
| TEST (JSONSchemaTest, TestSchemaDependency) | |
| TEST (JSONSchemaTest, TestEnum) | |
| TEST (JSONSchemaTest, TestType) | |
| TEST (JSONSchemaTest, TestTypeArray) | |
| TEST (JSONSchemaTest, TestAllOf) | |
| TEST (JSONSchemaTest, TestAnyOf) | |
| TEST (JSONSchemaTest, TestOneOf) | |
| TEST (JSONSchemaTest, TestNot) | |
| TEST (JSONSchemaTest, TestMetaSchema) | |
| TEST (JSONSchemaTest, TestProductSchema) | |
Definition at line 27 of file JSONSchemaTest.cpp.
References folly::jsonschema::makeSchemaValidator(), and folly::jsonschema::makeValidator().
Referenced by fizz::server::test::ServerProtocolTest::acceptEarlyData(), folly::hazptr_domain< DeterministicAtomic >::cleanup(), folly::SingletonThreadLocal< T, Tag, Make, TLTag >::getWrapper(), folly::hazptr_domain_push_retired(), TEST(), fizz::server::test::TEST_F(), and TEST_P().
| TEST | ( | JSONSchemaTest | , |
| TestMultipleOfInt | |||
| ) |
Definition at line 44 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestMultipleOfDouble | |||
| ) |
Definition at line 53 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestMinimumIntInclusive | |||
| ) |
Definition at line 65 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestMinimumIntExclusive | |||
| ) |
Definition at line 75 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestMaximumIntInclusive | |||
| ) |
Definition at line 80 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestMaximumIntExclusive | |||
| ) |
Definition at line 90 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestMinimumDoubleInclusive | |||
| ) |
Definition at line 95 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestMinimumDoubleExclusive | |||
| ) |
Definition at line 105 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestMaximumDoubleInclusive | |||
| ) |
Definition at line 110 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestMaximumDoubleExclusive | |||
| ) |
Definition at line 120 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestInvalidSchema | |||
| ) |
Definition at line 125 of file JSONSchemaTest.cpp.
References ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestMinimumStringLength | |||
| ) |
Definition at line 138 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestMaximumStringLength | |||
| ) |
Definition at line 145 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestStringPattern | |||
| ) |
Definition at line 152 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestMinimumArrayItems | |||
| ) |
Definition at line 158 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestMaximumArrayItems | |||
| ) |
Definition at line 165 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestArrayUniqueItems | |||
| ) |
Definition at line 173 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestArrayItems | |||
| ) |
Definition at line 187 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestArrayAdditionalItems | |||
| ) |
Definition at line 193 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestArrayNoAdditionalItems | |||
| ) |
Definition at line 203 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_FALSE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestArrayItemsNotPresent | |||
| ) |
Definition at line 210 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestRef | |||
| ) |
Definition at line 215 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestRecursiveRef | |||
| ) |
Definition at line 225 of file JSONSchemaTest.cpp.
References ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestDoubleRecursiveRef | |||
| ) |
Definition at line 238 of file JSONSchemaTest.cpp.
References ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestInfinitelyRecursiveRef | |||
| ) |
Definition at line 253 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_THROW, folly::jsonschema::makeValidator(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestRequired | |||
| ) |
Definition at line 259 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestMinMaxProperties | |||
| ) |
Definition at line 266 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestProperties | |||
| ) |
Definition at line 280 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestPropertyAndPattern | |||
| ) |
Definition at line 292 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestPropertyDependency | |||
| ) |
Definition at line 302 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestSchemaDependency | |||
| ) |
Definition at line 310 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestEnum | |||
| ) |
Definition at line 319 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestType | |||
| ) |
Definition at line 326 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestTypeArray | |||
| ) |
Definition at line 332 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestAllOf | |||
| ) |
Definition at line 339 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestAnyOf | |||
| ) |
Definition at line 349 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestOneOf | |||
| ) |
Definition at line 360 of file JSONSchemaTest.cpp.
References folly::dynamic::array(), ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestNot | |||
| ) |
Definition at line 371 of file JSONSchemaTest.cpp.
References ASSERT_FALSE, ASSERT_TRUE, check(), folly::dynamic::object(), and schema.
| TEST | ( | JSONSchemaTest | , |
| TestMetaSchema | |||
| ) |
Definition at line 381 of file JSONSchemaTest.cpp.
References ASSERT_THROW, folly::jsonschema::makeSchemaValidator(), folly::parseJson(), and val.
| TEST | ( | JSONSchemaTest | , |
| TestProductSchema | |||
| ) |
Definition at line 409 of file JSONSchemaTest.cpp.
References ASSERT_TRUE, check(), folly::parseJson(), and product.