| 12 | ) |
| 13 | |
| 14 | type stubRegistrySource struct { |
| 15 | name string |
| 16 | caps SourceCaps |
| 17 | searchFunc func(context.Context, string, SearchOpts) ([]Listing, error) |
| 18 | infoFunc func(context.Context, string) (*Detail, error) |
| 19 | downloadFunc func(context.Context, string, DownloadOpts) (*DownloadResult, error) |
| 20 | closeFunc func() error |
| 21 | |
| 22 | searchCalls atomic.Int32 |
| 23 | infoCalls atomic.Int32 |
| 24 | downloadCalls atomic.Int32 |
| 25 | closeCalls atomic.Int32 |
| 26 | } |
| 27 | |
| 28 | var _ Source = (*stubRegistrySource)(nil) |
| 29 |
nothing calls this directly
no outgoing calls
no test coverage detected