(_ context.Context, rootDir string)
| 1741 | } |
| 1742 | |
| 1743 | func (s *concurrentPathStore) GetWorkspaceByPath(_ context.Context, rootDir string) (Workspace, error) { |
| 1744 | s.getByPathCalls++ |
| 1745 | if s.getByPathCalls == 1 { |
| 1746 | return Workspace{}, ErrWorkspaceNotFound |
| 1747 | } |
| 1748 | if rootDir != s.existing.RootDir { |
| 1749 | return Workspace{}, ErrWorkspaceNotFound |
| 1750 | } |
| 1751 | return cloneWorkspace(s.existing), nil |
| 1752 | } |
| 1753 | |
| 1754 | func (s *concurrentPathStore) GetWorkspaceByName(context.Context, string) (Workspace, error) { |
| 1755 | return Workspace{}, ErrWorkspaceNotFound |
nothing calls this directly
no test coverage detected