MCPcopy Create free account
hub / github.com/conforma/cli / usingDownloader

Function usingDownloader

internal/policy/source/source_test.go:46–48  ·  view source on GitHub ↗
(ctx context.Context, m *mockDownloader)

Source from the content-addressed store, hash-verified

44)
45
46func usingDownloader(ctx context.Context, m *mockDownloader) context.Context {
47 return context.WithValue(ctx, DownloaderFuncKey, m)
48}
49
50type mockDownloader struct {
51 mock.Mock

Callers 2

TestGoGetterDownloadFunction · 0.85
TestGetPolicyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected