testing

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestApp

func NewTestApp(command *gencmd.Command, wrapper protoc.Wrapper, ui cli.UI) (*svcgen.App, error)

func Run

func Run(t *testing.T, ctx *Ctx)

Types

type Case

type Case struct {
	Test         string
	GArgs        []string
	DArgs        []string
	Files        []string
	SkippedFiles map[string]struct{}
	ProtoDir     string
	ProtoOutDir  string
	ServerDir    string
	PkgName      string
}

type Ctx

type Ctx struct {
	GOPATH    string
	RootDir   cli.RootDir
	CreateCmd func(*testing.T, afero.Fs, Case) gencmd.Executor
	Cases     []Case
}

Jump to

Keyboard shortcuts

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