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
Click to show internal directories.
Click to hide internal directories.