rippled
Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
ripple::KnownFormatToGRPC_test Class Reference
Inheritance diagram for ripple::KnownFormatToGRPC_test:
Inheritance graph
[legend]
Collaboration diagram for ripple::KnownFormatToGRPC_test:
Collaboration graph
[legend]

Public Member Functions

void testLedgerObjectGRPCOneOfs ()
 
void testTransactionGRPCOneOfs ()
 
void run () override
 

Private Member Functions

void validateDescriptorAgainstSFields (google::protobuf::Descriptor const *const pbufDescriptor, google::protobuf::Descriptor const *const commonFields, std::string const &knownFormatName, std::map< std::string, SField const * > &&sFields)
 
void validateOneOfDescriptor (google::protobuf::Descriptor const *const entryDesc, SField const *const sField)
 
void validateMultiFieldDescriptor (google::protobuf::Descriptor const *const entryDesc, SField const *const sField)
 
void validateOneDescriptor (google::protobuf::Descriptor const *const entryDesc, SField const *const sField)
 
void validateRepeatedField (google::protobuf::FieldDescriptor const *const fieldDesc, SField const *const sField)
 
void validateDescriptor (google::protobuf::Descriptor const *const entryDesc, SField const *const sField)
 
template<typename FmtType , typename FmtName >
void validateFields (google::protobuf::Descriptor const *const pbufDescriptor, google::protobuf::Descriptor const *const commonFields, typename KnownFormats< FmtType, FmtName >::Item const *const knownFormatItem)
 
template<typename FmtType , typename FmtName >
void testKnownFormats (KnownFormats< FmtType, FmtName > const &knownFormat, std::string const &knownFormatName, google::protobuf::Descriptor const *const commonFields, google::protobuf::OneofDescriptor const *const oneOfDesc)
 

Static Private Member Functions

static std::string formatNameToEntryTypeName (std::string const &fmtName)
 
template<typename KeyType >
static std::map< std::string, SField const * > soTemplateToSFields (SOTemplate const &soTemplate, [[maybe_unused]] KeyType fmtId)
 

Static Private Attributes

static constexpr auto fieldTYPE_UINT32
 
static constexpr auto fieldTYPE_UINT64
 
static constexpr auto fieldTYPE_BYTES
 
static constexpr auto fieldTYPE_STRING
 
static constexpr auto fieldTYPE_MESSAGE
 

Detailed Description

Definition at line 42 of file KnownFormatToGRPC_test.cpp.

Member Function Documentation

◆ formatNameToEntryTypeName()

static std::string ripple::KnownFormatToGRPC_test::formatNameToEntryTypeName ( std::string const &  fmtName)
staticprivate

Definition at line 64 of file KnownFormatToGRPC_test.cpp.

◆ soTemplateToSFields()

template<typename KeyType >
static std::map<std::string, SField const*> ripple::KnownFormatToGRPC_test::soTemplateToSFields ( SOTemplate const &  soTemplate,
[[maybe_unused] ] KeyType  fmtId 
)
staticprivate

Definition at line 86 of file KnownFormatToGRPC_test.cpp.

◆ validateDescriptorAgainstSFields()

void ripple::KnownFormatToGRPC_test::validateDescriptorAgainstSFields ( google::protobuf::Descriptor const *const  pbufDescriptor,
google::protobuf::Descriptor const *const  commonFields,
std::string const &  knownFormatName,
std::map< std::string, SField const * > &&  sFields 
)
private

Definition at line 226 of file KnownFormatToGRPC_test.cpp.

◆ validateOneOfDescriptor()

void ripple::KnownFormatToGRPC_test::validateOneOfDescriptor ( google::protobuf::Descriptor const *const  entryDesc,
SField const *const  sField 
)
private

Definition at line 356 of file KnownFormatToGRPC_test.cpp.

◆ validateMultiFieldDescriptor()

void ripple::KnownFormatToGRPC_test::validateMultiFieldDescriptor ( google::protobuf::Descriptor const *const  entryDesc,
SField const *const  sField 
)
private

