MCPcopy
hub / github.com/rodrigo-brito/gocity / Get

Method Get

testdata/mocks/Storage.go:27–54  ·  view source on GitHub ↗

Get provides a mock function with given fields: projectName

(projectName string)

Source from the content-addressed store, hash-verified

25
26// Get provides a mock function with given fields: projectName
27func (_m *Storage) Get(projectName string) (bool, []byte, error) {
28 ret := _m.Called(projectName)
29
30 var r0 bool
31 if rf, ok := ret.Get(0).(func(string) bool); ok {
32 r0 = rf(projectName)
33 } else {
34 r0 = ret.Get(0).(bool)
35 }
36
37 var r1 []byte
38 if rf, ok := ret.Get(1).(func(string) []byte); ok {
39 r1 = rf(projectName)
40 } else {
41 if ret.Get(1) != nil {
42 r1 = ret.Get(1).([]byte)
43 }
44 }
45
46 var r2 error
47 if rf, ok := ret.Get(2).(func(string) error); ok {
48 r2 = rf(projectName)
49 } else {
50 r2 = ret.Error(2)
51 }
52
53 return r0, r1, r2
54}
55
56// Save provides a mock function with given fields: projectName, content
57func (_m *Storage) Save(projectName string, content []byte) error {

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected