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

Function NewReader

pkg/credentials/mocks/Reader.go:36–43  ·  view source on GitHub ↗

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

(t mockConstructorTestingTNewReader)

Source from the content-addressed store, hash-verified

34
35// NewReader creates a new instance of Reader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
36func NewReader(t mockConstructorTestingTNewReader) *Reader {
37 mock := &Reader{}
38 mock.Mock.Test(t)
39
40 t.Cleanup(func() { mock.AssertExpectations(t) })
41
42 return mock
43}

Callers 3

TestFromCredentialsFunction · 0.92
TestFromCredentialsFunction · 0.92
TestFromCredentialsFunction · 0.92

Calls 1

CleanupMethod · 0.65

Tested by 3

TestFromCredentialsFunction · 0.74
TestFromCredentialsFunction · 0.74
TestFromCredentialsFunction · 0.74