Definition at line 407 of file KnownFormatToGRPC_test.cpp.

◆ validateOneDescriptor()

void ripple::KnownFormatToGRPC_test::validateOneDescriptor ( google::protobuf::Descriptor const *const  entryDesc,
SField const *const  sField 
)
private

Definition at line 536 of file KnownFormatToGRPC_test.cpp.

◆ validateRepeatedField()

void ripple::KnownFormatToGRPC_test::validateRepeatedField ( google::protobuf::FieldDescriptor const *const  fieldDesc,
SField const *const  sField 
)
private

Definition at line 685 of file KnownFormatToGRPC_test.cpp.

◆ validateDescriptor()

void ripple::KnownFormatToGRPC_test::validateDescriptor ( google::protobuf::Descriptor const *const  entryDesc,
SField const *const  sField 
)
private

Definition at line 743 of file KnownFormatToGRPC_test.cpp.

◆ validateFields()

template<typename FmtType , typename FmtName >
void ripple::KnownFormatToGRPC_test::validateFields ( google::protobuf::Descriptor const *const  pbufDescriptor,
google::protobuf::Descriptor const *const  commonFields,
typename KnownFormats< FmtType, FmtName >::Item const *const  knownFormatItem 
)
private

Definition at line 773 of file KnownFormatToGRPC_test.cpp.

◆ testKnownFormats()

template<typename FmtType , typename FmtName >
void ripple::KnownFormatToGRPC_test::testKnownFormats ( KnownFormats< FmtType, FmtName > const &  knownFormat,
std::string const &  knownFormatName,
google::protobuf::Descriptor const *const  commonFields,
google::protobuf::OneofDescriptor const *const  oneOfDesc 
)
private

Definition at line 812 of file KnownFormatToGRPC_test.cpp.

◆ testLedgerObjectGRPCOneOfs()

void ripple::KnownFormatToGRPC_test::testLedgerObjectGRPCOneOfs ( )

Definition at line 924 of file KnownFormatToGRPC_test.cpp.

◆ testTransactionGRPCOneOfs()

void ripple::KnownFormatToGRPC_test::testTransactionGRPCOneOfs ( )

Definition at line 940 of file KnownFormatToGRPC_test.cpp.

◆ run()

void ripple::KnownFormatToGRPC_test::run ( )
override

Definition at line 956 of file KnownFormatToGRPC_test.cpp.

Member Data Documentation

◆ fieldTYPE_UINT32

constexpr auto ripple::KnownFormatToGRPC_test::fieldTYPE_UINT32
staticconstexprprivate
Initial value:
=
google::protobuf::FieldDescriptor::Type::TYPE_UINT32

Definition at line 45 of file KnownFormatToGRPC_test.cpp.

◆ fieldTYPE_UINT64

constexpr auto ripple::KnownFormatToGRPC_test::fieldTYPE_UINT64
staticconstexprprivate
Initial value:
=
google::protobuf::FieldDescriptor::Type::TYPE_UINT64

Definition at line 48 of file KnownFormatToGRPC_test.cpp.

◆ fieldTYPE_BYTES

constexpr auto ripple::KnownFormatToGRPC_test::fieldTYPE_BYTES
staticconstexprprivate
Initial value:
=
google::protobuf::FieldDescriptor::Type::TYPE_BYTES

Definition at line 51 of file KnownFormatToGRPC_test.cpp.

◆ fieldTYPE_STRING

constexpr auto ripple::KnownFormatToGRPC_test::fieldTYPE_STRING
staticconstexprprivate
Initial value:
=
google::protobuf::FieldDescriptor::Type::TYPE_STRING

Definition at line 54 of file KnownFormatToGRPC_test.cpp.

◆ fieldTYPE_MESSAGE

constexpr auto ripple::KnownFormatToGRPC_test::fieldTYPE_MESSAGE
staticconstexprprivate
Initial value:
=
google::protobuf::FieldDescriptor::Type::TYPE_MESSAGE

Definition at line 57 of file KnownFormatToGRPC_test.cpp.