MCPcopy Create free account
hub / github.com/compozy/agh / stubRegistrySource

Struct stubRegistrySource

internal/registry/multi_test.go:14–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12)
13
14type 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
28var _ Source = (*stubRegistrySource)(nil)
29

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected