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 
)

Definition at line 72 of file annotation_test_util.cc.

◆ AnnotationMatchesSubstring()

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

Definition at line 156 of file annotation_test_util.cc.

◆ 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 
)

Definition at line 135 of file annotation_test_util.cc.

◆ DecodeMetadata()

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

Definition at line 95 of file annotation_test_util.cc.

◆ FindAnnotationOnPath()

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

Definition at line 124 of file annotation_test_util.cc.

◆ 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 
)

Definition at line 102 of file annotation_test_util.cc.

◆ RunProtoCompiler()

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

Definition at line 77 of file annotation_test_util.cc.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:09