MCPcopy Create free account
hub / github.com/Mirantis/cri-dockerd / InjectError

Method InjectError

libdocker/fake_client.go:168–172  ·  view source on GitHub ↗
(fn string, err error)

Source from the content-addressed store, hash-verified

166}
167
168func (f *FakeDockerClient) InjectError(fn string, err error) {
169 f.Lock()
170 defer f.Unlock()
171 f.Errors[fn] = err
172}
173
174func (f *FakeDockerClient) InjectErrors(errs map[string]error) {
175 f.Lock()

Callers 4

TestPullWithJSONErrorFunction · 0.80
TestStatusFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestPullWithJSONErrorFunction · 0.64
TestStatusFunction · 0.64