mock

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockServerModule

type MockServerModule struct {
	*pgs.ModuleBase
	// contains filtered or unexported fields
}

MockServerModule generates a mock server implementation to be used for stubbing GRPC servers in tests.

func MockServer

func MockServer() *MockServerModule

MockServer returns an initialized MockServerModule

func (*MockServerModule) Execute

func (m *MockServerModule) Execute(targets map[string]pgs.File, pkgs map[string]pgs.Package) []pgs.Artifact

Execute satisfies the pgs.Module interface

func (*MockServerModule) InitContext

func (m *MockServerModule) InitContext(c pgs.BuildContext)

func (*MockServerModule) Name

func (m *MockServerModule) Name() string

Name satisfies the pgs.Module interface

Jump to

Keyboard shortcuts

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