Skip to content

Conversation

@majewsky
Copy link
Contributor

@majewsky majewsky commented Nov 7, 2025

If we had had Option[] back when this was built, I would have Instantiate() return it directly. As it stands, we will stick with the existing interface for backwards-compatibility, but I need an Option[] return now because generic code cannot do the if result == nil comparison.

If we had had Option[] back when this was built, I would have
Instantiate() return it directly. As it stands, we will stick with the
existing interface for backwards-compatibility, but I need an Option[]
return now because generic code cannot do the `if result == nil`
comparison.
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/sapcc/go-bits/pluggable 81.25% (+1.25%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/sapcc/go-bits/pluggable/pluggable.go 81.25% (+1.25%) 240 (+15) 195 (+15) 45 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

@majewsky majewsky merged commit eab3c25 into master Nov 10, 2025
7 checks passed
@majewsky majewsky deleted the pluggable-tryinstantiate branch November 10, 2025 16:10
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