| 1 | // This file was auto-generated using createmock. See the following page for |
| 2 | // more information: |
| 3 | // |
| 4 | // https://github.com/jacobsa/oglemock |
| 5 | // |
| 6 | |
| 7 | package mock_gcscachingscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/ |
| 8 | |
| 9 | import ( |
| 10 | fmtscip-go gomod github.com/golang/go/src go1.20 fmt/ "fmtscip-go gomod github.com/golang/go/src go1.20 fmt/" |
| 11 | gcsscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs`/ "github.com/jacobsa/gcloud/gcsscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs`/" |
| 12 | gcscachingscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching`/ "github.com/jacobsa/gcloud/gcs/gcscachingscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching`/" |
| 13 | oglemockscip-go gomod github.com/jacobsa/oglemock e94d794d06ff `github.com/jacobsa/oglemock`/ "github.com/jacobsa/oglemockscip-go gomod github.com/jacobsa/oglemock e94d794d06ff `github.com/jacobsa/oglemock`/" |
| 14 | runtimescip-go gomod github.com/golang/go/src go1.20 runtime/ "runtimescip-go gomod github.com/golang/go/src go1.20 runtime/" |
| 15 | timescip-go gomod github.com/golang/go/src go1.20 time/ "timescip-go gomod github.com/golang/go/src go1.20 time/" |
| 16 | unsafescip-go gomod github.com/golang/go/src go1.20 unsafe/ "unsafescip-go gomod github.com/golang/go/src go1.20 unsafe/" |
| 17 | ) |
| 18 | |
| 19 | type MockStatCachescip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/MockStatCache# interface { |
| 20 | gcscachingscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching`/.StatCachescip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching`/StatCache# |
| 21 | oglemockscip-go gomod github.com/jacobsa/oglemock e94d794d06ff `github.com/jacobsa/oglemock`/.MockObjectscip-go gomod github.com/jacobsa/oglemock e94d794d06ff `github.com/jacobsa/oglemock`/MockObject# |
| 22 | } |
| 23 | |
| 24 | type mockStatCachescip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache# struct { |
| 25 | controllerscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#controller. oglemockscip-go gomod github.com/jacobsa/oglemock e94d794d06ff `github.com/jacobsa/oglemock`/.Controllerscip-go gomod github.com/jacobsa/oglemock e94d794d06ff `github.com/jacobsa/oglemock`/Controller# |
| 26 | descriptionscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#description. string |
| 27 | } |
| 28 | |
| 29 | func NewMockStatCachescip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/NewMockStatCache().( |
| 30 | c oglemockscip-go gomod github.com/jacobsa/oglemock e94d794d06ff `github.com/jacobsa/oglemock`/.Controllerscip-go gomod github.com/jacobsa/oglemock e94d794d06ff `github.com/jacobsa/oglemock`/Controller#, |
| 31 | desc string) MockStatCachescip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/MockStatCache# { |
| 32 | return &mockStatCachescip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#{ |
| 33 | controllerscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#controller.: c, |
| 34 | descriptionscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#description.: desc, |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | func (m *mockStatCachescip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#) Oglemock_Idscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#Oglemock_Id().() uintptr { |
| 39 | return uintptr(unsafescip-go gomod github.com/golang/go/src go1.20 unsafe/.Pointer(m)) |
| 40 | } |
| 41 | |
| 42 | func (m *mockStatCachescip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#) Oglemock_Descriptionscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#Oglemock_Description().() string { |
| 43 | return m.descriptionscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#description. |
| 44 | } |
| 45 | |
| 46 | func (m *mockStatCachescip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#) AddNegativeEntryscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#AddNegativeEntry().(p0 string, p1 timescip-go gomod github.com/golang/go/src go1.20 time/.Timescip-go gomod github.com/golang/go/src go1.20 time/Time#) { |
| 47 | // Get a file name and line number for the caller. |
| 48 | _, file, line, _ := runtimescip-go gomod github.com/golang/go/src go1.20 runtime/.Callerscip-go gomod github.com/golang/go/src go1.20 runtime/Caller().(1) |
| 49 | |
| 50 | // Hand the call off to the controller, which does most of the work. |
| 51 | retVals := m.controllerscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#controller..HandleMethodCallscip-go gomod github.com/jacobsa/oglemock e94d794d06ff `github.com/jacobsa/oglemock`/Controller#HandleMethodCall().( |
| 52 | m, |
| 53 | "AddNegativeEntry", |
| 54 | file, |
| 55 | line, |
| 56 | []interface{}{p0, p1}) |
| 57 | |
| 58 | if len(retVals) != 0 { |
| 59 | panic(fmtscip-go gomod github.com/golang/go/src go1.20 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.20 fmt/Sprintf().("mockStatCache.AddNegativeEntry: invalid return values: %v", retVals)) |
| 60 | } |
| 61 | |
| 62 | return |
| 63 | } |
| 64 | |
| 65 | func (m *mockStatCachescip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#) CheckInvariantsscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#CheckInvariants().() { |
| 66 | // Get a file name and line number for the caller. |
| 67 | _, file, line, _ := runtimescip-go gomod github.com/golang/go/src go1.20 runtime/.Callerscip-go gomod github.com/golang/go/src go1.20 runtime/Caller().(1) |
| 68 | |
| 69 | // Hand the call off to the controller, which does most of the work. |
| 70 | retVals := m.controllerscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#controller..HandleMethodCallscip-go gomod github.com/jacobsa/oglemock e94d794d06ff `github.com/jacobsa/oglemock`/Controller#HandleMethodCall().( |
| 71 | m, |
| 72 | "CheckInvariants", |
| 73 | file, |
| 74 | line, |
| 75 | []interface{}{}) |
| 76 | |
| 77 | if len(retVals) != 0 { |
| 78 | panic(fmtscip-go gomod github.com/golang/go/src go1.20 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.20 fmt/Sprintf().("mockStatCache.CheckInvariants: invalid return values: %v", retVals)) |
| 79 | } |
| 80 | |
| 81 | return |
| 82 | } |
| 83 | |
| 84 | func (m *mockStatCachescip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#) Erasescip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#Erase().(p0 string) { |
| 85 | // Get a file name and line number for the caller. |
| 86 | _, file, line, _ := runtimescip-go gomod github.com/golang/go/src go1.20 runtime/.Callerscip-go gomod github.com/golang/go/src go1.20 runtime/Caller().(1) |
| 87 | |
| 88 | // Hand the call off to the controller, which does most of the work. |
| 89 | retVals := m.controllerscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#controller..HandleMethodCallscip-go gomod github.com/jacobsa/oglemock e94d794d06ff `github.com/jacobsa/oglemock`/Controller#HandleMethodCall().( |
| 90 | m, |
| 91 | "Erase", |
| 92 | file, |
| 93 | line, |
| 94 | []interface{}{p0}) |
| 95 | |
| 96 | if len(retVals) != 0 { |
| 97 | panic(fmtscip-go gomod github.com/golang/go/src go1.20 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.20 fmt/Sprintf().("mockStatCache.Erase: invalid return values: %v", retVals)) |
| 98 | } |
| 99 | |
| 100 | return |
| 101 | } |
| 102 | |
| 103 | func (m *mockStatCachescip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#) Insertscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#Insert().(p0 *gcsscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs`/.Objectscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs`/Object#, p1 timescip-go gomod github.com/golang/go/src go1.20 time/.Timescip-go gomod github.com/golang/go/src go1.20 time/Time#) { |
| 104 | // Get a file name and line number for the caller. |
| 105 | _, file, line, _ := runtimescip-go gomod github.com/golang/go/src go1.20 runtime/.Callerscip-go gomod github.com/golang/go/src go1.20 runtime/Caller().(1) |
| 106 | |
| 107 | // Hand the call off to the controller, which does most of the work. |
| 108 | retVals := m.controllerscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#controller..HandleMethodCallscip-go gomod github.com/jacobsa/oglemock e94d794d06ff `github.com/jacobsa/oglemock`/Controller#HandleMethodCall().( |
| 109 | m, |
| 110 | "Insert", |
| 111 | file, |
| 112 | line, |
| 113 | []interface{}{p0, p1}) |
| 114 | |
| 115 | if len(retVals) != 0 { |
| 116 | panic(fmtscip-go gomod github.com/golang/go/src go1.20 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.20 fmt/Sprintf().("mockStatCache.Insert: invalid return values: %v", retVals)) |
| 117 | } |
| 118 | |
| 119 | return |
| 120 | } |
| 121 | |
| 122 | func (m *mockStatCachescip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#) LookUpscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#LookUp().(p0 string, p1 timescip-go gomod github.com/golang/go/src go1.20 time/.Timescip-go gomod github.com/golang/go/src go1.20 time/Time#) (o0 bool, o1 *gcsscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs`/.Objectscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs`/Object#) { |
| 123 | // Get a file name and line number for the caller. |
| 124 | _, file, line, _ := runtimescip-go gomod github.com/golang/go/src go1.20 runtime/.Callerscip-go gomod github.com/golang/go/src go1.20 runtime/Caller().(1) |
| 125 | |
| 126 | // Hand the call off to the controller, which does most of the work. |
| 127 | retVals := m.controllerscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs/gcscaching/mock_gcscaching`/mockStatCache#controller..HandleMethodCallscip-go gomod github.com/jacobsa/oglemock e94d794d06ff `github.com/jacobsa/oglemock`/Controller#HandleMethodCall().( |
| 128 | m, |
| 129 | "LookUp", |
| 130 | file, |
| 131 | line, |
| 132 | []interface{}{p0, p1}) |
| 133 | |
| 134 | if len(retVals) != 2 { |
| 135 | panic(fmtscip-go gomod github.com/golang/go/src go1.20 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.20 fmt/Sprintf().("mockStatCache.LookUp: invalid return values: %v", retVals)) |
| 136 | } |
| 137 | |
| 138 | // o0 bool |
| 139 | if retVals[0] != nil { |
| 140 | o0 = retVals[0].(bool) |
| 141 | } |
| 142 | |
| 143 | // o1 *gcs.Object |
| 144 | if retVals[1] != nil { |
| 145 | o1 = retVals[1].(*gcsscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs`/.Objectscip-go gomod github.com/jacobsa/gcloud . `github.com/jacobsa/gcloud/gcs`/Object#) |
| 146 | } |
| 147 | |
| 148 | return |
| 149 | } |