Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCode ¶
func GenerateCode(t *testing.T, generator CodeGenerator, req *pluginpb.CodeGeneratorRequest, testDir string) string
GenerateCode generates code in a subdirectory of the test dir and returns the directory name.
func Request ¶
func Request(t *testing.T, cfg ProtocConfig) *pluginpb.CodeGeneratorRequest
Request returns a file descriptor set for the supplied files using the protoc command.
Types ¶
type CodeGenerator ¶
type CodeGenerator interface {
Generate(req *pluginpb.CodeGeneratorRequest) (*pluginpb.CodeGeneratorResponse, error)
}
type ProtocConfig ¶
Click to show internal directories.
Click to hide internal directories.