loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update module go.uber.org/mock to v0.5.1 (forgejo) (#7488)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [go.uber.org/mock](https://github.com/uber/mock) | require | patch | `v0.5.0` -> `v0.5.1` |

---

### Release Notes

<details>
<summary>uber/mock (go.uber.org/mock)</summary>

### [`v0.5.1`](https://github.com/uber-go/mock/releases/tag/v0.5.1)

[Compare Source](https://github.com/uber/mock/compare/v0.5.0...v0.5.1)

#### 0.5.1 (7 Apr 2025)

##### Fixed

- [#&#8203;220][]: Package mode will now generate code that uses aliases of types
when they are used in the source.
- [#&#8203;219][]: Fixed a collision between function argument names and package names
in generated code.
- [#&#8203;165][]: Fixed an issue where aliases specified by `-imports` were not being
respected in generated code.

[#&#8203;220]: https://github.com/uber-go/mock/pull/220

[#&#8203;219]: https://github.com/uber-go/mock/pull/219

[#&#8203;165]: https://github.com/uber-go/mock/pull/165

Thanks to [@&#8203;mtoader](https://github.com/mtoader) and [@&#8203;bstncartwright](https://github.com/bstncartwright) for their contributions to this release.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "* 0-3 * * *" (UTC), Automerge - "* 0-3 * * *" (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMzMuNSIsInVwZGF0ZWRJblZlciI6IjM5LjIzMy41IiwidGFyZ2V0QnJhbmNoIjoiZm9yZ2VqbyIsImxhYmVscyI6WyJkZXBlbmRlbmN5LXVwZ3JhZGUiLCJ0ZXN0L25vdC1uZWVkZWQiXX0=-->

Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7488
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org>

authored by

Renovate Bot
Gusted
Renovate Bot
and committed by
Earl Warren
5b6cbd81 b54d210e

+84 -83
+1 -1
Makefile
··· 47 47 GO_LICENSES_PACKAGE ?= github.com/google/go-licenses@v1.6.0 # renovate: datasource=go 48 48 GOVULNCHECK_PACKAGE ?= golang.org/x/vuln/cmd/govulncheck@v1 # renovate: datasource=go 49 49 DEADCODE_PACKAGE ?= golang.org/x/tools/cmd/deadcode@v0.31.0 # renovate: datasource=go 50 - GOMOCK_PACKAGE ?= go.uber.org/mock/mockgen@v0.4.0 # renovate: datasource=go 50 + GOMOCK_PACKAGE ?= go.uber.org/mock/mockgen@v0.5.1 # renovate: datasource=go 51 51 GOPLS_PACKAGE ?= golang.org/x/tools/gopls@v0.18.1 # renovate: datasource=go 52 52 RENOVATE_NPM_PACKAGE ?= renovate@39.233.5 # renovate: datasource=docker packageName=data.forgejo.org/renovate/renovate 53 53
+1 -1
go.mod
··· 100 100 github.com/yuin/goldmark v1.7.8 101 101 github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc 102 102 gitlab.com/gitlab-org/api/client-go v0.126.0 103 - go.uber.org/mock v0.5.0 103 + go.uber.org/mock v0.5.1 104 104 golang.org/x/crypto v0.37.0 105 105 golang.org/x/image v0.25.0 106 106 golang.org/x/net v0.38.0
+2 -2
go.sum
··· 1491 1491 go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= 1492 1492 go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= 1493 1493 go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= 1494 - go.uber.org/mock v0.5.0 h1:KAMbZvZPyBPWgD14IrIQ38QCyjwpvVVV6K/bHl1IwQU= 1495 - go.uber.org/mock v0.5.0/go.mod h1:ge71pBPLYDk7QIi1LupWxdAykm7KIEFchiOqd6z7qMM= 1494 + go.uber.org/mock v0.5.1 h1:ASgazW/qBmR+A32MYFDB6E2POoTgOwT509VP0CT/fjs= 1495 + go.uber.org/mock v0.5.1/go.mod h1:ge71pBPLYDk7QIi1LupWxdAykm7KIEFchiOqd6z7qMM= 1496 1496 go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= 1497 1497 go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= 1498 1498 go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
+80 -79
modules/queue/mock/redisuniversalclient.go
··· 22 22 type MockRedisClient struct { 23 23 ctrl *gomock.Controller 24 24 recorder *MockRedisClientMockRecorder 25 + isgomock struct{} 25 26 } 26 27 27 28 // MockRedisClientMockRecorder is the mock recorder for MockRedisClient. ··· 56 57 } 57 58 58 59 // DBSize mocks base method. 59 - func (m *MockRedisClient) DBSize(arg0 context.Context) *redis.IntCmd { 60 + func (m *MockRedisClient) DBSize(ctx context.Context) *redis.IntCmd { 60 61 m.ctrl.T.Helper() 61 - ret := m.ctrl.Call(m, "DBSize", arg0) 62 + ret := m.ctrl.Call(m, "DBSize", ctx) 62 63 ret0, _ := ret[0].(*redis.IntCmd) 63 64 return ret0 64 65 } 65 66 66 67 // DBSize indicates an expected call of DBSize. 67 - func (mr *MockRedisClientMockRecorder) DBSize(arg0 any) *gomock.Call { 68 + func (mr *MockRedisClientMockRecorder) DBSize(ctx any) *gomock.Call { 68 69 mr.mock.ctrl.T.Helper() 69 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DBSize", reflect.TypeOf((*MockRedisClient)(nil).DBSize), arg0) 70 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DBSize", reflect.TypeOf((*MockRedisClient)(nil).DBSize), ctx) 70 71 } 71 72 72 73 // Decr mocks base method. 73 - func (m *MockRedisClient) Decr(arg0 context.Context, arg1 string) *redis.IntCmd { 74 + func (m *MockRedisClient) Decr(ctx context.Context, key string) *redis.IntCmd { 74 75 m.ctrl.T.Helper() 75 - ret := m.ctrl.Call(m, "Decr", arg0, arg1) 76 + ret := m.ctrl.Call(m, "Decr", ctx, key) 76 77 ret0, _ := ret[0].(*redis.IntCmd) 77 78 return ret0 78 79 } 79 80 80 81 // Decr indicates an expected call of Decr. 81 - func (mr *MockRedisClientMockRecorder) Decr(arg0, arg1 any) *gomock.Call { 82 + func (mr *MockRedisClientMockRecorder) Decr(ctx, key any) *gomock.Call { 82 83 mr.mock.ctrl.T.Helper() 83 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Decr", reflect.TypeOf((*MockRedisClient)(nil).Decr), arg0, arg1) 84 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Decr", reflect.TypeOf((*MockRedisClient)(nil).Decr), ctx, key) 84 85 } 85 86 86 87 // Del mocks base method. 87 - func (m *MockRedisClient) Del(arg0 context.Context, arg1 ...string) *redis.IntCmd { 88 + func (m *MockRedisClient) Del(ctx context.Context, keys ...string) *redis.IntCmd { 88 89 m.ctrl.T.Helper() 89 - varargs := []any{arg0} 90 - for _, a := range arg1 { 90 + varargs := []any{ctx} 91 + for _, a := range keys { 91 92 varargs = append(varargs, a) 92 93 } 93 94 ret := m.ctrl.Call(m, "Del", varargs...) ··· 96 97 } 97 98 98 99 // Del indicates an expected call of Del. 99 - func (mr *MockRedisClientMockRecorder) Del(arg0 any, arg1 ...any) *gomock.Call { 100 + func (mr *MockRedisClientMockRecorder) Del(ctx any, keys ...any) *gomock.Call { 100 101 mr.mock.ctrl.T.Helper() 101 - varargs := append([]any{arg0}, arg1...) 102 + varargs := append([]any{ctx}, keys...) 102 103 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Del", reflect.TypeOf((*MockRedisClient)(nil).Del), varargs...) 103 104 } 104 105 105 106 // Exists mocks base method. 106 - func (m *MockRedisClient) Exists(arg0 context.Context, arg1 ...string) *redis.IntCmd { 107 + func (m *MockRedisClient) Exists(ctx context.Context, keys ...string) *redis.IntCmd { 107 108 m.ctrl.T.Helper() 108 - varargs := []any{arg0} 109 - for _, a := range arg1 { 109 + varargs := []any{ctx} 110 + for _, a := range keys { 110 111 varargs = append(varargs, a) 111 112 } 112 113 ret := m.ctrl.Call(m, "Exists", varargs...) ··· 115 116 } 116 117 117 118 // Exists indicates an expected call of Exists. 118 - func (mr *MockRedisClientMockRecorder) Exists(arg0 any, arg1 ...any) *gomock.Call { 119 + func (mr *MockRedisClientMockRecorder) Exists(ctx any, keys ...any) *gomock.Call { 119 120 mr.mock.ctrl.T.Helper() 120 - varargs := append([]any{arg0}, arg1...) 121 + varargs := append([]any{ctx}, keys...) 121 122 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exists", reflect.TypeOf((*MockRedisClient)(nil).Exists), varargs...) 122 123 } 123 124 124 125 // FlushDB mocks base method. 125 - func (m *MockRedisClient) FlushDB(arg0 context.Context) *redis.StatusCmd { 126 + func (m *MockRedisClient) FlushDB(ctx context.Context) *redis.StatusCmd { 126 127 m.ctrl.T.Helper() 127 - ret := m.ctrl.Call(m, "FlushDB", arg0) 128 + ret := m.ctrl.Call(m, "FlushDB", ctx) 128 129 ret0, _ := ret[0].(*redis.StatusCmd) 129 130 return ret0 130 131 } 131 132 132 133 // FlushDB indicates an expected call of FlushDB. 133 - func (mr *MockRedisClientMockRecorder) FlushDB(arg0 any) *gomock.Call { 134 + func (mr *MockRedisClientMockRecorder) FlushDB(ctx any) *gomock.Call { 134 135 mr.mock.ctrl.T.Helper() 135 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FlushDB", reflect.TypeOf((*MockRedisClient)(nil).FlushDB), arg0) 136 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FlushDB", reflect.TypeOf((*MockRedisClient)(nil).FlushDB), ctx) 136 137 } 137 138 138 139 // Get mocks base method. 139 - func (m *MockRedisClient) Get(arg0 context.Context, arg1 string) *redis.StringCmd { 140 + func (m *MockRedisClient) Get(ctx context.Context, key string) *redis.StringCmd { 140 141 m.ctrl.T.Helper() 141 - ret := m.ctrl.Call(m, "Get", arg0, arg1) 142 + ret := m.ctrl.Call(m, "Get", ctx, key) 142 143 ret0, _ := ret[0].(*redis.StringCmd) 143 144 return ret0 144 145 } 145 146 146 147 // Get indicates an expected call of Get. 147 - func (mr *MockRedisClientMockRecorder) Get(arg0, arg1 any) *gomock.Call { 148 + func (mr *MockRedisClientMockRecorder) Get(ctx, key any) *gomock.Call { 148 149 mr.mock.ctrl.T.Helper() 149 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockRedisClient)(nil).Get), arg0, arg1) 150 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockRedisClient)(nil).Get), ctx, key) 150 151 } 151 152 152 153 // HDel mocks base method. 153 - func (m *MockRedisClient) HDel(arg0 context.Context, arg1 string, arg2 ...string) *redis.IntCmd { 154 + func (m *MockRedisClient) HDel(ctx context.Context, key string, fields ...string) *redis.IntCmd { 154 155 m.ctrl.T.Helper() 155 - varargs := []any{arg0, arg1} 156 - for _, a := range arg2 { 156 + varargs := []any{ctx, key} 157 + for _, a := range fields { 157 158 varargs = append(varargs, a) 158 159 } 159 160 ret := m.ctrl.Call(m, "HDel", varargs...) ··· 162 163 } 163 164 164 165 // HDel indicates an expected call of HDel. 165 - func (mr *MockRedisClientMockRecorder) HDel(arg0, arg1 any, arg2 ...any) *gomock.Call { 166 + func (mr *MockRedisClientMockRecorder) HDel(ctx, key any, fields ...any) *gomock.Call { 166 167 mr.mock.ctrl.T.Helper() 167 - varargs := append([]any{arg0, arg1}, arg2...) 168 + varargs := append([]any{ctx, key}, fields...) 168 169 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HDel", reflect.TypeOf((*MockRedisClient)(nil).HDel), varargs...) 169 170 } 170 171 171 172 // HKeys mocks base method. 172 - func (m *MockRedisClient) HKeys(arg0 context.Context, arg1 string) *redis.StringSliceCmd { 173 + func (m *MockRedisClient) HKeys(ctx context.Context, key string) *redis.StringSliceCmd { 173 174 m.ctrl.T.Helper() 174 - ret := m.ctrl.Call(m, "HKeys", arg0, arg1) 175 + ret := m.ctrl.Call(m, "HKeys", ctx, key) 175 176 ret0, _ := ret[0].(*redis.StringSliceCmd) 176 177 return ret0 177 178 } 178 179 179 180 // HKeys indicates an expected call of HKeys. 180 - func (mr *MockRedisClientMockRecorder) HKeys(arg0, arg1 any) *gomock.Call { 181 + func (mr *MockRedisClientMockRecorder) HKeys(ctx, key any) *gomock.Call { 181 182 mr.mock.ctrl.T.Helper() 182 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HKeys", reflect.TypeOf((*MockRedisClient)(nil).HKeys), arg0, arg1) 183 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HKeys", reflect.TypeOf((*MockRedisClient)(nil).HKeys), ctx, key) 183 184 } 184 185 185 186 // HSet mocks base method. 186 - func (m *MockRedisClient) HSet(arg0 context.Context, arg1 string, arg2 ...any) *redis.IntCmd { 187 + func (m *MockRedisClient) HSet(ctx context.Context, key string, values ...any) *redis.IntCmd { 187 188 m.ctrl.T.Helper() 188 - varargs := []any{arg0, arg1} 189 - for _, a := range arg2 { 189 + varargs := []any{ctx, key} 190 + for _, a := range values { 190 191 varargs = append(varargs, a) 191 192 } 192 193 ret := m.ctrl.Call(m, "HSet", varargs...) ··· 195 196 } 196 197 197 198 // HSet indicates an expected call of HSet. 198 - func (mr *MockRedisClientMockRecorder) HSet(arg0, arg1 any, arg2 ...any) *gomock.Call { 199 + func (mr *MockRedisClientMockRecorder) HSet(ctx, key any, values ...any) *gomock.Call { 199 200 mr.mock.ctrl.T.Helper() 200 - varargs := append([]any{arg0, arg1}, arg2...) 201 + varargs := append([]any{ctx, key}, values...) 201 202 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HSet", reflect.TypeOf((*MockRedisClient)(nil).HSet), varargs...) 202 203 } 203 204 204 205 // Incr mocks base method. 205 - func (m *MockRedisClient) Incr(arg0 context.Context, arg1 string) *redis.IntCmd { 206 + func (m *MockRedisClient) Incr(ctx context.Context, key string) *redis.IntCmd { 206 207 m.ctrl.T.Helper() 207 - ret := m.ctrl.Call(m, "Incr", arg0, arg1) 208 + ret := m.ctrl.Call(m, "Incr", ctx, key) 208 209 ret0, _ := ret[0].(*redis.IntCmd) 209 210 return ret0 210 211 } 211 212 212 213 // Incr indicates an expected call of Incr. 213 - func (mr *MockRedisClientMockRecorder) Incr(arg0, arg1 any) *gomock.Call { 214 + func (mr *MockRedisClientMockRecorder) Incr(ctx, key any) *gomock.Call { 214 215 mr.mock.ctrl.T.Helper() 215 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Incr", reflect.TypeOf((*MockRedisClient)(nil).Incr), arg0, arg1) 216 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Incr", reflect.TypeOf((*MockRedisClient)(nil).Incr), ctx, key) 216 217 } 217 218 218 219 // LLen mocks base method. 219 - func (m *MockRedisClient) LLen(arg0 context.Context, arg1 string) *redis.IntCmd { 220 + func (m *MockRedisClient) LLen(ctx context.Context, key string) *redis.IntCmd { 220 221 m.ctrl.T.Helper() 221 - ret := m.ctrl.Call(m, "LLen", arg0, arg1) 222 + ret := m.ctrl.Call(m, "LLen", ctx, key) 222 223 ret0, _ := ret[0].(*redis.IntCmd) 223 224 return ret0 224 225 } 225 226 226 227 // LLen indicates an expected call of LLen. 227 - func (mr *MockRedisClientMockRecorder) LLen(arg0, arg1 any) *gomock.Call { 228 + func (mr *MockRedisClientMockRecorder) LLen(ctx, key any) *gomock.Call { 228 229 mr.mock.ctrl.T.Helper() 229 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LLen", reflect.TypeOf((*MockRedisClient)(nil).LLen), arg0, arg1) 230 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LLen", reflect.TypeOf((*MockRedisClient)(nil).LLen), ctx, key) 230 231 } 231 232 232 233 // LPop mocks base method. 233 - func (m *MockRedisClient) LPop(arg0 context.Context, arg1 string) *redis.StringCmd { 234 + func (m *MockRedisClient) LPop(ctx context.Context, key string) *redis.StringCmd { 234 235 m.ctrl.T.Helper() 235 - ret := m.ctrl.Call(m, "LPop", arg0, arg1) 236 + ret := m.ctrl.Call(m, "LPop", ctx, key) 236 237 ret0, _ := ret[0].(*redis.StringCmd) 237 238 return ret0 238 239 } 239 240 240 241 // LPop indicates an expected call of LPop. 241 - func (mr *MockRedisClientMockRecorder) LPop(arg0, arg1 any) *gomock.Call { 242 + func (mr *MockRedisClientMockRecorder) LPop(ctx, key any) *gomock.Call { 242 243 mr.mock.ctrl.T.Helper() 243 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LPop", reflect.TypeOf((*MockRedisClient)(nil).LPop), arg0, arg1) 244 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LPop", reflect.TypeOf((*MockRedisClient)(nil).LPop), ctx, key) 244 245 } 245 246 246 247 // Ping mocks base method. 247 - func (m *MockRedisClient) Ping(arg0 context.Context) *redis.StatusCmd { 248 + func (m *MockRedisClient) Ping(ctx context.Context) *redis.StatusCmd { 248 249 m.ctrl.T.Helper() 249 - ret := m.ctrl.Call(m, "Ping", arg0) 250 + ret := m.ctrl.Call(m, "Ping", ctx) 250 251 ret0, _ := ret[0].(*redis.StatusCmd) 251 252 return ret0 252 253 } 253 254 254 255 // Ping indicates an expected call of Ping. 255 - func (mr *MockRedisClientMockRecorder) Ping(arg0 any) *gomock.Call { 256 + func (mr *MockRedisClientMockRecorder) Ping(ctx any) *gomock.Call { 256 257 mr.mock.ctrl.T.Helper() 257 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ping", reflect.TypeOf((*MockRedisClient)(nil).Ping), arg0) 258 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ping", reflect.TypeOf((*MockRedisClient)(nil).Ping), ctx) 258 259 } 259 260 260 261 // RPush mocks base method. 261 - func (m *MockRedisClient) RPush(arg0 context.Context, arg1 string, arg2 ...any) *redis.IntCmd { 262 + func (m *MockRedisClient) RPush(ctx context.Context, key string, values ...any) *redis.IntCmd { 262 263 m.ctrl.T.Helper() 263 - varargs := []any{arg0, arg1} 264 - for _, a := range arg2 { 264 + varargs := []any{ctx, key} 265 + for _, a := range values { 265 266 varargs = append(varargs, a) 266 267 } 267 268 ret := m.ctrl.Call(m, "RPush", varargs...) ··· 270 271 } 271 272 272 273 // RPush indicates an expected call of RPush. 273 - func (mr *MockRedisClientMockRecorder) RPush(arg0, arg1 any, arg2 ...any) *gomock.Call { 274 + func (mr *MockRedisClientMockRecorder) RPush(ctx, key any, values ...any) *gomock.Call { 274 275 mr.mock.ctrl.T.Helper() 275 - varargs := append([]any{arg0, arg1}, arg2...) 276 + varargs := append([]any{ctx, key}, values...) 276 277 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RPush", reflect.TypeOf((*MockRedisClient)(nil).RPush), varargs...) 277 278 } 278 279 279 280 // SAdd mocks base method. 280 - func (m *MockRedisClient) SAdd(arg0 context.Context, arg1 string, arg2 ...any) *redis.IntCmd { 281 + func (m *MockRedisClient) SAdd(ctx context.Context, key string, members ...any) *redis.IntCmd { 281 282 m.ctrl.T.Helper() 282 - varargs := []any{arg0, arg1} 283 - for _, a := range arg2 { 283 + varargs := []any{ctx, key} 284 + for _, a := range members { 284 285 varargs = append(varargs, a) 285 286 } 286 287 ret := m.ctrl.Call(m, "SAdd", varargs...) ··· 289 290 } 290 291 291 292 // SAdd indicates an expected call of SAdd. 292 - func (mr *MockRedisClientMockRecorder) SAdd(arg0, arg1 any, arg2 ...any) *gomock.Call { 293 + func (mr *MockRedisClientMockRecorder) SAdd(ctx, key any, members ...any) *gomock.Call { 293 294 mr.mock.ctrl.T.Helper() 294 - varargs := append([]any{arg0, arg1}, arg2...) 295 + varargs := append([]any{ctx, key}, members...) 295 296 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SAdd", reflect.TypeOf((*MockRedisClient)(nil).SAdd), varargs...) 296 297 } 297 298 298 299 // SIsMember mocks base method. 299 - func (m *MockRedisClient) SIsMember(arg0 context.Context, arg1 string, arg2 any) *redis.BoolCmd { 300 + func (m *MockRedisClient) SIsMember(ctx context.Context, key string, member any) *redis.BoolCmd { 300 301 m.ctrl.T.Helper() 301 - ret := m.ctrl.Call(m, "SIsMember", arg0, arg1, arg2) 302 + ret := m.ctrl.Call(m, "SIsMember", ctx, key, member) 302 303 ret0, _ := ret[0].(*redis.BoolCmd) 303 304 return ret0 304 305 } 305 306 306 307 // SIsMember indicates an expected call of SIsMember. 307 - func (mr *MockRedisClientMockRecorder) SIsMember(arg0, arg1, arg2 any) *gomock.Call { 308 + func (mr *MockRedisClientMockRecorder) SIsMember(ctx, key, member any) *gomock.Call { 308 309 mr.mock.ctrl.T.Helper() 309 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SIsMember", reflect.TypeOf((*MockRedisClient)(nil).SIsMember), arg0, arg1, arg2) 310 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SIsMember", reflect.TypeOf((*MockRedisClient)(nil).SIsMember), ctx, key, member) 310 311 } 311 312 312 313 // SRem mocks base method. 313 - func (m *MockRedisClient) SRem(arg0 context.Context, arg1 string, arg2 ...any) *redis.IntCmd { 314 + func (m *MockRedisClient) SRem(ctx context.Context, key string, members ...any) *redis.IntCmd { 314 315 m.ctrl.T.Helper() 315 - varargs := []any{arg0, arg1} 316 - for _, a := range arg2 { 316 + varargs := []any{ctx, key} 317 + for _, a := range members { 317 318 varargs = append(varargs, a) 318 319 } 319 320 ret := m.ctrl.Call(m, "SRem", varargs...) ··· 322 323 } 323 324 324 325 // SRem indicates an expected call of SRem. 325 - func (mr *MockRedisClientMockRecorder) SRem(arg0, arg1 any, arg2 ...any) *gomock.Call { 326 + func (mr *MockRedisClientMockRecorder) SRem(ctx, key any, members ...any) *gomock.Call { 326 327 mr.mock.ctrl.T.Helper() 327 - varargs := append([]any{arg0, arg1}, arg2...) 328 + varargs := append([]any{ctx, key}, members...) 328 329 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SRem", reflect.TypeOf((*MockRedisClient)(nil).SRem), varargs...) 329 330 } 330 331 331 332 // Set mocks base method. 332 - func (m *MockRedisClient) Set(arg0 context.Context, arg1 string, arg2 any, arg3 time.Duration) *redis.StatusCmd { 333 + func (m *MockRedisClient) Set(ctx context.Context, key string, value any, expiration time.Duration) *redis.StatusCmd { 333 334 m.ctrl.T.Helper() 334 - ret := m.ctrl.Call(m, "Set", arg0, arg1, arg2, arg3) 335 + ret := m.ctrl.Call(m, "Set", ctx, key, value, expiration) 335 336 ret0, _ := ret[0].(*redis.StatusCmd) 336 337 return ret0 337 338 } 338 339 339 340 // Set indicates an expected call of Set. 340 - func (mr *MockRedisClientMockRecorder) Set(arg0, arg1, arg2, arg3 any) *gomock.Call { 341 + func (mr *MockRedisClientMockRecorder) Set(ctx, key, value, expiration any) *gomock.Call { 341 342 mr.mock.ctrl.T.Helper() 342 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockRedisClient)(nil).Set), arg0, arg1, arg2, arg3) 343 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockRedisClient)(nil).Set), ctx, key, value, expiration) 343 344 }