Skip to content

Extract IImageNameResolver interface and unify implementation#2039

Draft
lbussell wants to merge 1 commit intodotnet:mainfrom
lbussell:extract-iimagenamresolver
Draft

Extract IImageNameResolver interface and unify implementation#2039
lbussell wants to merge 1 commit intodotnet:mainfrom
lbussell:extract-iimagenamresolver

Conversation

@lbussell
Copy link
Member

Extracts an IImageNameResolver interface from the abstract ImageNameResolver class, enabling clean mocking in tests. Collapses the two subclasses (ImageNameResolverForBuild and ImageNameResolverForMatrix) into a single concrete class using a DigestResolutionMode enum to control the one behavioral difference in digest queries. Moves IsInRegistry out of DockerHelper and into ImageNameResolver as a private method, since it is the only consumer. All 448 existing tests pass with no changes to behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant