testutil

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

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

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

type ProtocConfig struct {
	Files        []string
	IncludePaths []string
	Parameter    string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL