grpcexpect

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: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path               string                    `json:"path,omitempty"`
	Root               string                    `json:"root,omitempty"`
	Address            string                    `json:"address,omitempty"`
	ProtoSetPath       string                    `json:"protoSetPath,omitempty"`
	TLS                bool                      `json:"tls,omitempty"`
	CAPath             string                    `json:"caPath,omitempty"`
	ServerHostOverride string                    `json:"serverHostOverride,omitempty"`
	Insecure           bool                      `json:"insecure,omitempty"`
	OAUTH2             *clientcredentials.Config `json:"oauth2,omitempty"`
	Header             testsuite.Header          `json:"header,omitempty"`
	Tests              []TestConfig              `json:"tests,omitempty"`
}

func (*Config) Example

func (*Config) Example() interface{}

type ExpectConfig

type ExpectConfig struct {
	Code     codes.Code       `json:"code,omitempty"`
	Header   testsuite.Header `json:"header,omitempty"`
	Document interface{}      `json:"document,omitempty"`
}

type RequestConfig

type RequestConfig struct {
	Method   string           `json:"method,omitempty"`
	Header   testsuite.Header `json:"header,omitempty"`
	Document interface{}      `json:"document,omitempty"`
}

type Suite

type Suite struct {
	// contains filtered or unexported fields
}

Suite describes a GRPC test suite.

func New

func New(cfg *Config) (*Suite, error)

New returns a Suite.

func (*Suite) Tests

func (s *Suite) Tests() []testsuite.Test

type TestConfig

type TestConfig struct {
	Name    string        `json:"name,omitempty"`
	Request RequestConfig `json:"request,omitempty"`
	Expect  ExpectConfig  `json:"expect,omitempty"`
}

Directories

Path Synopsis
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