MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Download

Method Download

pkg/blobmanager/mocks/Downloader.go:33–44  ·  view source on GitHub ↗

Download provides a mock function with given fields: ctx, w, digest

(ctx context.Context, w io.Writer, digest string)

Source from the content-addressed store, hash-verified

31
32// Download provides a mock function with given fields: ctx, w, digest
33func (_m *Downloader) Download(ctx context.Context, w io.Writer, digest string) error {
34 ret := _m.Called(ctx, w, digest)
35
36 var r0 error
37 if rf, ok := ret.Get(0).(func(context.Context, io.Writer, string) error); ok {
38 r0 = rf(ctx, w, digest)
39 } else {
40 r0 = ret.Error(0)
41 }
42
43 return r0
44}
45
46type mockConstructorTestingTNewDownloader interface {
47 mock.TestingT

Callers 2

DownloadMethod · 0.95
DownloadMethod · 0.95

Implementers 4

Clientpkg/casclient/casclient.go
DownloaderUploaderpkg/casclient/mocks/DownloaderUploader
Downloaderpkg/casclient/mocks/Downloader.go
CASClientUseCaseapp/controlplane/pkg/biz/casclient.go

Calls 2

GetMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected