mock

package
v0.0.0-...-4b711b1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

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