Skip to content

Conversation

@godrei
Copy link
Contributor

@godrei godrei commented Aug 31, 2021

Context

This PR introduces PathProvider, PathChecker and PathModifier to support Xcode Test Step's ideal step refactor.

Changes

  • Introduce PathModifier to break direct dependency to AbsPath function
  • Introduce PathChecker to break direct dependency to IsPathExists function

Non-functional changes:

  • Rename TempDirProvider to PathProvider to support adding more related functions later
  • EscapeGlobPath function moved to pathutil.go to keep function related to file path modification in the same file
  • ListEntries function moved to path_filter.go as it provides path listing with FilterFunc
  • ListPathInDirSortedByComponents function moved to sortable_path.go as it provides sorted path listing
  • function in pathutil.go grouped into Path provider functions, Path checker functions, Path modifier functions and Change dir functions

Investigation details

Decisions

@godrei godrei merged commit 80582f6 into master Sep 1, 2021
@godrei godrei deleted the STEP-1212-pathutil branch September 1, 2021 12:25
mateherber pushed a commit that referenced this pull request Dec 9, 2021
* Regroup pathutil functions.

* Group functions in pathutil.go.

* Introduce PathProvider and PathModifier.

* Fix lint issue.

* Regenerate pathutil mocks.

* Introduce PathChecker.

* Add IsPathExists to PathChecker interface.

* Use default prefix for implementation structs.

* Rename TempDir to CreateTempDir.

* Regenerate pathutil mocks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants