Classes | Functions
google::protobuf::compiler::annotation_test_util Namespace Reference

Classes

struct  ExpectedOutput
 

Functions

void AddFile (const std::string &filename, const std::string &data)
 
bool AnnotationMatchesSubstring (const std::string &file_content, const GeneratedCodeInfo::Annotation *annotation, const std::string &expected_text)
 
bool AtLeastOneAnnotationMatchesSubstring (const std::string &file_content, const std::vector< const GeneratedCodeInfo::Annotation * > &annotations, const std::string &expected_text)
 
bool DecodeMetadata (const std::string &path, GeneratedCodeInfo *info)
 
const GeneratedCodeInfo::AnnotationFindAnnotationOnPath (const GeneratedCodeInfo &info, const std::string &source_file, const std::vector< int > &path)
 
void FindAnnotationsOnPath (const GeneratedCodeInfo &info, const std::string &source_file, const std::vector< int > &path, std::vector< const GeneratedCodeInfo::Annotation * > *annotations)
 
bool RunProtoCompiler (const std::string &filename, const std::string &plugin_specific_args, CommandLineInterface *cli, FileDescriptorProto *file)
 

Function Documentation

◆ AddFile()

void google::protobuf::compiler::annotation_test_util::AddFile ( const std::string &  filename,
const std::string &  data 
)

◆ AnnotationMatchesSubstring()

bool google::protobuf::compiler::annotation_test_util::AnnotationMatchesSubstring ( const std::string &  file_content,
const GeneratedCodeInfo::Annotation annotation,
const std::string &  expected_text 
)

◆ AtLeastOneAnnotationMatchesSubstring()

bool google::protobuf::compiler::annotation_test_util::AtLeastOneAnnotationMatchesSubstring ( const std::string &  file_content,
const std::vector< const GeneratedCodeInfo::Annotation * > &  annotations,
const std::string &  expected_text 
)

◆ DecodeMetadata()

bool google::protobuf::compiler::annotation_test_util::DecodeMetadata ( const std::string &  path,
GeneratedCodeInfo info 
)

◆ FindAnnotationOnPath()

const GeneratedCodeInfo::Annotation * google::protobuf::compiler::annotation_test_util::FindAnnotationOnPath ( const GeneratedCodeInfo info,
const std::string &  source_file,
const std::vector< int > &  path 
)

◆ FindAnnotationsOnPath()

void google::protobuf::compiler::annotation_test_util::FindAnnotationsOnPath ( const GeneratedCodeInfo info,
const std::string &  source_file,
const std::vector< int > &  path,
std::vector< const GeneratedCodeInfo::Annotation * > *  annotations 
)

◆ RunProtoCompiler()

bool google::protobuf::compiler::annotation_test_util::RunProtoCompiler ( const std::string &  filename,
const std::string &  plugin_specific_args,
CommandLineInterface cli,
FileDescriptorProto file 
)


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:22