1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503
|
// Code generated by MockGen. DO NOT EDIT.
// Source: go.uber.org/mock/mockgen/internal/tests/generics (interfaces: Bar,Universe,MilkyWay,SolarSystem,Earth,Water)
//
// Generated by this command:
//
// mockgen --destination=package_mode/mock_test.go --package=package_mode . Bar,Universe,MilkyWay,SolarSystem,Earth,Water
//
// Package package_mode is a generated GoMock package.
package package_mode
import (
reflect "reflect"
gomock "go.uber.org/mock/gomock"
generics "go.uber.org/mock/mockgen/internal/tests/generics"
other "go.uber.org/mock/mockgen/internal/tests/generics/other"
constraints "golang.org/x/exp/constraints"
)
// MockBar is a mock of Bar interface.
type MockBar[T any, R any] struct {
ctrl *gomock.Controller
recorder *MockBarMockRecorder[T, R]
isgomock struct{}
}
// MockBarMockRecorder is the mock recorder for MockBar.
type MockBarMockRecorder[T any, R any] struct {
mock *MockBar[T, R]
}
// NewMockBar creates a new mock instance.
func NewMockBar[T any, R any](ctrl *gomock.Controller) *MockBar[T, R] {
mock := &MockBar[T, R]{ctrl: ctrl}
mock.recorder = &MockBarMockRecorder[T, R]{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockBar[T, R]) EXPECT() *MockBarMockRecorder[T, R] {
return m.recorder
}
// Eight mocks base method.
func (m *MockBar[T, R]) Eight(arg0 T) other.Two[T, R] {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Eight", arg0)
ret0, _ := ret[0].(other.Two[T, R])
return ret0
}
// Eight indicates an expected call of Eight.
func (mr *MockBarMockRecorder[T, R]) Eight(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Eight", reflect.TypeOf((*MockBar[T, R])(nil).Eight), arg0)
}
// Eighteen mocks base method.
func (m *MockBar[T, R]) Eighteen() (generics.Iface[*other.Five], error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Eighteen")
ret0, _ := ret[0].(generics.Iface[*other.Five])
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Eighteen indicates an expected call of Eighteen.
func (mr *MockBarMockRecorder[T, R]) Eighteen() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Eighteen", reflect.TypeOf((*MockBar[T, R])(nil).Eighteen))
}
// Eleven mocks base method.
func (m *MockBar[T, R]) Eleven() (*other.One[T], error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Eleven")
ret0, _ := ret[0].(*other.One[T])
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Eleven indicates an expected call of Eleven.
func (mr *MockBarMockRecorder[T, R]) Eleven() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Eleven", reflect.TypeOf((*MockBar[T, R])(nil).Eleven))
}
// Fifteen mocks base method.
func (m *MockBar[T, R]) Fifteen() (generics.Iface[generics.StructType], error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Fifteen")
ret0, _ := ret[0].(generics.Iface[generics.StructType])
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Fifteen indicates an expected call of Fifteen.
func (mr *MockBarMockRecorder[T, R]) Fifteen() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Fifteen", reflect.TypeOf((*MockBar[T, R])(nil).Fifteen))
}
// Five mocks base method.
func (m *MockBar[T, R]) Five(arg0 T) generics.Baz[T] {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Five", arg0)
ret0, _ := ret[0].(generics.Baz[T])
return ret0
}
// Five indicates an expected call of Five.
func (mr *MockBarMockRecorder[T, R]) Five(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Five", reflect.TypeOf((*MockBar[T, R])(nil).Five), arg0)
}
// Four mocks base method.
func (m *MockBar[T, R]) Four(arg0 T) generics.Foo[T, R] {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Four", arg0)
ret0, _ := ret[0].(generics.Foo[T, R])
return ret0
}
// Four indicates an expected call of Four.
func (mr *MockBarMockRecorder[T, R]) Four(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Four", reflect.TypeOf((*MockBar[T, R])(nil).Four), arg0)
}
// Fourteen mocks base method.
func (m *MockBar[T, R]) Fourteen() (*generics.Foo[generics.StructType, generics.StructType2], error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Fourteen")
ret0, _ := ret[0].(*generics.Foo[generics.StructType, generics.StructType2])
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Fourteen indicates an expected call of Fourteen.
func (mr *MockBarMockRecorder[T, R]) Fourteen() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Fourteen", reflect.TypeOf((*MockBar[T, R])(nil).Fourteen))
}
// Nine mocks base method.
func (m *MockBar[T, R]) Nine(arg0 generics.Iface[T]) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Nine", arg0)
}
// Nine indicates an expected call of Nine.
func (mr *MockBarMockRecorder[T, R]) Nine(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Nine", reflect.TypeOf((*MockBar[T, R])(nil).Nine), arg0)
}
// Nineteen mocks base method.
func (m *MockBar[T, R]) Nineteen() generics.AliasType {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Nineteen")
ret0, _ := ret[0].(generics.AliasType)
return ret0
}
// Nineteen indicates an expected call of Nineteen.
func (mr *MockBarMockRecorder[T, R]) Nineteen() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Nineteen", reflect.TypeOf((*MockBar[T, R])(nil).Nineteen))
}
// One mocks base method.
func (m *MockBar[T, R]) One(arg0 string) string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "One", arg0)
ret0, _ := ret[0].(string)
return ret0
}
// One indicates an expected call of One.
func (mr *MockBarMockRecorder[T, R]) One(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "One", reflect.TypeOf((*MockBar[T, R])(nil).One), arg0)
}
// Seven mocks base method.
func (m *MockBar[T, R]) Seven(arg0 T) other.One[T] {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Seven", arg0)
ret0, _ := ret[0].(other.One[T])
return ret0
}
// Seven indicates an expected call of Seven.
func (mr *MockBarMockRecorder[T, R]) Seven(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Seven", reflect.TypeOf((*MockBar[T, R])(nil).Seven), arg0)
}
// Seventeen mocks base method.
func (m *MockBar[T, R]) Seventeen() (*generics.Foo[other.Three, other.Four], error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Seventeen")
ret0, _ := ret[0].(*generics.Foo[other.Three, other.Four])
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Seventeen indicates an expected call of Seventeen.
func (mr *MockBarMockRecorder[T, R]) Seventeen() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Seventeen", reflect.TypeOf((*MockBar[T, R])(nil).Seventeen))
}
// Six mocks base method.
func (m *MockBar[T, R]) Six(arg0 T) *generics.Baz[T] {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Six", arg0)
ret0, _ := ret[0].(*generics.Baz[T])
return ret0
}
// Six indicates an expected call of Six.
func (mr *MockBarMockRecorder[T, R]) Six(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Six", reflect.TypeOf((*MockBar[T, R])(nil).Six), arg0)
}
// Sixteen mocks base method.
func (m *MockBar[T, R]) Sixteen() (generics.Baz[other.Three], error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Sixteen")
ret0, _ := ret[0].(generics.Baz[other.Three])
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Sixteen indicates an expected call of Sixteen.
func (mr *MockBarMockRecorder[T, R]) Sixteen() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sixteen", reflect.TypeOf((*MockBar[T, R])(nil).Sixteen))
}
// Ten mocks base method.
func (m *MockBar[T, R]) Ten(arg0 *T) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Ten", arg0)
}
// Ten indicates an expected call of Ten.
func (mr *MockBarMockRecorder[T, R]) Ten(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ten", reflect.TypeOf((*MockBar[T, R])(nil).Ten), arg0)
}
// Thirteen mocks base method.
func (m *MockBar[T, R]) Thirteen() (generics.Baz[generics.StructType], error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Thirteen")
ret0, _ := ret[0].(generics.Baz[generics.StructType])
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Thirteen indicates an expected call of Thirteen.
func (mr *MockBarMockRecorder[T, R]) Thirteen() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Thirteen", reflect.TypeOf((*MockBar[T, R])(nil).Thirteen))
}
// Three mocks base method.
func (m *MockBar[T, R]) Three(arg0 T) R {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Three", arg0)
ret0, _ := ret[0].(R)
return ret0
}
// Three indicates an expected call of Three.
func (mr *MockBarMockRecorder[T, R]) Three(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Three", reflect.TypeOf((*MockBar[T, R])(nil).Three), arg0)
}
// Twelve mocks base method.
func (m *MockBar[T, R]) Twelve() (*other.Two[T, R], error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Twelve")
ret0, _ := ret[0].(*other.Two[T, R])
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Twelve indicates an expected call of Twelve.
func (mr *MockBarMockRecorder[T, R]) Twelve() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Twelve", reflect.TypeOf((*MockBar[T, R])(nil).Twelve))
}
// Two mocks base method.
func (m *MockBar[T, R]) Two(arg0 T) string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Two", arg0)
ret0, _ := ret[0].(string)
return ret0
}
// Two indicates an expected call of Two.
func (mr *MockBarMockRecorder[T, R]) Two(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Two", reflect.TypeOf((*MockBar[T, R])(nil).Two), arg0)
}
// MockUniverse is a mock of Universe interface.
type MockUniverse[T constraints.Signed] struct {
ctrl *gomock.Controller
recorder *MockUniverseMockRecorder[T]
isgomock struct{}
}
// MockUniverseMockRecorder is the mock recorder for MockUniverse.
type MockUniverseMockRecorder[T constraints.Signed] struct {
mock *MockUniverse[T]
}
// NewMockUniverse creates a new mock instance.
func NewMockUniverse[T constraints.Signed](ctrl *gomock.Controller) *MockUniverse[T] {
mock := &MockUniverse[T]{ctrl: ctrl}
mock.recorder = &MockUniverseMockRecorder[T]{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockUniverse[T]) EXPECT() *MockUniverseMockRecorder[T] {
return m.recorder
}
// Water mocks base method.
func (m *MockUniverse[T]) Water(arg0 T) []T {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Water", arg0)
ret0, _ := ret[0].([]T)
return ret0
}
// Water indicates an expected call of Water.
func (mr *MockUniverseMockRecorder[T]) Water(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Water", reflect.TypeOf((*MockUniverse[T])(nil).Water), arg0)
}
// MockMilkyWay is a mock of MilkyWay interface.
type MockMilkyWay[R constraints.Integer] struct {
ctrl *gomock.Controller
recorder *MockMilkyWayMockRecorder[R]
isgomock struct{}
}
// MockMilkyWayMockRecorder is the mock recorder for MockMilkyWay.
type MockMilkyWayMockRecorder[R constraints.Integer] struct {
mock *MockMilkyWay[R]
}
// NewMockMilkyWay creates a new mock instance.
func NewMockMilkyWay[R constraints.Integer](ctrl *gomock.Controller) *MockMilkyWay[R] {
mock := &MockMilkyWay[R]{ctrl: ctrl}
mock.recorder = &MockMilkyWayMockRecorder[R]{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMilkyWay[R]) EXPECT() *MockMilkyWayMockRecorder[R] {
return m.recorder
}
// Water mocks base method.
func (m *MockMilkyWay[R]) Water(arg0 R) []R {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Water", arg0)
ret0, _ := ret[0].([]R)
return ret0
}
// Water indicates an expected call of Water.
func (mr *MockMilkyWayMockRecorder[R]) Water(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Water", reflect.TypeOf((*MockMilkyWay[R])(nil).Water), arg0)
}
// MockSolarSystem is a mock of SolarSystem interface.
type MockSolarSystem[T constraints.Ordered] struct {
ctrl *gomock.Controller
recorder *MockSolarSystemMockRecorder[T]
isgomock struct{}
}
// MockSolarSystemMockRecorder is the mock recorder for MockSolarSystem.
type MockSolarSystemMockRecorder[T constraints.Ordered] struct {
mock *MockSolarSystem[T]
}
// NewMockSolarSystem creates a new mock instance.
func NewMockSolarSystem[T constraints.Ordered](ctrl *gomock.Controller) *MockSolarSystem[T] {
mock := &MockSolarSystem[T]{ctrl: ctrl}
mock.recorder = &MockSolarSystemMockRecorder[T]{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockSolarSystem[T]) EXPECT() *MockSolarSystemMockRecorder[T] {
return m.recorder
}
// Water mocks base method.
func (m *MockSolarSystem[T]) Water(arg0 T) []T {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Water", arg0)
ret0, _ := ret[0].([]T)
return ret0
}
// Water indicates an expected call of Water.
func (mr *MockSolarSystemMockRecorder[T]) Water(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Water", reflect.TypeOf((*MockSolarSystem[T])(nil).Water), arg0)
}
// MockEarth is a mock of Earth interface.
type MockEarth[R any] struct {
ctrl *gomock.Controller
recorder *MockEarthMockRecorder[R]
isgomock struct{}
}
// MockEarthMockRecorder is the mock recorder for MockEarth.
type MockEarthMockRecorder[R any] struct {
mock *MockEarth[R]
}
// NewMockEarth creates a new mock instance.
func NewMockEarth[R any](ctrl *gomock.Controller) *MockEarth[R] {
mock := &MockEarth[R]{ctrl: ctrl}
mock.recorder = &MockEarthMockRecorder[R]{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockEarth[R]) EXPECT() *MockEarthMockRecorder[R] {
return m.recorder
}
// Water mocks base method.
func (m *MockEarth[R]) Water(arg0 R) []R {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Water", arg0)
ret0, _ := ret[0].([]R)
return ret0
}
// Water indicates an expected call of Water.
func (mr *MockEarthMockRecorder[R]) Water(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Water", reflect.TypeOf((*MockEarth[R])(nil).Water), arg0)
}
// MockWater is a mock of Water interface.
type MockWater[R any, C generics.UnsignedInteger] struct {
ctrl *gomock.Controller
recorder *MockWaterMockRecorder[R, C]
isgomock struct{}
}
// MockWaterMockRecorder is the mock recorder for MockWater.
type MockWaterMockRecorder[R any, C generics.UnsignedInteger] struct {
mock *MockWater[R, C]
}
// NewMockWater creates a new mock instance.
func NewMockWater[R any, C generics.UnsignedInteger](ctrl *gomock.Controller) *MockWater[R, C] {
mock := &MockWater[R, C]{ctrl: ctrl}
mock.recorder = &MockWaterMockRecorder[R, C]{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockWater[R, C]) EXPECT() *MockWaterMockRecorder[R, C] {
return m.recorder
}
// Fish mocks base method.
func (m *MockWater[R, C]) Fish(arg0 R) []C {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Fish", arg0)
ret0, _ := ret[0].([]C)
return ret0
}
// Fish indicates an expected call of Fish.
func (mr *MockWaterMockRecorder[R, C]) Fish(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Fish", reflect.TypeOf((*MockWater[R, C])(nil).Fish), arg0)
}
|