Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestJSONServiceDescription.cpp File Reference
#include "interfaces/json-rpc/IClient.h"
#include "interfaces/json-rpc/ITransportLayer.h"
#include "interfaces/json-rpc/JSONRPC.h"
#include "interfaces/json-rpc/JSONServiceDescription.h"
#include "utils/JSONVariantParser.h"
#include "utils/JSONVariantWriter.h"
#include "utils/StringUtils.h"
#include "utils/Variant.h"
#include <string>
#include <vector>
#include <gtest/gtest.h>

Classes

class  TestJSONServiceDescription
 

Functions

 TEST_F (TestJSONServiceDescription, A2020DefinitionReadsAsItsDraft03Twin)
 
 TEST_F (TestJSONServiceDescription, RequiredArrayMatchesMixedCaseProperties)
 
 TEST_F (TestJSONServiceDescription, RequiredArrayNamingUnknownPropertyFailsParse)
 
 TEST_F (TestJSONServiceDescription, SchemaWithAMalformedTypeStillFailsParse)
 
 TEST_F (TestJSONServiceDescription, AnAllOfMemberThatIsNotAReferenceFailsParse)
 
 TEST_F (TestJSONServiceDescription, MutuallyReferencingTypes)
 Two types referencing each other resolve, whichever arrives first.
 
 TEST_F (TestJSONServiceDescription, ForwardCompositionReference)
 
 TEST_F (TestJSONServiceDescription, IntrospectReportsADeprecatedProperty)
 
 TEST_F (TestJSONServiceDescription, FilteredNotificationIncludesItsReferencedTypes)
 

Function Documentation

◆ TEST_F() [1/9]

TEST_F ( TestJSONServiceDescription ,
A2020DefinitionReadsAsItsDraft03Twin  )

◆ TEST_F() [2/9]

TEST_F ( TestJSONServiceDescription ,
AnAllOfMemberThatIsNotAReferenceFailsParse  )

◆ TEST_F() [3/9]

TEST_F ( TestJSONServiceDescription ,
FilteredNotificationIncludesItsReferencedTypes  )

A notification is printed as written, so the types it refers to are found in its text, along with the types those refer to in turn.

◆ TEST_F() [4/9]

TEST_F ( TestJSONServiceDescription ,
ForwardCompositionReference  )

A derived type registered before its base is replayed only once the base has parsed, so its own properties and defaults are enforced.

◆ TEST_F() [5/9]

TEST_F ( TestJSONServiceDescription ,
IntrospectReportsADeprecatedProperty  )

A single property can carry the annotation without the whole type being deprecated, and a deprecated reference does not deprecate the type it refers to.

◆ TEST_F() [6/9]

TEST_F ( TestJSONServiceDescription ,
MutuallyReferencingTypes  )

Two types referencing each other resolve, whichever arrives first.

◆ TEST_F() [7/9]

TEST_F ( TestJSONServiceDescription ,
RequiredArrayMatchesMixedCaseProperties  )

◆ TEST_F() [8/9]

TEST_F ( TestJSONServiceDescription ,
RequiredArrayNamingUnknownPropertyFailsParse  )

◆ TEST_F() [9/9]

TEST_F ( TestJSONServiceDescription ,
SchemaWithAMalformedTypeStillFailsParse  )