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

Function NewDownloaderUploader

pkg/casclient/mocks/DownloaderUploader.go:116–123  ·  view source on GitHub ↗

NewDownloaderUploader creates a new instance of DownloaderUploader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

(t mockConstructorTestingTNewDownloaderUploader)

Source from the content-addressed store, hash-verified

114
115// NewDownloaderUploader creates a new instance of DownloaderUploader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
116func NewDownloaderUploader(t mockConstructorTestingTNewDownloaderUploader) *DownloaderUploader {
117 mock := &DownloaderUploader{}
118 mock.Mock.Test(t)
119
120 t.Cleanup(func() { mock.AssertExpectations(t) })
121
122 return mock
123}

Callers 1

TestIsReadyFunction · 0.92

Calls 1

CleanupMethod · 0.65

Tested by 1

TestIsReadyFunction · 0.74