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

Method GetWorkspaceByPath

internal/workspace/resolver_test.go:1743–1752  ·  view source on GitHub ↗
(_ context.Context, rootDir string)

Source from the content-addressed store, hash-verified

1741}
1742
1743func (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
1754func (s *concurrentPathStore) GetWorkspaceByName(context.Context, string) (Workspace, error) {
1755 return Workspace{}, ErrWorkspaceNotFound

Callers

nothing calls this directly

Calls 1

cloneWorkspaceFunction · 0.85

Tested by

no test coverage detected