testsuite

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMDContext

func NewMDContext(ctx context.Context, md MD) context.Context

Types

type Header map[string]string

A Header represents the key-value pairs.

func MergeHeaders

func MergeHeaders(hs ...Header) Header

func (Header) Copy

func (h Header) Copy(src Header)

func (Header) Slice

func (h Header) Slice() []string

type Logger

type Logger interface {
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
}

type MD

type MD map[string]interface{}

func MDFromContext

func MDFromContext(ctx context.Context) (md MD, ok bool)

func NewMD

func NewMD() MD

type Suite

type Suite interface {
	Tests() []Test
}

type Test

type Test interface {
	Name() string
	Description() string
	Run(context.Context, Logger)
}

Directories

Path Synopsis
grpctesting
Package grpctesting is a generated protocol buffer package.
Package grpctesting is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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