MCPcopy Create free account
hub / github.com/compozy/agh / StubWorkspaceService

Struct StubWorkspaceService

internal/api/testutil/workspace_stub.go:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11var ErrStubWorkspaceServiceNotImplemented = errors.New("stub workspace service method not implemented")
12
13type StubWorkspaceService struct {
14 RegisterFn func(context.Context, workspacepkg.RegisterOptions) (workspacepkg.Workspace, error)
15 UnregisterFn func(context.Context, string) error
16 UpdateFn func(context.Context, string, workspacepkg.UpdateOptions) error
17 ListFn func(context.Context) ([]workspacepkg.Workspace, error)
18 GetFn func(context.Context, string) (workspacepkg.Workspace, error)
19 ResolveFn func(context.Context, string) (workspacepkg.ResolvedWorkspace, error)
20 ResolveOrRegisterFn func(context.Context, string) (workspacepkg.ResolvedWorkspace, error)
21}
22
23func (s StubWorkspaceService) Register(
24 ctx context.Context,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected