webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Public Attributes | Properties | List of all members
Conformance.ConformanceResponse Class Reference

Represents a single test case's output. More...

Inheritance diagram for Conformance.ConformanceResponse:

Public Types

enum  ResultOneofCase {
  ResultOneofCase.None = 0, ResultOneofCase.ParseError = 1, ResultOneofCase.SerializeError = 6, ResultOneofCase.RuntimeError = 2,
  ResultOneofCase.ProtobufPayload = 3, ResultOneofCase.JsonPayload = 4, ResultOneofCase.Skipped = 5
}
 Enum of possible cases for the "result" oneof. More...
 

Public Member Functions

 ConformanceResponse ()
 
 ConformanceResponse (ConformanceResponse other)
 
ConformanceResponse Clone ()
 
void ClearResult ()
 
override bool Equals (object other)
 
bool Equals (ConformanceResponse other)
 
override int GetHashCode ()
 
override string ToString ()
 
void WriteTo (pb::CodedOutputStream output)
 
int CalculateSize ()
 
void MergeFrom (ConformanceResponse other)
 
void MergeFrom (pb::CodedInputStream input)
 

Public Attributes

const int ParseErrorFieldNumber = 1
 Field number for the "parse_error" field. More...
 
const int SerializeErrorFieldNumber = 6
 Field number for the "serialize_error" field. More...
 
const int RuntimeErrorFieldNumber = 2
 Field number for the "runtime_error" field. More...
 
const int ProtobufPayloadFieldNumber = 3
 Field number for the "protobuf_payload" field. More...
 
const int JsonPayloadFieldNumber = 4
 Field number for the "json_payload" field. More...
 
const int SkippedFieldNumber = 5
 Field number for the "skipped" field. More...
 

Properties

static pb::MessageParser< ConformanceResponseParser [get]
 
static pbr::MessageDescriptor Descriptor [get]
 
string ParseError [get, set]
 This string should be set to indicate parsing failed. The string can provide more information about the parse error if it is available. More...
 
string SerializeError [get, set]
 If the input was successfully parsed but errors occurred when serializing it to the requested output format, set the error message in this field. More...
 
string RuntimeError [get, set]
 This should be set if some other error occurred. This will always indicate that the test failed. The string can provide more information about the failure. More...
 
pb::ByteString ProtobufPayload [get, set]
 If the input was successfully parsed and the requested output was protobuf, serialize it to protobuf and set it in this field. More...
 
string JsonPayload [get, set]
 If the input was successfully parsed and the requested output was JSON, serialize to JSON and set it in this field. More...
 
string Skipped [get, set]
 For when the testee skipped the test, likely because a certain feature wasn't supported, like JSON input/output. More...
 
ResultOneofCase ResultCase [get]
 

Detailed Description

Represents a single test case's output.

Member Enumeration Documentation

◆ ResultOneofCase

Enum of possible cases for the "result" oneof.

Enumerator
None 
ParseError 
SerializeError 
RuntimeError 
ProtobufPayload 
JsonPayload 
Skipped 

Constructor & Destructor Documentation

◆ ConformanceResponse() [1/2]

Conformance.ConformanceResponse.ConformanceResponse ( )
inline

◆ ConformanceResponse() [2/2]

Conformance.ConformanceResponse.ConformanceResponse ( ConformanceResponse  other)
inline

Member Function Documentation

◆ CalculateSize()

int Conformance.ConformanceResponse.CalculateSize ( )
inline

◆ ClearResult()

void Conformance.ConformanceResponse.ClearResult ( )
inline

◆ Clone()

ConformanceResponse Conformance.ConformanceResponse.Clone ( )
inline

◆ Equals() [1/2]

override bool Conformance.ConformanceResponse.Equals ( object  other)
inline

◆ Equals() [2/2]

bool Conformance.ConformanceResponse.Equals ( ConformanceResponse  other)
inline

◆ GetHashCode()

override int Conformance.ConformanceResponse.GetHashCode ( )
inline

◆ MergeFrom() [1/2]

void Conformance.ConformanceResponse.MergeFrom ( ConformanceResponse  other)
inline

◆ MergeFrom() [2/2]

void Conformance.ConformanceResponse.MergeFrom ( pb::CodedInputStream  input)
inline

◆ ToString()

override string Conformance.ConformanceResponse.ToString ( )
inline

◆ WriteTo()

void Conformance.ConformanceResponse.WriteTo ( pb::CodedOutputStream  output)
inline

Member Data Documentation

◆ JsonPayloadFieldNumber

const int Conformance.ConformanceResponse.JsonPayloadFieldNumber = 4

Field number for the "json_payload" field.

◆ ParseErrorFieldNumber

const int Conformance.ConformanceResponse.ParseErrorFieldNumber = 1

Field number for the "parse_error" field.

◆ ProtobufPayloadFieldNumber

const int Conformance.ConformanceResponse.ProtobufPayloadFieldNumber = 3

Field number for the "protobuf_payload" field.

◆ RuntimeErrorFieldNumber

const int Conformance.ConformanceResponse.RuntimeErrorFieldNumber = 2

Field number for the "runtime_error" field.

◆ SerializeErrorFieldNumber

const int Conformance.ConformanceResponse.SerializeErrorFieldNumber = 6

Field number for the "serialize_error" field.

◆ SkippedFieldNumber

const int Conformance.ConformanceResponse.SkippedFieldNumber = 5

Field number for the "skipped" field.

Property Documentation

◆ Descriptor

pbr.MessageDescriptor Conformance.ConformanceResponse.Descriptor
staticget

◆ JsonPayload

string Conformance.ConformanceResponse.JsonPayload
getset

If the input was successfully parsed and the requested output was JSON, serialize to JSON and set it in this field.

◆ ParseError

string Conformance.ConformanceResponse.ParseError
getset

This string should be set to indicate parsing failed. The string can provide more information about the parse error if it is available.

Setting this string does not necessarily mean the testee failed the test. Some of the test cases are intentionally invalid input.

◆ Parser

pb.MessageParser<ConformanceResponse> Conformance.ConformanceResponse.Parser
staticget

◆ ProtobufPayload

pb.ByteString Conformance.ConformanceResponse.ProtobufPayload
getset

If the input was successfully parsed and the requested output was protobuf, serialize it to protobuf and set it in this field.

◆ ResultCase

ResultOneofCase Conformance.ConformanceResponse.ResultCase
get

◆ RuntimeError

string Conformance.ConformanceResponse.RuntimeError
getset

This should be set if some other error occurred. This will always indicate that the test failed. The string can provide more information about the failure.

◆ SerializeError

string Conformance.ConformanceResponse.SerializeError
getset

If the input was successfully parsed but errors occurred when serializing it to the requested output format, set the error message in this field.

◆ Skipped

string Conformance.ConformanceResponse.Skipped
getset

For when the testee skipped the test, likely because a certain feature wasn't supported, like JSON input/output.


The documentation for this class was generated from the following file: