(ctx context.Context, ws Workspace)
| 1760 | } |
| 1761 | |
| 1762 | func (s *cancelOnInsertStore) InsertWorkspace(ctx context.Context, ws Workspace) error { |
| 1763 | if err := s.mockWorkspaceStore.InsertWorkspace(ctx, ws); err != nil { |
| 1764 | return err |
| 1765 | } |
| 1766 | if s.cancel != nil { |
| 1767 | s.cancel() |
| 1768 | } |
| 1769 | return nil |
| 1770 | } |
| 1771 | |
| 1772 | func (s *cancelOnInsertStore) DeleteWorkspace(ctx context.Context, id string) error { |
| 1773 | s.deleteCtxErr = ctx.Err() |
nothing calls this directly
no test coverage detected