| 11 | var ErrStubWorkspaceServiceNotImplemented = errors.New("stub workspace service method not implemented") |
| 12 | |
| 13 | type 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 | |
| 23 | func (s StubWorkspaceService) Register( |
| 24 | ctx context.Context, |
nothing calls this directly
no outgoing calls
no test coverage detected