Skip to content

test: add unit tests for Finders with nil finders, errors, and WithFinder option - #2142

Open
aoright wants to merge 1 commit into
spf13:masterfrom
aoright:test/finders-nil-and-errors-coverage
Open

test: add unit tests for Finders with nil finders, errors, and WithFinder option#2142
aoright wants to merge 1 commit into
spf13:masterfrom
aoright:test/finders-nil-and-errors-coverage

Conversation

@aoright

@aoright aoright commented Aug 19, 2026

Copy link
Copy Markdown

Summary

  • Add TestFinders_WithNilAndErrors in finder_test.go to test that combinedFinder.Find properly skips nil finders, joins all non-nil errors using errors.Join, and aggregates results from successful finders.
  • Add TestWithFinderOption to test setting a non-nil and nil Finder via WithFinder.

…nder option

Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>
@CLAassistant

CLAassistant commented Aug 19, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

2 participants