github.com/olli-ai/jx/v2@v2.0.400-0.20210921045218-14731b4dd448/pkg/gits/mocks/git_provider.go (about) 1 // Code generated by pegomock. DO NOT EDIT. 2 // Source: github.com/olli-ai/jx/v2/pkg/gits (interfaces: GitProvider) 3 4 package gits_test 5 6 import ( 7 os "os" 8 "reflect" 9 "time" 10 11 github "github.com/google/go-github/v32/github" 12 auth "github.com/olli-ai/jx/v2/pkg/auth" 13 gits "github.com/olli-ai/jx/v2/pkg/gits" 14 pegomock "github.com/petergtz/pegomock" 15 ) 16 17 type MockGitProvider struct { 18 fail func(message string, callerSkip ...int) 19 } 20 21 func NewMockGitProvider(options ...pegomock.Option) *MockGitProvider { 22 mock := &MockGitProvider{} 23 for _, option := range options { 24 option.Apply(mock) 25 } 26 return mock 27 } 28 29 func (mock *MockGitProvider) SetFailHandler(fh pegomock.FailHandler) { mock.fail = fh } 30 func (mock *MockGitProvider) FailHandler() pegomock.FailHandler { return mock.fail } 31 32 func (mock *MockGitProvider) AcceptInvitation(_param0 int64) (*github.Response, error) { 33 if mock == nil { 34 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 35 } 36 params := []pegomock.Param{_param0} 37 result := pegomock.GetGenericMockFrom(mock).Invoke("AcceptInvitation", params, []reflect.Type{reflect.TypeOf((**github.Response)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 38 var ret0 *github.Response 39 var ret1 error 40 if len(result) != 0 { 41 if result[0] != nil { 42 ret0 = result[0].(*github.Response) 43 } 44 if result[1] != nil { 45 ret1 = result[1].(error) 46 } 47 } 48 return ret0, ret1 49 } 50 51 func (mock *MockGitProvider) AddCollaborator(_param0 string, _param1 string, _param2 string) error { 52 if mock == nil { 53 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 54 } 55 params := []pegomock.Param{_param0, _param1, _param2} 56 result := pegomock.GetGenericMockFrom(mock).Invoke("AddCollaborator", params, []reflect.Type{reflect.TypeOf((*error)(nil)).Elem()}) 57 var ret0 error 58 if len(result) != 0 { 59 if result[0] != nil { 60 ret0 = result[0].(error) 61 } 62 } 63 return ret0 64 } 65 66 func (mock *MockGitProvider) AddLabelsToIssue(_param0 string, _param1 string, _param2 int, _param3 []string) error { 67 if mock == nil { 68 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 69 } 70 params := []pegomock.Param{_param0, _param1, _param2, _param3} 71 result := pegomock.GetGenericMockFrom(mock).Invoke("AddLabelsToIssue", params, []reflect.Type{reflect.TypeOf((*error)(nil)).Elem()}) 72 var ret0 error 73 if len(result) != 0 { 74 if result[0] != nil { 75 ret0 = result[0].(error) 76 } 77 } 78 return ret0 79 } 80 81 func (mock *MockGitProvider) AddPRComment(_param0 *gits.GitPullRequest, _param1 string) error { 82 if mock == nil { 83 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 84 } 85 params := []pegomock.Param{_param0, _param1} 86 result := pegomock.GetGenericMockFrom(mock).Invoke("AddPRComment", params, []reflect.Type{reflect.TypeOf((*error)(nil)).Elem()}) 87 var ret0 error 88 if len(result) != 0 { 89 if result[0] != nil { 90 ret0 = result[0].(error) 91 } 92 } 93 return ret0 94 } 95 96 func (mock *MockGitProvider) BranchArchiveURL(_param0 string, _param1 string, _param2 string) string { 97 if mock == nil { 98 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 99 } 100 params := []pegomock.Param{_param0, _param1, _param2} 101 result := pegomock.GetGenericMockFrom(mock).Invoke("BranchArchiveURL", params, []reflect.Type{reflect.TypeOf((*string)(nil)).Elem()}) 102 var ret0 string 103 if len(result) != 0 { 104 if result[0] != nil { 105 ret0 = result[0].(string) 106 } 107 } 108 return ret0 109 } 110 111 func (mock *MockGitProvider) ConfigureFeatures(_param0 string, _param1 string, _param2 *bool, _param3 *bool, _param4 *bool) (*gits.GitRepository, error) { 112 if mock == nil { 113 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 114 } 115 params := []pegomock.Param{_param0, _param1, _param2, _param3, _param4} 116 result := pegomock.GetGenericMockFrom(mock).Invoke("ConfigureFeatures", params, []reflect.Type{reflect.TypeOf((**gits.GitRepository)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 117 var ret0 *gits.GitRepository 118 var ret1 error 119 if len(result) != 0 { 120 if result[0] != nil { 121 ret0 = result[0].(*gits.GitRepository) 122 } 123 if result[1] != nil { 124 ret1 = result[1].(error) 125 } 126 } 127 return ret0, ret1 128 } 129 130 func (mock *MockGitProvider) CreateIssue(_param0 string, _param1 string, _param2 *gits.GitIssue) (*gits.GitIssue, error) { 131 if mock == nil { 132 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 133 } 134 params := []pegomock.Param{_param0, _param1, _param2} 135 result := pegomock.GetGenericMockFrom(mock).Invoke("CreateIssue", params, []reflect.Type{reflect.TypeOf((**gits.GitIssue)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 136 var ret0 *gits.GitIssue 137 var ret1 error 138 if len(result) != 0 { 139 if result[0] != nil { 140 ret0 = result[0].(*gits.GitIssue) 141 } 142 if result[1] != nil { 143 ret1 = result[1].(error) 144 } 145 } 146 return ret0, ret1 147 } 148 149 func (mock *MockGitProvider) CreateIssueComment(_param0 string, _param1 string, _param2 int, _param3 string) error { 150 if mock == nil { 151 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 152 } 153 params := []pegomock.Param{_param0, _param1, _param2, _param3} 154 result := pegomock.GetGenericMockFrom(mock).Invoke("CreateIssueComment", params, []reflect.Type{reflect.TypeOf((*error)(nil)).Elem()}) 155 var ret0 error 156 if len(result) != 0 { 157 if result[0] != nil { 158 ret0 = result[0].(error) 159 } 160 } 161 return ret0 162 } 163 164 func (mock *MockGitProvider) CreatePullRequest(_param0 *gits.GitPullRequestArguments) (*gits.GitPullRequest, error) { 165 if mock == nil { 166 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 167 } 168 params := []pegomock.Param{_param0} 169 result := pegomock.GetGenericMockFrom(mock).Invoke("CreatePullRequest", params, []reflect.Type{reflect.TypeOf((**gits.GitPullRequest)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 170 var ret0 *gits.GitPullRequest 171 var ret1 error 172 if len(result) != 0 { 173 if result[0] != nil { 174 ret0 = result[0].(*gits.GitPullRequest) 175 } 176 if result[1] != nil { 177 ret1 = result[1].(error) 178 } 179 } 180 return ret0, ret1 181 } 182 183 func (mock *MockGitProvider) CreateRepository(_param0 string, _param1 string, _param2 bool) (*gits.GitRepository, error) { 184 if mock == nil { 185 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 186 } 187 params := []pegomock.Param{_param0, _param1, _param2} 188 result := pegomock.GetGenericMockFrom(mock).Invoke("CreateRepository", params, []reflect.Type{reflect.TypeOf((**gits.GitRepository)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 189 var ret0 *gits.GitRepository 190 var ret1 error 191 if len(result) != 0 { 192 if result[0] != nil { 193 ret0 = result[0].(*gits.GitRepository) 194 } 195 if result[1] != nil { 196 ret1 = result[1].(error) 197 } 198 } 199 return ret0, ret1 200 } 201 202 func (mock *MockGitProvider) CreateWebHook(_param0 *gits.GitWebHookArguments) error { 203 if mock == nil { 204 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 205 } 206 params := []pegomock.Param{_param0} 207 result := pegomock.GetGenericMockFrom(mock).Invoke("CreateWebHook", params, []reflect.Type{reflect.TypeOf((*error)(nil)).Elem()}) 208 var ret0 error 209 if len(result) != 0 { 210 if result[0] != nil { 211 ret0 = result[0].(error) 212 } 213 } 214 return ret0 215 } 216 217 func (mock *MockGitProvider) CurrentUsername() string { 218 if mock == nil { 219 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 220 } 221 params := []pegomock.Param{} 222 result := pegomock.GetGenericMockFrom(mock).Invoke("CurrentUsername", params, []reflect.Type{reflect.TypeOf((*string)(nil)).Elem()}) 223 var ret0 string 224 if len(result) != 0 { 225 if result[0] != nil { 226 ret0 = result[0].(string) 227 } 228 } 229 return ret0 230 } 231 232 func (mock *MockGitProvider) DeleteRepository(_param0 string, _param1 string) error { 233 if mock == nil { 234 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 235 } 236 params := []pegomock.Param{_param0, _param1} 237 result := pegomock.GetGenericMockFrom(mock).Invoke("DeleteRepository", params, []reflect.Type{reflect.TypeOf((*error)(nil)).Elem()}) 238 var ret0 error 239 if len(result) != 0 { 240 if result[0] != nil { 241 ret0 = result[0].(error) 242 } 243 } 244 return ret0 245 } 246 247 func (mock *MockGitProvider) ForkRepository(_param0 string, _param1 string, _param2 string) (*gits.GitRepository, error) { 248 if mock == nil { 249 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 250 } 251 params := []pegomock.Param{_param0, _param1, _param2} 252 result := pegomock.GetGenericMockFrom(mock).Invoke("ForkRepository", params, []reflect.Type{reflect.TypeOf((**gits.GitRepository)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 253 var ret0 *gits.GitRepository 254 var ret1 error 255 if len(result) != 0 { 256 if result[0] != nil { 257 ret0 = result[0].(*gits.GitRepository) 258 } 259 if result[1] != nil { 260 ret1 = result[1].(error) 261 } 262 } 263 return ret0, ret1 264 } 265 266 func (mock *MockGitProvider) GetBranch(_param0 string, _param1 string, _param2 string) (*gits.GitBranch, error) { 267 if mock == nil { 268 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 269 } 270 params := []pegomock.Param{_param0, _param1, _param2} 271 result := pegomock.GetGenericMockFrom(mock).Invoke("GetBranch", params, []reflect.Type{reflect.TypeOf((**gits.GitBranch)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 272 var ret0 *gits.GitBranch 273 var ret1 error 274 if len(result) != 0 { 275 if result[0] != nil { 276 ret0 = result[0].(*gits.GitBranch) 277 } 278 if result[1] != nil { 279 ret1 = result[1].(error) 280 } 281 } 282 return ret0, ret1 283 } 284 285 func (mock *MockGitProvider) GetContent(_param0 string, _param1 string, _param2 string, _param3 string) (*gits.GitFileContent, error) { 286 if mock == nil { 287 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 288 } 289 params := []pegomock.Param{_param0, _param1, _param2, _param3} 290 result := pegomock.GetGenericMockFrom(mock).Invoke("GetContent", params, []reflect.Type{reflect.TypeOf((**gits.GitFileContent)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 291 var ret0 *gits.GitFileContent 292 var ret1 error 293 if len(result) != 0 { 294 if result[0] != nil { 295 ret0 = result[0].(*gits.GitFileContent) 296 } 297 if result[1] != nil { 298 ret1 = result[1].(error) 299 } 300 } 301 return ret0, ret1 302 } 303 304 func (mock *MockGitProvider) GetIssue(_param0 string, _param1 string, _param2 int) (*gits.GitIssue, error) { 305 if mock == nil { 306 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 307 } 308 params := []pegomock.Param{_param0, _param1, _param2} 309 result := pegomock.GetGenericMockFrom(mock).Invoke("GetIssue", params, []reflect.Type{reflect.TypeOf((**gits.GitIssue)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 310 var ret0 *gits.GitIssue 311 var ret1 error 312 if len(result) != 0 { 313 if result[0] != nil { 314 ret0 = result[0].(*gits.GitIssue) 315 } 316 if result[1] != nil { 317 ret1 = result[1].(error) 318 } 319 } 320 return ret0, ret1 321 } 322 323 func (mock *MockGitProvider) GetLatestRelease(_param0 string, _param1 string) (*gits.GitRelease, error) { 324 if mock == nil { 325 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 326 } 327 params := []pegomock.Param{_param0, _param1} 328 result := pegomock.GetGenericMockFrom(mock).Invoke("GetLatestRelease", params, []reflect.Type{reflect.TypeOf((**gits.GitRelease)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 329 var ret0 *gits.GitRelease 330 var ret1 error 331 if len(result) != 0 { 332 if result[0] != nil { 333 ret0 = result[0].(*gits.GitRelease) 334 } 335 if result[1] != nil { 336 ret1 = result[1].(error) 337 } 338 } 339 return ret0, ret1 340 } 341 342 func (mock *MockGitProvider) GetProjects(_param0 string, _param1 string) ([]gits.GitProject, error) { 343 if mock == nil { 344 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 345 } 346 params := []pegomock.Param{_param0, _param1} 347 result := pegomock.GetGenericMockFrom(mock).Invoke("GetProjects", params, []reflect.Type{reflect.TypeOf((*[]gits.GitProject)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 348 var ret0 []gits.GitProject 349 var ret1 error 350 if len(result) != 0 { 351 if result[0] != nil { 352 ret0 = result[0].([]gits.GitProject) 353 } 354 if result[1] != nil { 355 ret1 = result[1].(error) 356 } 357 } 358 return ret0, ret1 359 } 360 361 func (mock *MockGitProvider) GetPullRequest(_param0 string, _param1 *gits.GitRepository, _param2 int) (*gits.GitPullRequest, error) { 362 if mock == nil { 363 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 364 } 365 params := []pegomock.Param{_param0, _param1, _param2} 366 result := pegomock.GetGenericMockFrom(mock).Invoke("GetPullRequest", params, []reflect.Type{reflect.TypeOf((**gits.GitPullRequest)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 367 var ret0 *gits.GitPullRequest 368 var ret1 error 369 if len(result) != 0 { 370 if result[0] != nil { 371 ret0 = result[0].(*gits.GitPullRequest) 372 } 373 if result[1] != nil { 374 ret1 = result[1].(error) 375 } 376 } 377 return ret0, ret1 378 } 379 380 func (mock *MockGitProvider) GetPullRequestCommits(_param0 string, _param1 *gits.GitRepository, _param2 int) ([]*gits.GitCommit, error) { 381 if mock == nil { 382 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 383 } 384 params := []pegomock.Param{_param0, _param1, _param2} 385 result := pegomock.GetGenericMockFrom(mock).Invoke("GetPullRequestCommits", params, []reflect.Type{reflect.TypeOf((*[]*gits.GitCommit)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 386 var ret0 []*gits.GitCommit 387 var ret1 error 388 if len(result) != 0 { 389 if result[0] != nil { 390 ret0 = result[0].([]*gits.GitCommit) 391 } 392 if result[1] != nil { 393 ret1 = result[1].(error) 394 } 395 } 396 return ret0, ret1 397 } 398 399 func (mock *MockGitProvider) GetRelease(_param0 string, _param1 string, _param2 string) (*gits.GitRelease, error) { 400 if mock == nil { 401 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 402 } 403 params := []pegomock.Param{_param0, _param1, _param2} 404 result := pegomock.GetGenericMockFrom(mock).Invoke("GetRelease", params, []reflect.Type{reflect.TypeOf((**gits.GitRelease)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 405 var ret0 *gits.GitRelease 406 var ret1 error 407 if len(result) != 0 { 408 if result[0] != nil { 409 ret0 = result[0].(*gits.GitRelease) 410 } 411 if result[1] != nil { 412 ret1 = result[1].(error) 413 } 414 } 415 return ret0, ret1 416 } 417 418 func (mock *MockGitProvider) GetRepository(_param0 string, _param1 string) (*gits.GitRepository, error) { 419 if mock == nil { 420 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 421 } 422 params := []pegomock.Param{_param0, _param1} 423 result := pegomock.GetGenericMockFrom(mock).Invoke("GetRepository", params, []reflect.Type{reflect.TypeOf((**gits.GitRepository)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 424 var ret0 *gits.GitRepository 425 var ret1 error 426 if len(result) != 0 { 427 if result[0] != nil { 428 ret0 = result[0].(*gits.GitRepository) 429 } 430 if result[1] != nil { 431 ret1 = result[1].(error) 432 } 433 } 434 return ret0, ret1 435 } 436 437 func (mock *MockGitProvider) HasIssues() bool { 438 if mock == nil { 439 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 440 } 441 params := []pegomock.Param{} 442 result := pegomock.GetGenericMockFrom(mock).Invoke("HasIssues", params, []reflect.Type{reflect.TypeOf((*bool)(nil)).Elem()}) 443 var ret0 bool 444 if len(result) != 0 { 445 if result[0] != nil { 446 ret0 = result[0].(bool) 447 } 448 } 449 return ret0 450 } 451 452 func (mock *MockGitProvider) IsBitbucketCloud() bool { 453 if mock == nil { 454 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 455 } 456 params := []pegomock.Param{} 457 result := pegomock.GetGenericMockFrom(mock).Invoke("IsBitbucketCloud", params, []reflect.Type{reflect.TypeOf((*bool)(nil)).Elem()}) 458 var ret0 bool 459 if len(result) != 0 { 460 if result[0] != nil { 461 ret0 = result[0].(bool) 462 } 463 } 464 return ret0 465 } 466 467 func (mock *MockGitProvider) IsBitbucketServer() bool { 468 if mock == nil { 469 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 470 } 471 params := []pegomock.Param{} 472 result := pegomock.GetGenericMockFrom(mock).Invoke("IsBitbucketServer", params, []reflect.Type{reflect.TypeOf((*bool)(nil)).Elem()}) 473 var ret0 bool 474 if len(result) != 0 { 475 if result[0] != nil { 476 ret0 = result[0].(bool) 477 } 478 } 479 return ret0 480 } 481 482 func (mock *MockGitProvider) IsGerrit() bool { 483 if mock == nil { 484 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 485 } 486 params := []pegomock.Param{} 487 result := pegomock.GetGenericMockFrom(mock).Invoke("IsGerrit", params, []reflect.Type{reflect.TypeOf((*bool)(nil)).Elem()}) 488 var ret0 bool 489 if len(result) != 0 { 490 if result[0] != nil { 491 ret0 = result[0].(bool) 492 } 493 } 494 return ret0 495 } 496 497 func (mock *MockGitProvider) IsGitHub() bool { 498 if mock == nil { 499 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 500 } 501 params := []pegomock.Param{} 502 result := pegomock.GetGenericMockFrom(mock).Invoke("IsGitHub", params, []reflect.Type{reflect.TypeOf((*bool)(nil)).Elem()}) 503 var ret0 bool 504 if len(result) != 0 { 505 if result[0] != nil { 506 ret0 = result[0].(bool) 507 } 508 } 509 return ret0 510 } 511 512 func (mock *MockGitProvider) IsGitea() bool { 513 if mock == nil { 514 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 515 } 516 params := []pegomock.Param{} 517 result := pegomock.GetGenericMockFrom(mock).Invoke("IsGitea", params, []reflect.Type{reflect.TypeOf((*bool)(nil)).Elem()}) 518 var ret0 bool 519 if len(result) != 0 { 520 if result[0] != nil { 521 ret0 = result[0].(bool) 522 } 523 } 524 return ret0 525 } 526 527 func (mock *MockGitProvider) IsWikiEnabled(_param0 string, _param1 string) (bool, error) { 528 if mock == nil { 529 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 530 } 531 params := []pegomock.Param{_param0, _param1} 532 result := pegomock.GetGenericMockFrom(mock).Invoke("IsWikiEnabled", params, []reflect.Type{reflect.TypeOf((*bool)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 533 var ret0 bool 534 var ret1 error 535 if len(result) != 0 { 536 if result[0] != nil { 537 ret0 = result[0].(bool) 538 } 539 if result[1] != nil { 540 ret1 = result[1].(error) 541 } 542 } 543 return ret0, ret1 544 } 545 546 func (mock *MockGitProvider) IssueURL(_param0 string, _param1 string, _param2 int, _param3 bool) string { 547 if mock == nil { 548 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 549 } 550 params := []pegomock.Param{_param0, _param1, _param2, _param3} 551 result := pegomock.GetGenericMockFrom(mock).Invoke("IssueURL", params, []reflect.Type{reflect.TypeOf((*string)(nil)).Elem()}) 552 var ret0 string 553 if len(result) != 0 { 554 if result[0] != nil { 555 ret0 = result[0].(string) 556 } 557 } 558 return ret0 559 } 560 561 func (mock *MockGitProvider) JenkinsWebHookPath(_param0 string, _param1 string) string { 562 if mock == nil { 563 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 564 } 565 params := []pegomock.Param{_param0, _param1} 566 result := pegomock.GetGenericMockFrom(mock).Invoke("JenkinsWebHookPath", params, []reflect.Type{reflect.TypeOf((*string)(nil)).Elem()}) 567 var ret0 string 568 if len(result) != 0 { 569 if result[0] != nil { 570 ret0 = result[0].(string) 571 } 572 } 573 return ret0 574 } 575 576 func (mock *MockGitProvider) Kind() string { 577 if mock == nil { 578 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 579 } 580 params := []pegomock.Param{} 581 result := pegomock.GetGenericMockFrom(mock).Invoke("Kind", params, []reflect.Type{reflect.TypeOf((*string)(nil)).Elem()}) 582 var ret0 string 583 if len(result) != 0 { 584 if result[0] != nil { 585 ret0 = result[0].(string) 586 } 587 } 588 return ret0 589 } 590 591 func (mock *MockGitProvider) Label() string { 592 if mock == nil { 593 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 594 } 595 params := []pegomock.Param{} 596 result := pegomock.GetGenericMockFrom(mock).Invoke("Label", params, []reflect.Type{reflect.TypeOf((*string)(nil)).Elem()}) 597 var ret0 string 598 if len(result) != 0 { 599 if result[0] != nil { 600 ret0 = result[0].(string) 601 } 602 } 603 return ret0 604 } 605 606 func (mock *MockGitProvider) ListCommitStatus(_param0 string, _param1 string, _param2 string) ([]*gits.GitRepoStatus, error) { 607 if mock == nil { 608 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 609 } 610 params := []pegomock.Param{_param0, _param1, _param2} 611 result := pegomock.GetGenericMockFrom(mock).Invoke("ListCommitStatus", params, []reflect.Type{reflect.TypeOf((*[]*gits.GitRepoStatus)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 612 var ret0 []*gits.GitRepoStatus 613 var ret1 error 614 if len(result) != 0 { 615 if result[0] != nil { 616 ret0 = result[0].([]*gits.GitRepoStatus) 617 } 618 if result[1] != nil { 619 ret1 = result[1].(error) 620 } 621 } 622 return ret0, ret1 623 } 624 625 func (mock *MockGitProvider) ListCommits(_param0 string, _param1 string, _param2 *gits.ListCommitsArguments) ([]*gits.GitCommit, error) { 626 if mock == nil { 627 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 628 } 629 params := []pegomock.Param{_param0, _param1, _param2} 630 result := pegomock.GetGenericMockFrom(mock).Invoke("ListCommits", params, []reflect.Type{reflect.TypeOf((*[]*gits.GitCommit)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 631 var ret0 []*gits.GitCommit 632 var ret1 error 633 if len(result) != 0 { 634 if result[0] != nil { 635 ret0 = result[0].([]*gits.GitCommit) 636 } 637 if result[1] != nil { 638 ret1 = result[1].(error) 639 } 640 } 641 return ret0, ret1 642 } 643 644 func (mock *MockGitProvider) ListInvitations() ([]*github.RepositoryInvitation, *github.Response, error) { 645 if mock == nil { 646 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 647 } 648 params := []pegomock.Param{} 649 result := pegomock.GetGenericMockFrom(mock).Invoke("ListInvitations", params, []reflect.Type{reflect.TypeOf((*[]*github.RepositoryInvitation)(nil)).Elem(), reflect.TypeOf((**github.Response)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 650 var ret0 []*github.RepositoryInvitation 651 var ret1 *github.Response 652 var ret2 error 653 if len(result) != 0 { 654 if result[0] != nil { 655 ret0 = result[0].([]*github.RepositoryInvitation) 656 } 657 if result[1] != nil { 658 ret1 = result[1].(*github.Response) 659 } 660 if result[2] != nil { 661 ret2 = result[2].(error) 662 } 663 } 664 return ret0, ret1, ret2 665 } 666 667 func (mock *MockGitProvider) ListOpenPullRequests(_param0 string, _param1 string) ([]*gits.GitPullRequest, error) { 668 if mock == nil { 669 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 670 } 671 params := []pegomock.Param{_param0, _param1} 672 result := pegomock.GetGenericMockFrom(mock).Invoke("ListOpenPullRequests", params, []reflect.Type{reflect.TypeOf((*[]*gits.GitPullRequest)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 673 var ret0 []*gits.GitPullRequest 674 var ret1 error 675 if len(result) != 0 { 676 if result[0] != nil { 677 ret0 = result[0].([]*gits.GitPullRequest) 678 } 679 if result[1] != nil { 680 ret1 = result[1].(error) 681 } 682 } 683 return ret0, ret1 684 } 685 686 func (mock *MockGitProvider) ListOrganisations() ([]gits.GitOrganisation, error) { 687 if mock == nil { 688 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 689 } 690 params := []pegomock.Param{} 691 result := pegomock.GetGenericMockFrom(mock).Invoke("ListOrganisations", params, []reflect.Type{reflect.TypeOf((*[]gits.GitOrganisation)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 692 var ret0 []gits.GitOrganisation 693 var ret1 error 694 if len(result) != 0 { 695 if result[0] != nil { 696 ret0 = result[0].([]gits.GitOrganisation) 697 } 698 if result[1] != nil { 699 ret1 = result[1].(error) 700 } 701 } 702 return ret0, ret1 703 } 704 705 func (mock *MockGitProvider) ListReleases(_param0 string, _param1 string) ([]*gits.GitRelease, error) { 706 if mock == nil { 707 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 708 } 709 params := []pegomock.Param{_param0, _param1} 710 result := pegomock.GetGenericMockFrom(mock).Invoke("ListReleases", params, []reflect.Type{reflect.TypeOf((*[]*gits.GitRelease)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 711 var ret0 []*gits.GitRelease 712 var ret1 error 713 if len(result) != 0 { 714 if result[0] != nil { 715 ret0 = result[0].([]*gits.GitRelease) 716 } 717 if result[1] != nil { 718 ret1 = result[1].(error) 719 } 720 } 721 return ret0, ret1 722 } 723 724 func (mock *MockGitProvider) ListRepositories(_param0 string) ([]*gits.GitRepository, error) { 725 if mock == nil { 726 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 727 } 728 params := []pegomock.Param{_param0} 729 result := pegomock.GetGenericMockFrom(mock).Invoke("ListRepositories", params, []reflect.Type{reflect.TypeOf((*[]*gits.GitRepository)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 730 var ret0 []*gits.GitRepository 731 var ret1 error 732 if len(result) != 0 { 733 if result[0] != nil { 734 ret0 = result[0].([]*gits.GitRepository) 735 } 736 if result[1] != nil { 737 ret1 = result[1].(error) 738 } 739 } 740 return ret0, ret1 741 } 742 743 func (mock *MockGitProvider) ListWebHooks(_param0 string, _param1 string) ([]*gits.GitWebHookArguments, error) { 744 if mock == nil { 745 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 746 } 747 params := []pegomock.Param{_param0, _param1} 748 result := pegomock.GetGenericMockFrom(mock).Invoke("ListWebHooks", params, []reflect.Type{reflect.TypeOf((*[]*gits.GitWebHookArguments)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 749 var ret0 []*gits.GitWebHookArguments 750 var ret1 error 751 if len(result) != 0 { 752 if result[0] != nil { 753 ret0 = result[0].([]*gits.GitWebHookArguments) 754 } 755 if result[1] != nil { 756 ret1 = result[1].(error) 757 } 758 } 759 return ret0, ret1 760 } 761 762 func (mock *MockGitProvider) MergePullRequest(_param0 *gits.GitPullRequest, _param1 string) error { 763 if mock == nil { 764 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 765 } 766 params := []pegomock.Param{_param0, _param1} 767 result := pegomock.GetGenericMockFrom(mock).Invoke("MergePullRequest", params, []reflect.Type{reflect.TypeOf((*error)(nil)).Elem()}) 768 var ret0 error 769 if len(result) != 0 { 770 if result[0] != nil { 771 ret0 = result[0].(error) 772 } 773 } 774 return ret0 775 } 776 777 func (mock *MockGitProvider) PullRequestLastCommitStatus(_param0 *gits.GitPullRequest) (string, error) { 778 if mock == nil { 779 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 780 } 781 params := []pegomock.Param{_param0} 782 result := pegomock.GetGenericMockFrom(mock).Invoke("PullRequestLastCommitStatus", params, []reflect.Type{reflect.TypeOf((*string)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 783 var ret0 string 784 var ret1 error 785 if len(result) != 0 { 786 if result[0] != nil { 787 ret0 = result[0].(string) 788 } 789 if result[1] != nil { 790 ret1 = result[1].(error) 791 } 792 } 793 return ret0, ret1 794 } 795 796 func (mock *MockGitProvider) RenameRepository(_param0 string, _param1 string, _param2 string) (*gits.GitRepository, error) { 797 if mock == nil { 798 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 799 } 800 params := []pegomock.Param{_param0, _param1, _param2} 801 result := pegomock.GetGenericMockFrom(mock).Invoke("RenameRepository", params, []reflect.Type{reflect.TypeOf((**gits.GitRepository)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 802 var ret0 *gits.GitRepository 803 var ret1 error 804 if len(result) != 0 { 805 if result[0] != nil { 806 ret0 = result[0].(*gits.GitRepository) 807 } 808 if result[1] != nil { 809 ret1 = result[1].(error) 810 } 811 } 812 return ret0, ret1 813 } 814 815 func (mock *MockGitProvider) SearchIssues(_param0 string, _param1 string, _param2 string) ([]*gits.GitIssue, error) { 816 if mock == nil { 817 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 818 } 819 params := []pegomock.Param{_param0, _param1, _param2} 820 result := pegomock.GetGenericMockFrom(mock).Invoke("SearchIssues", params, []reflect.Type{reflect.TypeOf((*[]*gits.GitIssue)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 821 var ret0 []*gits.GitIssue 822 var ret1 error 823 if len(result) != 0 { 824 if result[0] != nil { 825 ret0 = result[0].([]*gits.GitIssue) 826 } 827 if result[1] != nil { 828 ret1 = result[1].(error) 829 } 830 } 831 return ret0, ret1 832 } 833 834 func (mock *MockGitProvider) SearchIssuesClosedSince(_param0 string, _param1 string, _param2 time.Time) ([]*gits.GitIssue, error) { 835 if mock == nil { 836 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 837 } 838 params := []pegomock.Param{_param0, _param1, _param2} 839 result := pegomock.GetGenericMockFrom(mock).Invoke("SearchIssuesClosedSince", params, []reflect.Type{reflect.TypeOf((*[]*gits.GitIssue)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 840 var ret0 []*gits.GitIssue 841 var ret1 error 842 if len(result) != 0 { 843 if result[0] != nil { 844 ret0 = result[0].([]*gits.GitIssue) 845 } 846 if result[1] != nil { 847 ret1 = result[1].(error) 848 } 849 } 850 return ret0, ret1 851 } 852 853 func (mock *MockGitProvider) ServerURL() string { 854 if mock == nil { 855 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 856 } 857 params := []pegomock.Param{} 858 result := pegomock.GetGenericMockFrom(mock).Invoke("ServerURL", params, []reflect.Type{reflect.TypeOf((*string)(nil)).Elem()}) 859 var ret0 string 860 if len(result) != 0 { 861 if result[0] != nil { 862 ret0 = result[0].(string) 863 } 864 } 865 return ret0 866 } 867 868 func (mock *MockGitProvider) ShouldForkForPullRequest(_param0 string, _param1 string, _param2 string) bool { 869 if mock == nil { 870 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 871 } 872 params := []pegomock.Param{_param0, _param1, _param2} 873 result := pegomock.GetGenericMockFrom(mock).Invoke("ShouldForkForPullRequest", params, []reflect.Type{reflect.TypeOf((*bool)(nil)).Elem()}) 874 var ret0 bool 875 if len(result) != 0 { 876 if result[0] != nil { 877 ret0 = result[0].(bool) 878 } 879 } 880 return ret0 881 } 882 883 func (mock *MockGitProvider) UpdateCommitStatus(_param0 string, _param1 string, _param2 string, _param3 *gits.GitRepoStatus) (*gits.GitRepoStatus, error) { 884 if mock == nil { 885 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 886 } 887 params := []pegomock.Param{_param0, _param1, _param2, _param3} 888 result := pegomock.GetGenericMockFrom(mock).Invoke("UpdateCommitStatus", params, []reflect.Type{reflect.TypeOf((**gits.GitRepoStatus)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 889 var ret0 *gits.GitRepoStatus 890 var ret1 error 891 if len(result) != 0 { 892 if result[0] != nil { 893 ret0 = result[0].(*gits.GitRepoStatus) 894 } 895 if result[1] != nil { 896 ret1 = result[1].(error) 897 } 898 } 899 return ret0, ret1 900 } 901 902 func (mock *MockGitProvider) UpdatePullRequest(_param0 *gits.GitPullRequestArguments, _param1 int) (*gits.GitPullRequest, error) { 903 if mock == nil { 904 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 905 } 906 params := []pegomock.Param{_param0, _param1} 907 result := pegomock.GetGenericMockFrom(mock).Invoke("UpdatePullRequest", params, []reflect.Type{reflect.TypeOf((**gits.GitPullRequest)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 908 var ret0 *gits.GitPullRequest 909 var ret1 error 910 if len(result) != 0 { 911 if result[0] != nil { 912 ret0 = result[0].(*gits.GitPullRequest) 913 } 914 if result[1] != nil { 915 ret1 = result[1].(error) 916 } 917 } 918 return ret0, ret1 919 } 920 921 func (mock *MockGitProvider) UpdatePullRequestStatus(_param0 *gits.GitPullRequest) error { 922 if mock == nil { 923 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 924 } 925 params := []pegomock.Param{_param0} 926 result := pegomock.GetGenericMockFrom(mock).Invoke("UpdatePullRequestStatus", params, []reflect.Type{reflect.TypeOf((*error)(nil)).Elem()}) 927 var ret0 error 928 if len(result) != 0 { 929 if result[0] != nil { 930 ret0 = result[0].(error) 931 } 932 } 933 return ret0 934 } 935 936 func (mock *MockGitProvider) UpdateRelease(_param0 string, _param1 string, _param2 string, _param3 *gits.GitRelease) error { 937 if mock == nil { 938 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 939 } 940 params := []pegomock.Param{_param0, _param1, _param2, _param3} 941 result := pegomock.GetGenericMockFrom(mock).Invoke("UpdateRelease", params, []reflect.Type{reflect.TypeOf((*error)(nil)).Elem()}) 942 var ret0 error 943 if len(result) != 0 { 944 if result[0] != nil { 945 ret0 = result[0].(error) 946 } 947 } 948 return ret0 949 } 950 951 func (mock *MockGitProvider) UpdateReleaseStatus(_param0 string, _param1 string, _param2 string, _param3 *gits.GitRelease) error { 952 if mock == nil { 953 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 954 } 955 params := []pegomock.Param{_param0, _param1, _param2, _param3} 956 result := pegomock.GetGenericMockFrom(mock).Invoke("UpdateReleaseStatus", params, []reflect.Type{reflect.TypeOf((*error)(nil)).Elem()}) 957 var ret0 error 958 if len(result) != 0 { 959 if result[0] != nil { 960 ret0 = result[0].(error) 961 } 962 } 963 return ret0 964 } 965 966 func (mock *MockGitProvider) UpdateWebHook(_param0 *gits.GitWebHookArguments) error { 967 if mock == nil { 968 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 969 } 970 params := []pegomock.Param{_param0} 971 result := pegomock.GetGenericMockFrom(mock).Invoke("UpdateWebHook", params, []reflect.Type{reflect.TypeOf((*error)(nil)).Elem()}) 972 var ret0 error 973 if len(result) != 0 { 974 if result[0] != nil { 975 ret0 = result[0].(error) 976 } 977 } 978 return ret0 979 } 980 981 func (mock *MockGitProvider) UploadReleaseAsset(_param0 string, _param1 string, _param2 int64, _param3 string, _param4 *os.File) (*gits.GitReleaseAsset, error) { 982 if mock == nil { 983 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 984 } 985 params := []pegomock.Param{_param0, _param1, _param2, _param3, _param4} 986 result := pegomock.GetGenericMockFrom(mock).Invoke("UploadReleaseAsset", params, []reflect.Type{reflect.TypeOf((**gits.GitReleaseAsset)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()}) 987 var ret0 *gits.GitReleaseAsset 988 var ret1 error 989 if len(result) != 0 { 990 if result[0] != nil { 991 ret0 = result[0].(*gits.GitReleaseAsset) 992 } 993 if result[1] != nil { 994 ret1 = result[1].(error) 995 } 996 } 997 return ret0, ret1 998 } 999 1000 func (mock *MockGitProvider) UserAuth() auth.UserAuth { 1001 if mock == nil { 1002 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 1003 } 1004 params := []pegomock.Param{} 1005 result := pegomock.GetGenericMockFrom(mock).Invoke("UserAuth", params, []reflect.Type{reflect.TypeOf((*auth.UserAuth)(nil)).Elem()}) 1006 var ret0 auth.UserAuth 1007 if len(result) != 0 { 1008 if result[0] != nil { 1009 ret0 = result[0].(auth.UserAuth) 1010 } 1011 } 1012 return ret0 1013 } 1014 1015 func (mock *MockGitProvider) UserInfo(_param0 string) *gits.GitUser { 1016 if mock == nil { 1017 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 1018 } 1019 params := []pegomock.Param{_param0} 1020 result := pegomock.GetGenericMockFrom(mock).Invoke("UserInfo", params, []reflect.Type{reflect.TypeOf((**gits.GitUser)(nil)).Elem()}) 1021 var ret0 *gits.GitUser 1022 if len(result) != 0 { 1023 if result[0] != nil { 1024 ret0 = result[0].(*gits.GitUser) 1025 } 1026 } 1027 return ret0 1028 } 1029 1030 func (mock *MockGitProvider) ValidateRepositoryName(_param0 string, _param1 string) error { 1031 if mock == nil { 1032 panic("mock must not be nil. Use myMock := NewMockGitProvider().") 1033 } 1034 params := []pegomock.Param{_param0, _param1} 1035 result := pegomock.GetGenericMockFrom(mock).Invoke("ValidateRepositoryName", params, []reflect.Type{reflect.TypeOf((*error)(nil)).Elem()}) 1036 var ret0 error 1037 if len(result) != 0 { 1038 if result[0] != nil { 1039 ret0 = result[0].(error) 1040 } 1041 } 1042 return ret0 1043 } 1044 1045 func (mock *MockGitProvider) VerifyWasCalledOnce() *VerifierMockGitProvider { 1046 return &VerifierMockGitProvider{ 1047 mock: mock, 1048 invocationCountMatcher: pegomock.Times(1), 1049 } 1050 } 1051 1052 func (mock *MockGitProvider) VerifyWasCalled(invocationCountMatcher pegomock.Matcher) *VerifierMockGitProvider { 1053 return &VerifierMockGitProvider{ 1054 mock: mock, 1055 invocationCountMatcher: invocationCountMatcher, 1056 } 1057 } 1058 1059 func (mock *MockGitProvider) VerifyWasCalledInOrder(invocationCountMatcher pegomock.Matcher, inOrderContext *pegomock.InOrderContext) *VerifierMockGitProvider { 1060 return &VerifierMockGitProvider{ 1061 mock: mock, 1062 invocationCountMatcher: invocationCountMatcher, 1063 inOrderContext: inOrderContext, 1064 } 1065 } 1066 1067 func (mock *MockGitProvider) VerifyWasCalledEventually(invocationCountMatcher pegomock.Matcher, timeout time.Duration) *VerifierMockGitProvider { 1068 return &VerifierMockGitProvider{ 1069 mock: mock, 1070 invocationCountMatcher: invocationCountMatcher, 1071 timeout: timeout, 1072 } 1073 } 1074 1075 type VerifierMockGitProvider struct { 1076 mock *MockGitProvider 1077 invocationCountMatcher pegomock.Matcher 1078 inOrderContext *pegomock.InOrderContext 1079 timeout time.Duration 1080 } 1081 1082 func (verifier *VerifierMockGitProvider) AcceptInvitation(_param0 int64) *MockGitProvider_AcceptInvitation_OngoingVerification { 1083 params := []pegomock.Param{_param0} 1084 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "AcceptInvitation", params, verifier.timeout) 1085 return &MockGitProvider_AcceptInvitation_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1086 } 1087 1088 type MockGitProvider_AcceptInvitation_OngoingVerification struct { 1089 mock *MockGitProvider 1090 methodInvocations []pegomock.MethodInvocation 1091 } 1092 1093 func (c *MockGitProvider_AcceptInvitation_OngoingVerification) GetCapturedArguments() int64 { 1094 _param0 := c.GetAllCapturedArguments() 1095 return _param0[len(_param0)-1] 1096 } 1097 1098 func (c *MockGitProvider_AcceptInvitation_OngoingVerification) GetAllCapturedArguments() (_param0 []int64) { 1099 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1100 if len(params) > 0 { 1101 _param0 = make([]int64, len(c.methodInvocations)) 1102 for u, param := range params[0] { 1103 _param0[u] = param.(int64) 1104 } 1105 } 1106 return 1107 } 1108 1109 func (verifier *VerifierMockGitProvider) AddCollaborator(_param0 string, _param1 string, _param2 string) *MockGitProvider_AddCollaborator_OngoingVerification { 1110 params := []pegomock.Param{_param0, _param1, _param2} 1111 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "AddCollaborator", params, verifier.timeout) 1112 return &MockGitProvider_AddCollaborator_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1113 } 1114 1115 type MockGitProvider_AddCollaborator_OngoingVerification struct { 1116 mock *MockGitProvider 1117 methodInvocations []pegomock.MethodInvocation 1118 } 1119 1120 func (c *MockGitProvider_AddCollaborator_OngoingVerification) GetCapturedArguments() (string, string, string) { 1121 _param0, _param1, _param2 := c.GetAllCapturedArguments() 1122 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1] 1123 } 1124 1125 func (c *MockGitProvider_AddCollaborator_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []string) { 1126 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1127 if len(params) > 0 { 1128 _param0 = make([]string, len(c.methodInvocations)) 1129 for u, param := range params[0] { 1130 _param0[u] = param.(string) 1131 } 1132 _param1 = make([]string, len(c.methodInvocations)) 1133 for u, param := range params[1] { 1134 _param1[u] = param.(string) 1135 } 1136 _param2 = make([]string, len(c.methodInvocations)) 1137 for u, param := range params[2] { 1138 _param2[u] = param.(string) 1139 } 1140 } 1141 return 1142 } 1143 1144 func (verifier *VerifierMockGitProvider) AddLabelsToIssue(_param0 string, _param1 string, _param2 int, _param3 []string) *MockGitProvider_AddLabelsToIssue_OngoingVerification { 1145 params := []pegomock.Param{_param0, _param1, _param2, _param3} 1146 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "AddLabelsToIssue", params, verifier.timeout) 1147 return &MockGitProvider_AddLabelsToIssue_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1148 } 1149 1150 type MockGitProvider_AddLabelsToIssue_OngoingVerification struct { 1151 mock *MockGitProvider 1152 methodInvocations []pegomock.MethodInvocation 1153 } 1154 1155 func (c *MockGitProvider_AddLabelsToIssue_OngoingVerification) GetCapturedArguments() (string, string, int, []string) { 1156 _param0, _param1, _param2, _param3 := c.GetAllCapturedArguments() 1157 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1], _param3[len(_param3)-1] 1158 } 1159 1160 func (c *MockGitProvider_AddLabelsToIssue_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []int, _param3 [][]string) { 1161 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1162 if len(params) > 0 { 1163 _param0 = make([]string, len(c.methodInvocations)) 1164 for u, param := range params[0] { 1165 _param0[u] = param.(string) 1166 } 1167 _param1 = make([]string, len(c.methodInvocations)) 1168 for u, param := range params[1] { 1169 _param1[u] = param.(string) 1170 } 1171 _param2 = make([]int, len(c.methodInvocations)) 1172 for u, param := range params[2] { 1173 _param2[u] = param.(int) 1174 } 1175 _param3 = make([][]string, len(c.methodInvocations)) 1176 for u, param := range params[3] { 1177 _param3[u] = param.([]string) 1178 } 1179 } 1180 return 1181 } 1182 1183 func (verifier *VerifierMockGitProvider) AddPRComment(_param0 *gits.GitPullRequest, _param1 string) *MockGitProvider_AddPRComment_OngoingVerification { 1184 params := []pegomock.Param{_param0, _param1} 1185 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "AddPRComment", params, verifier.timeout) 1186 return &MockGitProvider_AddPRComment_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1187 } 1188 1189 type MockGitProvider_AddPRComment_OngoingVerification struct { 1190 mock *MockGitProvider 1191 methodInvocations []pegomock.MethodInvocation 1192 } 1193 1194 func (c *MockGitProvider_AddPRComment_OngoingVerification) GetCapturedArguments() (*gits.GitPullRequest, string) { 1195 _param0, _param1 := c.GetAllCapturedArguments() 1196 return _param0[len(_param0)-1], _param1[len(_param1)-1] 1197 } 1198 1199 func (c *MockGitProvider_AddPRComment_OngoingVerification) GetAllCapturedArguments() (_param0 []*gits.GitPullRequest, _param1 []string) { 1200 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1201 if len(params) > 0 { 1202 _param0 = make([]*gits.GitPullRequest, len(c.methodInvocations)) 1203 for u, param := range params[0] { 1204 _param0[u] = param.(*gits.GitPullRequest) 1205 } 1206 _param1 = make([]string, len(c.methodInvocations)) 1207 for u, param := range params[1] { 1208 _param1[u] = param.(string) 1209 } 1210 } 1211 return 1212 } 1213 1214 func (verifier *VerifierMockGitProvider) BranchArchiveURL(_param0 string, _param1 string, _param2 string) *MockGitProvider_BranchArchiveURL_OngoingVerification { 1215 params := []pegomock.Param{_param0, _param1, _param2} 1216 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "BranchArchiveURL", params, verifier.timeout) 1217 return &MockGitProvider_BranchArchiveURL_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1218 } 1219 1220 type MockGitProvider_BranchArchiveURL_OngoingVerification struct { 1221 mock *MockGitProvider 1222 methodInvocations []pegomock.MethodInvocation 1223 } 1224 1225 func (c *MockGitProvider_BranchArchiveURL_OngoingVerification) GetCapturedArguments() (string, string, string) { 1226 _param0, _param1, _param2 := c.GetAllCapturedArguments() 1227 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1] 1228 } 1229 1230 func (c *MockGitProvider_BranchArchiveURL_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []string) { 1231 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1232 if len(params) > 0 { 1233 _param0 = make([]string, len(c.methodInvocations)) 1234 for u, param := range params[0] { 1235 _param0[u] = param.(string) 1236 } 1237 _param1 = make([]string, len(c.methodInvocations)) 1238 for u, param := range params[1] { 1239 _param1[u] = param.(string) 1240 } 1241 _param2 = make([]string, len(c.methodInvocations)) 1242 for u, param := range params[2] { 1243 _param2[u] = param.(string) 1244 } 1245 } 1246 return 1247 } 1248 1249 func (verifier *VerifierMockGitProvider) ConfigureFeatures(_param0 string, _param1 string, _param2 *bool, _param3 *bool, _param4 *bool) *MockGitProvider_ConfigureFeatures_OngoingVerification { 1250 params := []pegomock.Param{_param0, _param1, _param2, _param3, _param4} 1251 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "ConfigureFeatures", params, verifier.timeout) 1252 return &MockGitProvider_ConfigureFeatures_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1253 } 1254 1255 type MockGitProvider_ConfigureFeatures_OngoingVerification struct { 1256 mock *MockGitProvider 1257 methodInvocations []pegomock.MethodInvocation 1258 } 1259 1260 func (c *MockGitProvider_ConfigureFeatures_OngoingVerification) GetCapturedArguments() (string, string, *bool, *bool, *bool) { 1261 _param0, _param1, _param2, _param3, _param4 := c.GetAllCapturedArguments() 1262 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1], _param3[len(_param3)-1], _param4[len(_param4)-1] 1263 } 1264 1265 func (c *MockGitProvider_ConfigureFeatures_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []*bool, _param3 []*bool, _param4 []*bool) { 1266 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1267 if len(params) > 0 { 1268 _param0 = make([]string, len(c.methodInvocations)) 1269 for u, param := range params[0] { 1270 _param0[u] = param.(string) 1271 } 1272 _param1 = make([]string, len(c.methodInvocations)) 1273 for u, param := range params[1] { 1274 _param1[u] = param.(string) 1275 } 1276 _param2 = make([]*bool, len(c.methodInvocations)) 1277 for u, param := range params[2] { 1278 _param2[u] = param.(*bool) 1279 } 1280 _param3 = make([]*bool, len(c.methodInvocations)) 1281 for u, param := range params[3] { 1282 _param3[u] = param.(*bool) 1283 } 1284 _param4 = make([]*bool, len(c.methodInvocations)) 1285 for u, param := range params[4] { 1286 _param4[u] = param.(*bool) 1287 } 1288 } 1289 return 1290 } 1291 1292 func (verifier *VerifierMockGitProvider) CreateIssue(_param0 string, _param1 string, _param2 *gits.GitIssue) *MockGitProvider_CreateIssue_OngoingVerification { 1293 params := []pegomock.Param{_param0, _param1, _param2} 1294 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "CreateIssue", params, verifier.timeout) 1295 return &MockGitProvider_CreateIssue_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1296 } 1297 1298 type MockGitProvider_CreateIssue_OngoingVerification struct { 1299 mock *MockGitProvider 1300 methodInvocations []pegomock.MethodInvocation 1301 } 1302 1303 func (c *MockGitProvider_CreateIssue_OngoingVerification) GetCapturedArguments() (string, string, *gits.GitIssue) { 1304 _param0, _param1, _param2 := c.GetAllCapturedArguments() 1305 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1] 1306 } 1307 1308 func (c *MockGitProvider_CreateIssue_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []*gits.GitIssue) { 1309 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1310 if len(params) > 0 { 1311 _param0 = make([]string, len(c.methodInvocations)) 1312 for u, param := range params[0] { 1313 _param0[u] = param.(string) 1314 } 1315 _param1 = make([]string, len(c.methodInvocations)) 1316 for u, param := range params[1] { 1317 _param1[u] = param.(string) 1318 } 1319 _param2 = make([]*gits.GitIssue, len(c.methodInvocations)) 1320 for u, param := range params[2] { 1321 _param2[u] = param.(*gits.GitIssue) 1322 } 1323 } 1324 return 1325 } 1326 1327 func (verifier *VerifierMockGitProvider) CreateIssueComment(_param0 string, _param1 string, _param2 int, _param3 string) *MockGitProvider_CreateIssueComment_OngoingVerification { 1328 params := []pegomock.Param{_param0, _param1, _param2, _param3} 1329 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "CreateIssueComment", params, verifier.timeout) 1330 return &MockGitProvider_CreateIssueComment_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1331 } 1332 1333 type MockGitProvider_CreateIssueComment_OngoingVerification struct { 1334 mock *MockGitProvider 1335 methodInvocations []pegomock.MethodInvocation 1336 } 1337 1338 func (c *MockGitProvider_CreateIssueComment_OngoingVerification) GetCapturedArguments() (string, string, int, string) { 1339 _param0, _param1, _param2, _param3 := c.GetAllCapturedArguments() 1340 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1], _param3[len(_param3)-1] 1341 } 1342 1343 func (c *MockGitProvider_CreateIssueComment_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []int, _param3 []string) { 1344 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1345 if len(params) > 0 { 1346 _param0 = make([]string, len(c.methodInvocations)) 1347 for u, param := range params[0] { 1348 _param0[u] = param.(string) 1349 } 1350 _param1 = make([]string, len(c.methodInvocations)) 1351 for u, param := range params[1] { 1352 _param1[u] = param.(string) 1353 } 1354 _param2 = make([]int, len(c.methodInvocations)) 1355 for u, param := range params[2] { 1356 _param2[u] = param.(int) 1357 } 1358 _param3 = make([]string, len(c.methodInvocations)) 1359 for u, param := range params[3] { 1360 _param3[u] = param.(string) 1361 } 1362 } 1363 return 1364 } 1365 1366 func (verifier *VerifierMockGitProvider) CreatePullRequest(_param0 *gits.GitPullRequestArguments) *MockGitProvider_CreatePullRequest_OngoingVerification { 1367 params := []pegomock.Param{_param0} 1368 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "CreatePullRequest", params, verifier.timeout) 1369 return &MockGitProvider_CreatePullRequest_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1370 } 1371 1372 type MockGitProvider_CreatePullRequest_OngoingVerification struct { 1373 mock *MockGitProvider 1374 methodInvocations []pegomock.MethodInvocation 1375 } 1376 1377 func (c *MockGitProvider_CreatePullRequest_OngoingVerification) GetCapturedArguments() *gits.GitPullRequestArguments { 1378 _param0 := c.GetAllCapturedArguments() 1379 return _param0[len(_param0)-1] 1380 } 1381 1382 func (c *MockGitProvider_CreatePullRequest_OngoingVerification) GetAllCapturedArguments() (_param0 []*gits.GitPullRequestArguments) { 1383 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1384 if len(params) > 0 { 1385 _param0 = make([]*gits.GitPullRequestArguments, len(c.methodInvocations)) 1386 for u, param := range params[0] { 1387 _param0[u] = param.(*gits.GitPullRequestArguments) 1388 } 1389 } 1390 return 1391 } 1392 1393 func (verifier *VerifierMockGitProvider) CreateRepository(_param0 string, _param1 string, _param2 bool) *MockGitProvider_CreateRepository_OngoingVerification { 1394 params := []pegomock.Param{_param0, _param1, _param2} 1395 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "CreateRepository", params, verifier.timeout) 1396 return &MockGitProvider_CreateRepository_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1397 } 1398 1399 type MockGitProvider_CreateRepository_OngoingVerification struct { 1400 mock *MockGitProvider 1401 methodInvocations []pegomock.MethodInvocation 1402 } 1403 1404 func (c *MockGitProvider_CreateRepository_OngoingVerification) GetCapturedArguments() (string, string, bool) { 1405 _param0, _param1, _param2 := c.GetAllCapturedArguments() 1406 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1] 1407 } 1408 1409 func (c *MockGitProvider_CreateRepository_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []bool) { 1410 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1411 if len(params) > 0 { 1412 _param0 = make([]string, len(c.methodInvocations)) 1413 for u, param := range params[0] { 1414 _param0[u] = param.(string) 1415 } 1416 _param1 = make([]string, len(c.methodInvocations)) 1417 for u, param := range params[1] { 1418 _param1[u] = param.(string) 1419 } 1420 _param2 = make([]bool, len(c.methodInvocations)) 1421 for u, param := range params[2] { 1422 _param2[u] = param.(bool) 1423 } 1424 } 1425 return 1426 } 1427 1428 func (verifier *VerifierMockGitProvider) CreateWebHook(_param0 *gits.GitWebHookArguments) *MockGitProvider_CreateWebHook_OngoingVerification { 1429 params := []pegomock.Param{_param0} 1430 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "CreateWebHook", params, verifier.timeout) 1431 return &MockGitProvider_CreateWebHook_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1432 } 1433 1434 type MockGitProvider_CreateWebHook_OngoingVerification struct { 1435 mock *MockGitProvider 1436 methodInvocations []pegomock.MethodInvocation 1437 } 1438 1439 func (c *MockGitProvider_CreateWebHook_OngoingVerification) GetCapturedArguments() *gits.GitWebHookArguments { 1440 _param0 := c.GetAllCapturedArguments() 1441 return _param0[len(_param0)-1] 1442 } 1443 1444 func (c *MockGitProvider_CreateWebHook_OngoingVerification) GetAllCapturedArguments() (_param0 []*gits.GitWebHookArguments) { 1445 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1446 if len(params) > 0 { 1447 _param0 = make([]*gits.GitWebHookArguments, len(c.methodInvocations)) 1448 for u, param := range params[0] { 1449 _param0[u] = param.(*gits.GitWebHookArguments) 1450 } 1451 } 1452 return 1453 } 1454 1455 func (verifier *VerifierMockGitProvider) CurrentUsername() *MockGitProvider_CurrentUsername_OngoingVerification { 1456 params := []pegomock.Param{} 1457 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "CurrentUsername", params, verifier.timeout) 1458 return &MockGitProvider_CurrentUsername_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1459 } 1460 1461 type MockGitProvider_CurrentUsername_OngoingVerification struct { 1462 mock *MockGitProvider 1463 methodInvocations []pegomock.MethodInvocation 1464 } 1465 1466 func (c *MockGitProvider_CurrentUsername_OngoingVerification) GetCapturedArguments() { 1467 } 1468 1469 func (c *MockGitProvider_CurrentUsername_OngoingVerification) GetAllCapturedArguments() { 1470 } 1471 1472 func (verifier *VerifierMockGitProvider) DeleteRepository(_param0 string, _param1 string) *MockGitProvider_DeleteRepository_OngoingVerification { 1473 params := []pegomock.Param{_param0, _param1} 1474 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "DeleteRepository", params, verifier.timeout) 1475 return &MockGitProvider_DeleteRepository_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1476 } 1477 1478 type MockGitProvider_DeleteRepository_OngoingVerification struct { 1479 mock *MockGitProvider 1480 methodInvocations []pegomock.MethodInvocation 1481 } 1482 1483 func (c *MockGitProvider_DeleteRepository_OngoingVerification) GetCapturedArguments() (string, string) { 1484 _param0, _param1 := c.GetAllCapturedArguments() 1485 return _param0[len(_param0)-1], _param1[len(_param1)-1] 1486 } 1487 1488 func (c *MockGitProvider_DeleteRepository_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string) { 1489 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1490 if len(params) > 0 { 1491 _param0 = make([]string, len(c.methodInvocations)) 1492 for u, param := range params[0] { 1493 _param0[u] = param.(string) 1494 } 1495 _param1 = make([]string, len(c.methodInvocations)) 1496 for u, param := range params[1] { 1497 _param1[u] = param.(string) 1498 } 1499 } 1500 return 1501 } 1502 1503 func (verifier *VerifierMockGitProvider) ForkRepository(_param0 string, _param1 string, _param2 string) *MockGitProvider_ForkRepository_OngoingVerification { 1504 params := []pegomock.Param{_param0, _param1, _param2} 1505 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "ForkRepository", params, verifier.timeout) 1506 return &MockGitProvider_ForkRepository_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1507 } 1508 1509 type MockGitProvider_ForkRepository_OngoingVerification struct { 1510 mock *MockGitProvider 1511 methodInvocations []pegomock.MethodInvocation 1512 } 1513 1514 func (c *MockGitProvider_ForkRepository_OngoingVerification) GetCapturedArguments() (string, string, string) { 1515 _param0, _param1, _param2 := c.GetAllCapturedArguments() 1516 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1] 1517 } 1518 1519 func (c *MockGitProvider_ForkRepository_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []string) { 1520 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1521 if len(params) > 0 { 1522 _param0 = make([]string, len(c.methodInvocations)) 1523 for u, param := range params[0] { 1524 _param0[u] = param.(string) 1525 } 1526 _param1 = make([]string, len(c.methodInvocations)) 1527 for u, param := range params[1] { 1528 _param1[u] = param.(string) 1529 } 1530 _param2 = make([]string, len(c.methodInvocations)) 1531 for u, param := range params[2] { 1532 _param2[u] = param.(string) 1533 } 1534 } 1535 return 1536 } 1537 1538 func (verifier *VerifierMockGitProvider) GetBranch(_param0 string, _param1 string, _param2 string) *MockGitProvider_GetBranch_OngoingVerification { 1539 params := []pegomock.Param{_param0, _param1, _param2} 1540 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "GetBranch", params, verifier.timeout) 1541 return &MockGitProvider_GetBranch_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1542 } 1543 1544 type MockGitProvider_GetBranch_OngoingVerification struct { 1545 mock *MockGitProvider 1546 methodInvocations []pegomock.MethodInvocation 1547 } 1548 1549 func (c *MockGitProvider_GetBranch_OngoingVerification) GetCapturedArguments() (string, string, string) { 1550 _param0, _param1, _param2 := c.GetAllCapturedArguments() 1551 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1] 1552 } 1553 1554 func (c *MockGitProvider_GetBranch_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []string) { 1555 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1556 if len(params) > 0 { 1557 _param0 = make([]string, len(c.methodInvocations)) 1558 for u, param := range params[0] { 1559 _param0[u] = param.(string) 1560 } 1561 _param1 = make([]string, len(c.methodInvocations)) 1562 for u, param := range params[1] { 1563 _param1[u] = param.(string) 1564 } 1565 _param2 = make([]string, len(c.methodInvocations)) 1566 for u, param := range params[2] { 1567 _param2[u] = param.(string) 1568 } 1569 } 1570 return 1571 } 1572 1573 func (verifier *VerifierMockGitProvider) GetContent(_param0 string, _param1 string, _param2 string, _param3 string) *MockGitProvider_GetContent_OngoingVerification { 1574 params := []pegomock.Param{_param0, _param1, _param2, _param3} 1575 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "GetContent", params, verifier.timeout) 1576 return &MockGitProvider_GetContent_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1577 } 1578 1579 type MockGitProvider_GetContent_OngoingVerification struct { 1580 mock *MockGitProvider 1581 methodInvocations []pegomock.MethodInvocation 1582 } 1583 1584 func (c *MockGitProvider_GetContent_OngoingVerification) GetCapturedArguments() (string, string, string, string) { 1585 _param0, _param1, _param2, _param3 := c.GetAllCapturedArguments() 1586 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1], _param3[len(_param3)-1] 1587 } 1588 1589 func (c *MockGitProvider_GetContent_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []string, _param3 []string) { 1590 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1591 if len(params) > 0 { 1592 _param0 = make([]string, len(c.methodInvocations)) 1593 for u, param := range params[0] { 1594 _param0[u] = param.(string) 1595 } 1596 _param1 = make([]string, len(c.methodInvocations)) 1597 for u, param := range params[1] { 1598 _param1[u] = param.(string) 1599 } 1600 _param2 = make([]string, len(c.methodInvocations)) 1601 for u, param := range params[2] { 1602 _param2[u] = param.(string) 1603 } 1604 _param3 = make([]string, len(c.methodInvocations)) 1605 for u, param := range params[3] { 1606 _param3[u] = param.(string) 1607 } 1608 } 1609 return 1610 } 1611 1612 func (verifier *VerifierMockGitProvider) GetIssue(_param0 string, _param1 string, _param2 int) *MockGitProvider_GetIssue_OngoingVerification { 1613 params := []pegomock.Param{_param0, _param1, _param2} 1614 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "GetIssue", params, verifier.timeout) 1615 return &MockGitProvider_GetIssue_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1616 } 1617 1618 type MockGitProvider_GetIssue_OngoingVerification struct { 1619 mock *MockGitProvider 1620 methodInvocations []pegomock.MethodInvocation 1621 } 1622 1623 func (c *MockGitProvider_GetIssue_OngoingVerification) GetCapturedArguments() (string, string, int) { 1624 _param0, _param1, _param2 := c.GetAllCapturedArguments() 1625 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1] 1626 } 1627 1628 func (c *MockGitProvider_GetIssue_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []int) { 1629 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1630 if len(params) > 0 { 1631 _param0 = make([]string, len(c.methodInvocations)) 1632 for u, param := range params[0] { 1633 _param0[u] = param.(string) 1634 } 1635 _param1 = make([]string, len(c.methodInvocations)) 1636 for u, param := range params[1] { 1637 _param1[u] = param.(string) 1638 } 1639 _param2 = make([]int, len(c.methodInvocations)) 1640 for u, param := range params[2] { 1641 _param2[u] = param.(int) 1642 } 1643 } 1644 return 1645 } 1646 1647 func (verifier *VerifierMockGitProvider) GetLatestRelease(_param0 string, _param1 string) *MockGitProvider_GetLatestRelease_OngoingVerification { 1648 params := []pegomock.Param{_param0, _param1} 1649 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "GetLatestRelease", params, verifier.timeout) 1650 return &MockGitProvider_GetLatestRelease_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1651 } 1652 1653 type MockGitProvider_GetLatestRelease_OngoingVerification struct { 1654 mock *MockGitProvider 1655 methodInvocations []pegomock.MethodInvocation 1656 } 1657 1658 func (c *MockGitProvider_GetLatestRelease_OngoingVerification) GetCapturedArguments() (string, string) { 1659 _param0, _param1 := c.GetAllCapturedArguments() 1660 return _param0[len(_param0)-1], _param1[len(_param1)-1] 1661 } 1662 1663 func (c *MockGitProvider_GetLatestRelease_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string) { 1664 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1665 if len(params) > 0 { 1666 _param0 = make([]string, len(c.methodInvocations)) 1667 for u, param := range params[0] { 1668 _param0[u] = param.(string) 1669 } 1670 _param1 = make([]string, len(c.methodInvocations)) 1671 for u, param := range params[1] { 1672 _param1[u] = param.(string) 1673 } 1674 } 1675 return 1676 } 1677 1678 func (verifier *VerifierMockGitProvider) GetProjects(_param0 string, _param1 string) *MockGitProvider_GetProjects_OngoingVerification { 1679 params := []pegomock.Param{_param0, _param1} 1680 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "GetProjects", params, verifier.timeout) 1681 return &MockGitProvider_GetProjects_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1682 } 1683 1684 type MockGitProvider_GetProjects_OngoingVerification struct { 1685 mock *MockGitProvider 1686 methodInvocations []pegomock.MethodInvocation 1687 } 1688 1689 func (c *MockGitProvider_GetProjects_OngoingVerification) GetCapturedArguments() (string, string) { 1690 _param0, _param1 := c.GetAllCapturedArguments() 1691 return _param0[len(_param0)-1], _param1[len(_param1)-1] 1692 } 1693 1694 func (c *MockGitProvider_GetProjects_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string) { 1695 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1696 if len(params) > 0 { 1697 _param0 = make([]string, len(c.methodInvocations)) 1698 for u, param := range params[0] { 1699 _param0[u] = param.(string) 1700 } 1701 _param1 = make([]string, len(c.methodInvocations)) 1702 for u, param := range params[1] { 1703 _param1[u] = param.(string) 1704 } 1705 } 1706 return 1707 } 1708 1709 func (verifier *VerifierMockGitProvider) GetPullRequest(_param0 string, _param1 *gits.GitRepository, _param2 int) *MockGitProvider_GetPullRequest_OngoingVerification { 1710 params := []pegomock.Param{_param0, _param1, _param2} 1711 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "GetPullRequest", params, verifier.timeout) 1712 return &MockGitProvider_GetPullRequest_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1713 } 1714 1715 type MockGitProvider_GetPullRequest_OngoingVerification struct { 1716 mock *MockGitProvider 1717 methodInvocations []pegomock.MethodInvocation 1718 } 1719 1720 func (c *MockGitProvider_GetPullRequest_OngoingVerification) GetCapturedArguments() (string, *gits.GitRepository, int) { 1721 _param0, _param1, _param2 := c.GetAllCapturedArguments() 1722 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1] 1723 } 1724 1725 func (c *MockGitProvider_GetPullRequest_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []*gits.GitRepository, _param2 []int) { 1726 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1727 if len(params) > 0 { 1728 _param0 = make([]string, len(c.methodInvocations)) 1729 for u, param := range params[0] { 1730 _param0[u] = param.(string) 1731 } 1732 _param1 = make([]*gits.GitRepository, len(c.methodInvocations)) 1733 for u, param := range params[1] { 1734 _param1[u] = param.(*gits.GitRepository) 1735 } 1736 _param2 = make([]int, len(c.methodInvocations)) 1737 for u, param := range params[2] { 1738 _param2[u] = param.(int) 1739 } 1740 } 1741 return 1742 } 1743 1744 func (verifier *VerifierMockGitProvider) GetPullRequestCommits(_param0 string, _param1 *gits.GitRepository, _param2 int) *MockGitProvider_GetPullRequestCommits_OngoingVerification { 1745 params := []pegomock.Param{_param0, _param1, _param2} 1746 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "GetPullRequestCommits", params, verifier.timeout) 1747 return &MockGitProvider_GetPullRequestCommits_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1748 } 1749 1750 type MockGitProvider_GetPullRequestCommits_OngoingVerification struct { 1751 mock *MockGitProvider 1752 methodInvocations []pegomock.MethodInvocation 1753 } 1754 1755 func (c *MockGitProvider_GetPullRequestCommits_OngoingVerification) GetCapturedArguments() (string, *gits.GitRepository, int) { 1756 _param0, _param1, _param2 := c.GetAllCapturedArguments() 1757 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1] 1758 } 1759 1760 func (c *MockGitProvider_GetPullRequestCommits_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []*gits.GitRepository, _param2 []int) { 1761 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1762 if len(params) > 0 { 1763 _param0 = make([]string, len(c.methodInvocations)) 1764 for u, param := range params[0] { 1765 _param0[u] = param.(string) 1766 } 1767 _param1 = make([]*gits.GitRepository, len(c.methodInvocations)) 1768 for u, param := range params[1] { 1769 _param1[u] = param.(*gits.GitRepository) 1770 } 1771 _param2 = make([]int, len(c.methodInvocations)) 1772 for u, param := range params[2] { 1773 _param2[u] = param.(int) 1774 } 1775 } 1776 return 1777 } 1778 1779 func (verifier *VerifierMockGitProvider) GetRelease(_param0 string, _param1 string, _param2 string) *MockGitProvider_GetRelease_OngoingVerification { 1780 params := []pegomock.Param{_param0, _param1, _param2} 1781 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "GetRelease", params, verifier.timeout) 1782 return &MockGitProvider_GetRelease_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1783 } 1784 1785 type MockGitProvider_GetRelease_OngoingVerification struct { 1786 mock *MockGitProvider 1787 methodInvocations []pegomock.MethodInvocation 1788 } 1789 1790 func (c *MockGitProvider_GetRelease_OngoingVerification) GetCapturedArguments() (string, string, string) { 1791 _param0, _param1, _param2 := c.GetAllCapturedArguments() 1792 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1] 1793 } 1794 1795 func (c *MockGitProvider_GetRelease_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []string) { 1796 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1797 if len(params) > 0 { 1798 _param0 = make([]string, len(c.methodInvocations)) 1799 for u, param := range params[0] { 1800 _param0[u] = param.(string) 1801 } 1802 _param1 = make([]string, len(c.methodInvocations)) 1803 for u, param := range params[1] { 1804 _param1[u] = param.(string) 1805 } 1806 _param2 = make([]string, len(c.methodInvocations)) 1807 for u, param := range params[2] { 1808 _param2[u] = param.(string) 1809 } 1810 } 1811 return 1812 } 1813 1814 func (verifier *VerifierMockGitProvider) GetRepository(_param0 string, _param1 string) *MockGitProvider_GetRepository_OngoingVerification { 1815 params := []pegomock.Param{_param0, _param1} 1816 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "GetRepository", params, verifier.timeout) 1817 return &MockGitProvider_GetRepository_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1818 } 1819 1820 type MockGitProvider_GetRepository_OngoingVerification struct { 1821 mock *MockGitProvider 1822 methodInvocations []pegomock.MethodInvocation 1823 } 1824 1825 func (c *MockGitProvider_GetRepository_OngoingVerification) GetCapturedArguments() (string, string) { 1826 _param0, _param1 := c.GetAllCapturedArguments() 1827 return _param0[len(_param0)-1], _param1[len(_param1)-1] 1828 } 1829 1830 func (c *MockGitProvider_GetRepository_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string) { 1831 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1832 if len(params) > 0 { 1833 _param0 = make([]string, len(c.methodInvocations)) 1834 for u, param := range params[0] { 1835 _param0[u] = param.(string) 1836 } 1837 _param1 = make([]string, len(c.methodInvocations)) 1838 for u, param := range params[1] { 1839 _param1[u] = param.(string) 1840 } 1841 } 1842 return 1843 } 1844 1845 func (verifier *VerifierMockGitProvider) HasIssues() *MockGitProvider_HasIssues_OngoingVerification { 1846 params := []pegomock.Param{} 1847 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "HasIssues", params, verifier.timeout) 1848 return &MockGitProvider_HasIssues_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1849 } 1850 1851 type MockGitProvider_HasIssues_OngoingVerification struct { 1852 mock *MockGitProvider 1853 methodInvocations []pegomock.MethodInvocation 1854 } 1855 1856 func (c *MockGitProvider_HasIssues_OngoingVerification) GetCapturedArguments() { 1857 } 1858 1859 func (c *MockGitProvider_HasIssues_OngoingVerification) GetAllCapturedArguments() { 1860 } 1861 1862 func (verifier *VerifierMockGitProvider) IsBitbucketCloud() *MockGitProvider_IsBitbucketCloud_OngoingVerification { 1863 params := []pegomock.Param{} 1864 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "IsBitbucketCloud", params, verifier.timeout) 1865 return &MockGitProvider_IsBitbucketCloud_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1866 } 1867 1868 type MockGitProvider_IsBitbucketCloud_OngoingVerification struct { 1869 mock *MockGitProvider 1870 methodInvocations []pegomock.MethodInvocation 1871 } 1872 1873 func (c *MockGitProvider_IsBitbucketCloud_OngoingVerification) GetCapturedArguments() { 1874 } 1875 1876 func (c *MockGitProvider_IsBitbucketCloud_OngoingVerification) GetAllCapturedArguments() { 1877 } 1878 1879 func (verifier *VerifierMockGitProvider) IsBitbucketServer() *MockGitProvider_IsBitbucketServer_OngoingVerification { 1880 params := []pegomock.Param{} 1881 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "IsBitbucketServer", params, verifier.timeout) 1882 return &MockGitProvider_IsBitbucketServer_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1883 } 1884 1885 type MockGitProvider_IsBitbucketServer_OngoingVerification struct { 1886 mock *MockGitProvider 1887 methodInvocations []pegomock.MethodInvocation 1888 } 1889 1890 func (c *MockGitProvider_IsBitbucketServer_OngoingVerification) GetCapturedArguments() { 1891 } 1892 1893 func (c *MockGitProvider_IsBitbucketServer_OngoingVerification) GetAllCapturedArguments() { 1894 } 1895 1896 func (verifier *VerifierMockGitProvider) IsGerrit() *MockGitProvider_IsGerrit_OngoingVerification { 1897 params := []pegomock.Param{} 1898 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "IsGerrit", params, verifier.timeout) 1899 return &MockGitProvider_IsGerrit_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1900 } 1901 1902 type MockGitProvider_IsGerrit_OngoingVerification struct { 1903 mock *MockGitProvider 1904 methodInvocations []pegomock.MethodInvocation 1905 } 1906 1907 func (c *MockGitProvider_IsGerrit_OngoingVerification) GetCapturedArguments() { 1908 } 1909 1910 func (c *MockGitProvider_IsGerrit_OngoingVerification) GetAllCapturedArguments() { 1911 } 1912 1913 func (verifier *VerifierMockGitProvider) IsGitHub() *MockGitProvider_IsGitHub_OngoingVerification { 1914 params := []pegomock.Param{} 1915 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "IsGitHub", params, verifier.timeout) 1916 return &MockGitProvider_IsGitHub_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1917 } 1918 1919 type MockGitProvider_IsGitHub_OngoingVerification struct { 1920 mock *MockGitProvider 1921 methodInvocations []pegomock.MethodInvocation 1922 } 1923 1924 func (c *MockGitProvider_IsGitHub_OngoingVerification) GetCapturedArguments() { 1925 } 1926 1927 func (c *MockGitProvider_IsGitHub_OngoingVerification) GetAllCapturedArguments() { 1928 } 1929 1930 func (verifier *VerifierMockGitProvider) IsGitea() *MockGitProvider_IsGitea_OngoingVerification { 1931 params := []pegomock.Param{} 1932 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "IsGitea", params, verifier.timeout) 1933 return &MockGitProvider_IsGitea_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1934 } 1935 1936 type MockGitProvider_IsGitea_OngoingVerification struct { 1937 mock *MockGitProvider 1938 methodInvocations []pegomock.MethodInvocation 1939 } 1940 1941 func (c *MockGitProvider_IsGitea_OngoingVerification) GetCapturedArguments() { 1942 } 1943 1944 func (c *MockGitProvider_IsGitea_OngoingVerification) GetAllCapturedArguments() { 1945 } 1946 1947 func (verifier *VerifierMockGitProvider) IsWikiEnabled(_param0 string, _param1 string) *MockGitProvider_IsWikiEnabled_OngoingVerification { 1948 params := []pegomock.Param{_param0, _param1} 1949 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "IsWikiEnabled", params, verifier.timeout) 1950 return &MockGitProvider_IsWikiEnabled_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1951 } 1952 1953 type MockGitProvider_IsWikiEnabled_OngoingVerification struct { 1954 mock *MockGitProvider 1955 methodInvocations []pegomock.MethodInvocation 1956 } 1957 1958 func (c *MockGitProvider_IsWikiEnabled_OngoingVerification) GetCapturedArguments() (string, string) { 1959 _param0, _param1 := c.GetAllCapturedArguments() 1960 return _param0[len(_param0)-1], _param1[len(_param1)-1] 1961 } 1962 1963 func (c *MockGitProvider_IsWikiEnabled_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string) { 1964 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1965 if len(params) > 0 { 1966 _param0 = make([]string, len(c.methodInvocations)) 1967 for u, param := range params[0] { 1968 _param0[u] = param.(string) 1969 } 1970 _param1 = make([]string, len(c.methodInvocations)) 1971 for u, param := range params[1] { 1972 _param1[u] = param.(string) 1973 } 1974 } 1975 return 1976 } 1977 1978 func (verifier *VerifierMockGitProvider) IssueURL(_param0 string, _param1 string, _param2 int, _param3 bool) *MockGitProvider_IssueURL_OngoingVerification { 1979 params := []pegomock.Param{_param0, _param1, _param2, _param3} 1980 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "IssueURL", params, verifier.timeout) 1981 return &MockGitProvider_IssueURL_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 1982 } 1983 1984 type MockGitProvider_IssueURL_OngoingVerification struct { 1985 mock *MockGitProvider 1986 methodInvocations []pegomock.MethodInvocation 1987 } 1988 1989 func (c *MockGitProvider_IssueURL_OngoingVerification) GetCapturedArguments() (string, string, int, bool) { 1990 _param0, _param1, _param2, _param3 := c.GetAllCapturedArguments() 1991 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1], _param3[len(_param3)-1] 1992 } 1993 1994 func (c *MockGitProvider_IssueURL_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []int, _param3 []bool) { 1995 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 1996 if len(params) > 0 { 1997 _param0 = make([]string, len(c.methodInvocations)) 1998 for u, param := range params[0] { 1999 _param0[u] = param.(string) 2000 } 2001 _param1 = make([]string, len(c.methodInvocations)) 2002 for u, param := range params[1] { 2003 _param1[u] = param.(string) 2004 } 2005 _param2 = make([]int, len(c.methodInvocations)) 2006 for u, param := range params[2] { 2007 _param2[u] = param.(int) 2008 } 2009 _param3 = make([]bool, len(c.methodInvocations)) 2010 for u, param := range params[3] { 2011 _param3[u] = param.(bool) 2012 } 2013 } 2014 return 2015 } 2016 2017 func (verifier *VerifierMockGitProvider) JenkinsWebHookPath(_param0 string, _param1 string) *MockGitProvider_JenkinsWebHookPath_OngoingVerification { 2018 params := []pegomock.Param{_param0, _param1} 2019 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "JenkinsWebHookPath", params, verifier.timeout) 2020 return &MockGitProvider_JenkinsWebHookPath_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2021 } 2022 2023 type MockGitProvider_JenkinsWebHookPath_OngoingVerification struct { 2024 mock *MockGitProvider 2025 methodInvocations []pegomock.MethodInvocation 2026 } 2027 2028 func (c *MockGitProvider_JenkinsWebHookPath_OngoingVerification) GetCapturedArguments() (string, string) { 2029 _param0, _param1 := c.GetAllCapturedArguments() 2030 return _param0[len(_param0)-1], _param1[len(_param1)-1] 2031 } 2032 2033 func (c *MockGitProvider_JenkinsWebHookPath_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string) { 2034 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2035 if len(params) > 0 { 2036 _param0 = make([]string, len(c.methodInvocations)) 2037 for u, param := range params[0] { 2038 _param0[u] = param.(string) 2039 } 2040 _param1 = make([]string, len(c.methodInvocations)) 2041 for u, param := range params[1] { 2042 _param1[u] = param.(string) 2043 } 2044 } 2045 return 2046 } 2047 2048 func (verifier *VerifierMockGitProvider) Kind() *MockGitProvider_Kind_OngoingVerification { 2049 params := []pegomock.Param{} 2050 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "Kind", params, verifier.timeout) 2051 return &MockGitProvider_Kind_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2052 } 2053 2054 type MockGitProvider_Kind_OngoingVerification struct { 2055 mock *MockGitProvider 2056 methodInvocations []pegomock.MethodInvocation 2057 } 2058 2059 func (c *MockGitProvider_Kind_OngoingVerification) GetCapturedArguments() { 2060 } 2061 2062 func (c *MockGitProvider_Kind_OngoingVerification) GetAllCapturedArguments() { 2063 } 2064 2065 func (verifier *VerifierMockGitProvider) Label() *MockGitProvider_Label_OngoingVerification { 2066 params := []pegomock.Param{} 2067 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "Label", params, verifier.timeout) 2068 return &MockGitProvider_Label_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2069 } 2070 2071 type MockGitProvider_Label_OngoingVerification struct { 2072 mock *MockGitProvider 2073 methodInvocations []pegomock.MethodInvocation 2074 } 2075 2076 func (c *MockGitProvider_Label_OngoingVerification) GetCapturedArguments() { 2077 } 2078 2079 func (c *MockGitProvider_Label_OngoingVerification) GetAllCapturedArguments() { 2080 } 2081 2082 func (verifier *VerifierMockGitProvider) ListCommitStatus(_param0 string, _param1 string, _param2 string) *MockGitProvider_ListCommitStatus_OngoingVerification { 2083 params := []pegomock.Param{_param0, _param1, _param2} 2084 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "ListCommitStatus", params, verifier.timeout) 2085 return &MockGitProvider_ListCommitStatus_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2086 } 2087 2088 type MockGitProvider_ListCommitStatus_OngoingVerification struct { 2089 mock *MockGitProvider 2090 methodInvocations []pegomock.MethodInvocation 2091 } 2092 2093 func (c *MockGitProvider_ListCommitStatus_OngoingVerification) GetCapturedArguments() (string, string, string) { 2094 _param0, _param1, _param2 := c.GetAllCapturedArguments() 2095 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1] 2096 } 2097 2098 func (c *MockGitProvider_ListCommitStatus_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []string) { 2099 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2100 if len(params) > 0 { 2101 _param0 = make([]string, len(c.methodInvocations)) 2102 for u, param := range params[0] { 2103 _param0[u] = param.(string) 2104 } 2105 _param1 = make([]string, len(c.methodInvocations)) 2106 for u, param := range params[1] { 2107 _param1[u] = param.(string) 2108 } 2109 _param2 = make([]string, len(c.methodInvocations)) 2110 for u, param := range params[2] { 2111 _param2[u] = param.(string) 2112 } 2113 } 2114 return 2115 } 2116 2117 func (verifier *VerifierMockGitProvider) ListCommits(_param0 string, _param1 string, _param2 *gits.ListCommitsArguments) *MockGitProvider_ListCommits_OngoingVerification { 2118 params := []pegomock.Param{_param0, _param1, _param2} 2119 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "ListCommits", params, verifier.timeout) 2120 return &MockGitProvider_ListCommits_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2121 } 2122 2123 type MockGitProvider_ListCommits_OngoingVerification struct { 2124 mock *MockGitProvider 2125 methodInvocations []pegomock.MethodInvocation 2126 } 2127 2128 func (c *MockGitProvider_ListCommits_OngoingVerification) GetCapturedArguments() (string, string, *gits.ListCommitsArguments) { 2129 _param0, _param1, _param2 := c.GetAllCapturedArguments() 2130 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1] 2131 } 2132 2133 func (c *MockGitProvider_ListCommits_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []*gits.ListCommitsArguments) { 2134 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2135 if len(params) > 0 { 2136 _param0 = make([]string, len(c.methodInvocations)) 2137 for u, param := range params[0] { 2138 _param0[u] = param.(string) 2139 } 2140 _param1 = make([]string, len(c.methodInvocations)) 2141 for u, param := range params[1] { 2142 _param1[u] = param.(string) 2143 } 2144 _param2 = make([]*gits.ListCommitsArguments, len(c.methodInvocations)) 2145 for u, param := range params[2] { 2146 _param2[u] = param.(*gits.ListCommitsArguments) 2147 } 2148 } 2149 return 2150 } 2151 2152 func (verifier *VerifierMockGitProvider) ListInvitations() *MockGitProvider_ListInvitations_OngoingVerification { 2153 params := []pegomock.Param{} 2154 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "ListInvitations", params, verifier.timeout) 2155 return &MockGitProvider_ListInvitations_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2156 } 2157 2158 type MockGitProvider_ListInvitations_OngoingVerification struct { 2159 mock *MockGitProvider 2160 methodInvocations []pegomock.MethodInvocation 2161 } 2162 2163 func (c *MockGitProvider_ListInvitations_OngoingVerification) GetCapturedArguments() { 2164 } 2165 2166 func (c *MockGitProvider_ListInvitations_OngoingVerification) GetAllCapturedArguments() { 2167 } 2168 2169 func (verifier *VerifierMockGitProvider) ListOpenPullRequests(_param0 string, _param1 string) *MockGitProvider_ListOpenPullRequests_OngoingVerification { 2170 params := []pegomock.Param{_param0, _param1} 2171 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "ListOpenPullRequests", params, verifier.timeout) 2172 return &MockGitProvider_ListOpenPullRequests_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2173 } 2174 2175 type MockGitProvider_ListOpenPullRequests_OngoingVerification struct { 2176 mock *MockGitProvider 2177 methodInvocations []pegomock.MethodInvocation 2178 } 2179 2180 func (c *MockGitProvider_ListOpenPullRequests_OngoingVerification) GetCapturedArguments() (string, string) { 2181 _param0, _param1 := c.GetAllCapturedArguments() 2182 return _param0[len(_param0)-1], _param1[len(_param1)-1] 2183 } 2184 2185 func (c *MockGitProvider_ListOpenPullRequests_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string) { 2186 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2187 if len(params) > 0 { 2188 _param0 = make([]string, len(c.methodInvocations)) 2189 for u, param := range params[0] { 2190 _param0[u] = param.(string) 2191 } 2192 _param1 = make([]string, len(c.methodInvocations)) 2193 for u, param := range params[1] { 2194 _param1[u] = param.(string) 2195 } 2196 } 2197 return 2198 } 2199 2200 func (verifier *VerifierMockGitProvider) ListOrganisations() *MockGitProvider_ListOrganisations_OngoingVerification { 2201 params := []pegomock.Param{} 2202 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "ListOrganisations", params, verifier.timeout) 2203 return &MockGitProvider_ListOrganisations_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2204 } 2205 2206 type MockGitProvider_ListOrganisations_OngoingVerification struct { 2207 mock *MockGitProvider 2208 methodInvocations []pegomock.MethodInvocation 2209 } 2210 2211 func (c *MockGitProvider_ListOrganisations_OngoingVerification) GetCapturedArguments() { 2212 } 2213 2214 func (c *MockGitProvider_ListOrganisations_OngoingVerification) GetAllCapturedArguments() { 2215 } 2216 2217 func (verifier *VerifierMockGitProvider) ListReleases(_param0 string, _param1 string) *MockGitProvider_ListReleases_OngoingVerification { 2218 params := []pegomock.Param{_param0, _param1} 2219 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "ListReleases", params, verifier.timeout) 2220 return &MockGitProvider_ListReleases_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2221 } 2222 2223 type MockGitProvider_ListReleases_OngoingVerification struct { 2224 mock *MockGitProvider 2225 methodInvocations []pegomock.MethodInvocation 2226 } 2227 2228 func (c *MockGitProvider_ListReleases_OngoingVerification) GetCapturedArguments() (string, string) { 2229 _param0, _param1 := c.GetAllCapturedArguments() 2230 return _param0[len(_param0)-1], _param1[len(_param1)-1] 2231 } 2232 2233 func (c *MockGitProvider_ListReleases_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string) { 2234 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2235 if len(params) > 0 { 2236 _param0 = make([]string, len(c.methodInvocations)) 2237 for u, param := range params[0] { 2238 _param0[u] = param.(string) 2239 } 2240 _param1 = make([]string, len(c.methodInvocations)) 2241 for u, param := range params[1] { 2242 _param1[u] = param.(string) 2243 } 2244 } 2245 return 2246 } 2247 2248 func (verifier *VerifierMockGitProvider) ListRepositories(_param0 string) *MockGitProvider_ListRepositories_OngoingVerification { 2249 params := []pegomock.Param{_param0} 2250 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "ListRepositories", params, verifier.timeout) 2251 return &MockGitProvider_ListRepositories_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2252 } 2253 2254 type MockGitProvider_ListRepositories_OngoingVerification struct { 2255 mock *MockGitProvider 2256 methodInvocations []pegomock.MethodInvocation 2257 } 2258 2259 func (c *MockGitProvider_ListRepositories_OngoingVerification) GetCapturedArguments() string { 2260 _param0 := c.GetAllCapturedArguments() 2261 return _param0[len(_param0)-1] 2262 } 2263 2264 func (c *MockGitProvider_ListRepositories_OngoingVerification) GetAllCapturedArguments() (_param0 []string) { 2265 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2266 if len(params) > 0 { 2267 _param0 = make([]string, len(c.methodInvocations)) 2268 for u, param := range params[0] { 2269 _param0[u] = param.(string) 2270 } 2271 } 2272 return 2273 } 2274 2275 func (verifier *VerifierMockGitProvider) ListWebHooks(_param0 string, _param1 string) *MockGitProvider_ListWebHooks_OngoingVerification { 2276 params := []pegomock.Param{_param0, _param1} 2277 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "ListWebHooks", params, verifier.timeout) 2278 return &MockGitProvider_ListWebHooks_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2279 } 2280 2281 type MockGitProvider_ListWebHooks_OngoingVerification struct { 2282 mock *MockGitProvider 2283 methodInvocations []pegomock.MethodInvocation 2284 } 2285 2286 func (c *MockGitProvider_ListWebHooks_OngoingVerification) GetCapturedArguments() (string, string) { 2287 _param0, _param1 := c.GetAllCapturedArguments() 2288 return _param0[len(_param0)-1], _param1[len(_param1)-1] 2289 } 2290 2291 func (c *MockGitProvider_ListWebHooks_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string) { 2292 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2293 if len(params) > 0 { 2294 _param0 = make([]string, len(c.methodInvocations)) 2295 for u, param := range params[0] { 2296 _param0[u] = param.(string) 2297 } 2298 _param1 = make([]string, len(c.methodInvocations)) 2299 for u, param := range params[1] { 2300 _param1[u] = param.(string) 2301 } 2302 } 2303 return 2304 } 2305 2306 func (verifier *VerifierMockGitProvider) MergePullRequest(_param0 *gits.GitPullRequest, _param1 string) *MockGitProvider_MergePullRequest_OngoingVerification { 2307 params := []pegomock.Param{_param0, _param1} 2308 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "MergePullRequest", params, verifier.timeout) 2309 return &MockGitProvider_MergePullRequest_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2310 } 2311 2312 type MockGitProvider_MergePullRequest_OngoingVerification struct { 2313 mock *MockGitProvider 2314 methodInvocations []pegomock.MethodInvocation 2315 } 2316 2317 func (c *MockGitProvider_MergePullRequest_OngoingVerification) GetCapturedArguments() (*gits.GitPullRequest, string) { 2318 _param0, _param1 := c.GetAllCapturedArguments() 2319 return _param0[len(_param0)-1], _param1[len(_param1)-1] 2320 } 2321 2322 func (c *MockGitProvider_MergePullRequest_OngoingVerification) GetAllCapturedArguments() (_param0 []*gits.GitPullRequest, _param1 []string) { 2323 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2324 if len(params) > 0 { 2325 _param0 = make([]*gits.GitPullRequest, len(c.methodInvocations)) 2326 for u, param := range params[0] { 2327 _param0[u] = param.(*gits.GitPullRequest) 2328 } 2329 _param1 = make([]string, len(c.methodInvocations)) 2330 for u, param := range params[1] { 2331 _param1[u] = param.(string) 2332 } 2333 } 2334 return 2335 } 2336 2337 func (verifier *VerifierMockGitProvider) PullRequestLastCommitStatus(_param0 *gits.GitPullRequest) *MockGitProvider_PullRequestLastCommitStatus_OngoingVerification { 2338 params := []pegomock.Param{_param0} 2339 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "PullRequestLastCommitStatus", params, verifier.timeout) 2340 return &MockGitProvider_PullRequestLastCommitStatus_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2341 } 2342 2343 type MockGitProvider_PullRequestLastCommitStatus_OngoingVerification struct { 2344 mock *MockGitProvider 2345 methodInvocations []pegomock.MethodInvocation 2346 } 2347 2348 func (c *MockGitProvider_PullRequestLastCommitStatus_OngoingVerification) GetCapturedArguments() *gits.GitPullRequest { 2349 _param0 := c.GetAllCapturedArguments() 2350 return _param0[len(_param0)-1] 2351 } 2352 2353 func (c *MockGitProvider_PullRequestLastCommitStatus_OngoingVerification) GetAllCapturedArguments() (_param0 []*gits.GitPullRequest) { 2354 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2355 if len(params) > 0 { 2356 _param0 = make([]*gits.GitPullRequest, len(c.methodInvocations)) 2357 for u, param := range params[0] { 2358 _param0[u] = param.(*gits.GitPullRequest) 2359 } 2360 } 2361 return 2362 } 2363 2364 func (verifier *VerifierMockGitProvider) RenameRepository(_param0 string, _param1 string, _param2 string) *MockGitProvider_RenameRepository_OngoingVerification { 2365 params := []pegomock.Param{_param0, _param1, _param2} 2366 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "RenameRepository", params, verifier.timeout) 2367 return &MockGitProvider_RenameRepository_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2368 } 2369 2370 type MockGitProvider_RenameRepository_OngoingVerification struct { 2371 mock *MockGitProvider 2372 methodInvocations []pegomock.MethodInvocation 2373 } 2374 2375 func (c *MockGitProvider_RenameRepository_OngoingVerification) GetCapturedArguments() (string, string, string) { 2376 _param0, _param1, _param2 := c.GetAllCapturedArguments() 2377 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1] 2378 } 2379 2380 func (c *MockGitProvider_RenameRepository_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []string) { 2381 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2382 if len(params) > 0 { 2383 _param0 = make([]string, len(c.methodInvocations)) 2384 for u, param := range params[0] { 2385 _param0[u] = param.(string) 2386 } 2387 _param1 = make([]string, len(c.methodInvocations)) 2388 for u, param := range params[1] { 2389 _param1[u] = param.(string) 2390 } 2391 _param2 = make([]string, len(c.methodInvocations)) 2392 for u, param := range params[2] { 2393 _param2[u] = param.(string) 2394 } 2395 } 2396 return 2397 } 2398 2399 func (verifier *VerifierMockGitProvider) SearchIssues(_param0 string, _param1 string, _param2 string) *MockGitProvider_SearchIssues_OngoingVerification { 2400 params := []pegomock.Param{_param0, _param1, _param2} 2401 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "SearchIssues", params, verifier.timeout) 2402 return &MockGitProvider_SearchIssues_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2403 } 2404 2405 type MockGitProvider_SearchIssues_OngoingVerification struct { 2406 mock *MockGitProvider 2407 methodInvocations []pegomock.MethodInvocation 2408 } 2409 2410 func (c *MockGitProvider_SearchIssues_OngoingVerification) GetCapturedArguments() (string, string, string) { 2411 _param0, _param1, _param2 := c.GetAllCapturedArguments() 2412 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1] 2413 } 2414 2415 func (c *MockGitProvider_SearchIssues_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []string) { 2416 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2417 if len(params) > 0 { 2418 _param0 = make([]string, len(c.methodInvocations)) 2419 for u, param := range params[0] { 2420 _param0[u] = param.(string) 2421 } 2422 _param1 = make([]string, len(c.methodInvocations)) 2423 for u, param := range params[1] { 2424 _param1[u] = param.(string) 2425 } 2426 _param2 = make([]string, len(c.methodInvocations)) 2427 for u, param := range params[2] { 2428 _param2[u] = param.(string) 2429 } 2430 } 2431 return 2432 } 2433 2434 func (verifier *VerifierMockGitProvider) SearchIssuesClosedSince(_param0 string, _param1 string, _param2 time.Time) *MockGitProvider_SearchIssuesClosedSince_OngoingVerification { 2435 params := []pegomock.Param{_param0, _param1, _param2} 2436 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "SearchIssuesClosedSince", params, verifier.timeout) 2437 return &MockGitProvider_SearchIssuesClosedSince_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2438 } 2439 2440 type MockGitProvider_SearchIssuesClosedSince_OngoingVerification struct { 2441 mock *MockGitProvider 2442 methodInvocations []pegomock.MethodInvocation 2443 } 2444 2445 func (c *MockGitProvider_SearchIssuesClosedSince_OngoingVerification) GetCapturedArguments() (string, string, time.Time) { 2446 _param0, _param1, _param2 := c.GetAllCapturedArguments() 2447 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1] 2448 } 2449 2450 func (c *MockGitProvider_SearchIssuesClosedSince_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []time.Time) { 2451 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2452 if len(params) > 0 { 2453 _param0 = make([]string, len(c.methodInvocations)) 2454 for u, param := range params[0] { 2455 _param0[u] = param.(string) 2456 } 2457 _param1 = make([]string, len(c.methodInvocations)) 2458 for u, param := range params[1] { 2459 _param1[u] = param.(string) 2460 } 2461 _param2 = make([]time.Time, len(c.methodInvocations)) 2462 for u, param := range params[2] { 2463 _param2[u] = param.(time.Time) 2464 } 2465 } 2466 return 2467 } 2468 2469 func (verifier *VerifierMockGitProvider) ServerURL() *MockGitProvider_ServerURL_OngoingVerification { 2470 params := []pegomock.Param{} 2471 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "ServerURL", params, verifier.timeout) 2472 return &MockGitProvider_ServerURL_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2473 } 2474 2475 type MockGitProvider_ServerURL_OngoingVerification struct { 2476 mock *MockGitProvider 2477 methodInvocations []pegomock.MethodInvocation 2478 } 2479 2480 func (c *MockGitProvider_ServerURL_OngoingVerification) GetCapturedArguments() { 2481 } 2482 2483 func (c *MockGitProvider_ServerURL_OngoingVerification) GetAllCapturedArguments() { 2484 } 2485 2486 func (verifier *VerifierMockGitProvider) ShouldForkForPullRequest(_param0 string, _param1 string, _param2 string) *MockGitProvider_ShouldForkForPullRequest_OngoingVerification { 2487 params := []pegomock.Param{_param0, _param1, _param2} 2488 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "ShouldForkForPullRequest", params, verifier.timeout) 2489 return &MockGitProvider_ShouldForkForPullRequest_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2490 } 2491 2492 type MockGitProvider_ShouldForkForPullRequest_OngoingVerification struct { 2493 mock *MockGitProvider 2494 methodInvocations []pegomock.MethodInvocation 2495 } 2496 2497 func (c *MockGitProvider_ShouldForkForPullRequest_OngoingVerification) GetCapturedArguments() (string, string, string) { 2498 _param0, _param1, _param2 := c.GetAllCapturedArguments() 2499 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1] 2500 } 2501 2502 func (c *MockGitProvider_ShouldForkForPullRequest_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []string) { 2503 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2504 if len(params) > 0 { 2505 _param0 = make([]string, len(c.methodInvocations)) 2506 for u, param := range params[0] { 2507 _param0[u] = param.(string) 2508 } 2509 _param1 = make([]string, len(c.methodInvocations)) 2510 for u, param := range params[1] { 2511 _param1[u] = param.(string) 2512 } 2513 _param2 = make([]string, len(c.methodInvocations)) 2514 for u, param := range params[2] { 2515 _param2[u] = param.(string) 2516 } 2517 } 2518 return 2519 } 2520 2521 func (verifier *VerifierMockGitProvider) UpdateCommitStatus(_param0 string, _param1 string, _param2 string, _param3 *gits.GitRepoStatus) *MockGitProvider_UpdateCommitStatus_OngoingVerification { 2522 params := []pegomock.Param{_param0, _param1, _param2, _param3} 2523 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "UpdateCommitStatus", params, verifier.timeout) 2524 return &MockGitProvider_UpdateCommitStatus_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2525 } 2526 2527 type MockGitProvider_UpdateCommitStatus_OngoingVerification struct { 2528 mock *MockGitProvider 2529 methodInvocations []pegomock.MethodInvocation 2530 } 2531 2532 func (c *MockGitProvider_UpdateCommitStatus_OngoingVerification) GetCapturedArguments() (string, string, string, *gits.GitRepoStatus) { 2533 _param0, _param1, _param2, _param3 := c.GetAllCapturedArguments() 2534 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1], _param3[len(_param3)-1] 2535 } 2536 2537 func (c *MockGitProvider_UpdateCommitStatus_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []string, _param3 []*gits.GitRepoStatus) { 2538 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2539 if len(params) > 0 { 2540 _param0 = make([]string, len(c.methodInvocations)) 2541 for u, param := range params[0] { 2542 _param0[u] = param.(string) 2543 } 2544 _param1 = make([]string, len(c.methodInvocations)) 2545 for u, param := range params[1] { 2546 _param1[u] = param.(string) 2547 } 2548 _param2 = make([]string, len(c.methodInvocations)) 2549 for u, param := range params[2] { 2550 _param2[u] = param.(string) 2551 } 2552 _param3 = make([]*gits.GitRepoStatus, len(c.methodInvocations)) 2553 for u, param := range params[3] { 2554 _param3[u] = param.(*gits.GitRepoStatus) 2555 } 2556 } 2557 return 2558 } 2559 2560 func (verifier *VerifierMockGitProvider) UpdatePullRequest(_param0 *gits.GitPullRequestArguments, _param1 int) *MockGitProvider_UpdatePullRequest_OngoingVerification { 2561 params := []pegomock.Param{_param0, _param1} 2562 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "UpdatePullRequest", params, verifier.timeout) 2563 return &MockGitProvider_UpdatePullRequest_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2564 } 2565 2566 type MockGitProvider_UpdatePullRequest_OngoingVerification struct { 2567 mock *MockGitProvider 2568 methodInvocations []pegomock.MethodInvocation 2569 } 2570 2571 func (c *MockGitProvider_UpdatePullRequest_OngoingVerification) GetCapturedArguments() (*gits.GitPullRequestArguments, int) { 2572 _param0, _param1 := c.GetAllCapturedArguments() 2573 return _param0[len(_param0)-1], _param1[len(_param1)-1] 2574 } 2575 2576 func (c *MockGitProvider_UpdatePullRequest_OngoingVerification) GetAllCapturedArguments() (_param0 []*gits.GitPullRequestArguments, _param1 []int) { 2577 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2578 if len(params) > 0 { 2579 _param0 = make([]*gits.GitPullRequestArguments, len(c.methodInvocations)) 2580 for u, param := range params[0] { 2581 _param0[u] = param.(*gits.GitPullRequestArguments) 2582 } 2583 _param1 = make([]int, len(c.methodInvocations)) 2584 for u, param := range params[1] { 2585 _param1[u] = param.(int) 2586 } 2587 } 2588 return 2589 } 2590 2591 func (verifier *VerifierMockGitProvider) UpdatePullRequestStatus(_param0 *gits.GitPullRequest) *MockGitProvider_UpdatePullRequestStatus_OngoingVerification { 2592 params := []pegomock.Param{_param0} 2593 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "UpdatePullRequestStatus", params, verifier.timeout) 2594 return &MockGitProvider_UpdatePullRequestStatus_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2595 } 2596 2597 type MockGitProvider_UpdatePullRequestStatus_OngoingVerification struct { 2598 mock *MockGitProvider 2599 methodInvocations []pegomock.MethodInvocation 2600 } 2601 2602 func (c *MockGitProvider_UpdatePullRequestStatus_OngoingVerification) GetCapturedArguments() *gits.GitPullRequest { 2603 _param0 := c.GetAllCapturedArguments() 2604 return _param0[len(_param0)-1] 2605 } 2606 2607 func (c *MockGitProvider_UpdatePullRequestStatus_OngoingVerification) GetAllCapturedArguments() (_param0 []*gits.GitPullRequest) { 2608 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2609 if len(params) > 0 { 2610 _param0 = make([]*gits.GitPullRequest, len(c.methodInvocations)) 2611 for u, param := range params[0] { 2612 _param0[u] = param.(*gits.GitPullRequest) 2613 } 2614 } 2615 return 2616 } 2617 2618 func (verifier *VerifierMockGitProvider) UpdateRelease(_param0 string, _param1 string, _param2 string, _param3 *gits.GitRelease) *MockGitProvider_UpdateRelease_OngoingVerification { 2619 params := []pegomock.Param{_param0, _param1, _param2, _param3} 2620 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "UpdateRelease", params, verifier.timeout) 2621 return &MockGitProvider_UpdateRelease_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2622 } 2623 2624 type MockGitProvider_UpdateRelease_OngoingVerification struct { 2625 mock *MockGitProvider 2626 methodInvocations []pegomock.MethodInvocation 2627 } 2628 2629 func (c *MockGitProvider_UpdateRelease_OngoingVerification) GetCapturedArguments() (string, string, string, *gits.GitRelease) { 2630 _param0, _param1, _param2, _param3 := c.GetAllCapturedArguments() 2631 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1], _param3[len(_param3)-1] 2632 } 2633 2634 func (c *MockGitProvider_UpdateRelease_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []string, _param3 []*gits.GitRelease) { 2635 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2636 if len(params) > 0 { 2637 _param0 = make([]string, len(c.methodInvocations)) 2638 for u, param := range params[0] { 2639 _param0[u] = param.(string) 2640 } 2641 _param1 = make([]string, len(c.methodInvocations)) 2642 for u, param := range params[1] { 2643 _param1[u] = param.(string) 2644 } 2645 _param2 = make([]string, len(c.methodInvocations)) 2646 for u, param := range params[2] { 2647 _param2[u] = param.(string) 2648 } 2649 _param3 = make([]*gits.GitRelease, len(c.methodInvocations)) 2650 for u, param := range params[3] { 2651 _param3[u] = param.(*gits.GitRelease) 2652 } 2653 } 2654 return 2655 } 2656 2657 func (verifier *VerifierMockGitProvider) UpdateReleaseStatus(_param0 string, _param1 string, _param2 string, _param3 *gits.GitRelease) *MockGitProvider_UpdateReleaseStatus_OngoingVerification { 2658 params := []pegomock.Param{_param0, _param1, _param2, _param3} 2659 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "UpdateReleaseStatus", params, verifier.timeout) 2660 return &MockGitProvider_UpdateReleaseStatus_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2661 } 2662 2663 type MockGitProvider_UpdateReleaseStatus_OngoingVerification struct { 2664 mock *MockGitProvider 2665 methodInvocations []pegomock.MethodInvocation 2666 } 2667 2668 func (c *MockGitProvider_UpdateReleaseStatus_OngoingVerification) GetCapturedArguments() (string, string, string, *gits.GitRelease) { 2669 _param0, _param1, _param2, _param3 := c.GetAllCapturedArguments() 2670 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1], _param3[len(_param3)-1] 2671 } 2672 2673 func (c *MockGitProvider_UpdateReleaseStatus_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []string, _param3 []*gits.GitRelease) { 2674 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2675 if len(params) > 0 { 2676 _param0 = make([]string, len(c.methodInvocations)) 2677 for u, param := range params[0] { 2678 _param0[u] = param.(string) 2679 } 2680 _param1 = make([]string, len(c.methodInvocations)) 2681 for u, param := range params[1] { 2682 _param1[u] = param.(string) 2683 } 2684 _param2 = make([]string, len(c.methodInvocations)) 2685 for u, param := range params[2] { 2686 _param2[u] = param.(string) 2687 } 2688 _param3 = make([]*gits.GitRelease, len(c.methodInvocations)) 2689 for u, param := range params[3] { 2690 _param3[u] = param.(*gits.GitRelease) 2691 } 2692 } 2693 return 2694 } 2695 2696 func (verifier *VerifierMockGitProvider) UpdateWebHook(_param0 *gits.GitWebHookArguments) *MockGitProvider_UpdateWebHook_OngoingVerification { 2697 params := []pegomock.Param{_param0} 2698 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "UpdateWebHook", params, verifier.timeout) 2699 return &MockGitProvider_UpdateWebHook_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2700 } 2701 2702 type MockGitProvider_UpdateWebHook_OngoingVerification struct { 2703 mock *MockGitProvider 2704 methodInvocations []pegomock.MethodInvocation 2705 } 2706 2707 func (c *MockGitProvider_UpdateWebHook_OngoingVerification) GetCapturedArguments() *gits.GitWebHookArguments { 2708 _param0 := c.GetAllCapturedArguments() 2709 return _param0[len(_param0)-1] 2710 } 2711 2712 func (c *MockGitProvider_UpdateWebHook_OngoingVerification) GetAllCapturedArguments() (_param0 []*gits.GitWebHookArguments) { 2713 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2714 if len(params) > 0 { 2715 _param0 = make([]*gits.GitWebHookArguments, len(c.methodInvocations)) 2716 for u, param := range params[0] { 2717 _param0[u] = param.(*gits.GitWebHookArguments) 2718 } 2719 } 2720 return 2721 } 2722 2723 func (verifier *VerifierMockGitProvider) UploadReleaseAsset(_param0 string, _param1 string, _param2 int64, _param3 string, _param4 *os.File) *MockGitProvider_UploadReleaseAsset_OngoingVerification { 2724 params := []pegomock.Param{_param0, _param1, _param2, _param3, _param4} 2725 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "UploadReleaseAsset", params, verifier.timeout) 2726 return &MockGitProvider_UploadReleaseAsset_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2727 } 2728 2729 type MockGitProvider_UploadReleaseAsset_OngoingVerification struct { 2730 mock *MockGitProvider 2731 methodInvocations []pegomock.MethodInvocation 2732 } 2733 2734 func (c *MockGitProvider_UploadReleaseAsset_OngoingVerification) GetCapturedArguments() (string, string, int64, string, *os.File) { 2735 _param0, _param1, _param2, _param3, _param4 := c.GetAllCapturedArguments() 2736 return _param0[len(_param0)-1], _param1[len(_param1)-1], _param2[len(_param2)-1], _param3[len(_param3)-1], _param4[len(_param4)-1] 2737 } 2738 2739 func (c *MockGitProvider_UploadReleaseAsset_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string, _param2 []int64, _param3 []string, _param4 []*os.File) { 2740 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2741 if len(params) > 0 { 2742 _param0 = make([]string, len(c.methodInvocations)) 2743 for u, param := range params[0] { 2744 _param0[u] = param.(string) 2745 } 2746 _param1 = make([]string, len(c.methodInvocations)) 2747 for u, param := range params[1] { 2748 _param1[u] = param.(string) 2749 } 2750 _param2 = make([]int64, len(c.methodInvocations)) 2751 for u, param := range params[2] { 2752 _param2[u] = param.(int64) 2753 } 2754 _param3 = make([]string, len(c.methodInvocations)) 2755 for u, param := range params[3] { 2756 _param3[u] = param.(string) 2757 } 2758 _param4 = make([]*os.File, len(c.methodInvocations)) 2759 for u, param := range params[4] { 2760 _param4[u] = param.(*os.File) 2761 } 2762 } 2763 return 2764 } 2765 2766 func (verifier *VerifierMockGitProvider) UserAuth() *MockGitProvider_UserAuth_OngoingVerification { 2767 params := []pegomock.Param{} 2768 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "UserAuth", params, verifier.timeout) 2769 return &MockGitProvider_UserAuth_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2770 } 2771 2772 type MockGitProvider_UserAuth_OngoingVerification struct { 2773 mock *MockGitProvider 2774 methodInvocations []pegomock.MethodInvocation 2775 } 2776 2777 func (c *MockGitProvider_UserAuth_OngoingVerification) GetCapturedArguments() { 2778 } 2779 2780 func (c *MockGitProvider_UserAuth_OngoingVerification) GetAllCapturedArguments() { 2781 } 2782 2783 func (verifier *VerifierMockGitProvider) UserInfo(_param0 string) *MockGitProvider_UserInfo_OngoingVerification { 2784 params := []pegomock.Param{_param0} 2785 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "UserInfo", params, verifier.timeout) 2786 return &MockGitProvider_UserInfo_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2787 } 2788 2789 type MockGitProvider_UserInfo_OngoingVerification struct { 2790 mock *MockGitProvider 2791 methodInvocations []pegomock.MethodInvocation 2792 } 2793 2794 func (c *MockGitProvider_UserInfo_OngoingVerification) GetCapturedArguments() string { 2795 _param0 := c.GetAllCapturedArguments() 2796 return _param0[len(_param0)-1] 2797 } 2798 2799 func (c *MockGitProvider_UserInfo_OngoingVerification) GetAllCapturedArguments() (_param0 []string) { 2800 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2801 if len(params) > 0 { 2802 _param0 = make([]string, len(c.methodInvocations)) 2803 for u, param := range params[0] { 2804 _param0[u] = param.(string) 2805 } 2806 } 2807 return 2808 } 2809 2810 func (verifier *VerifierMockGitProvider) ValidateRepositoryName(_param0 string, _param1 string) *MockGitProvider_ValidateRepositoryName_OngoingVerification { 2811 params := []pegomock.Param{_param0, _param1} 2812 methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "ValidateRepositoryName", params, verifier.timeout) 2813 return &MockGitProvider_ValidateRepositoryName_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations} 2814 } 2815 2816 type MockGitProvider_ValidateRepositoryName_OngoingVerification struct { 2817 mock *MockGitProvider 2818 methodInvocations []pegomock.MethodInvocation 2819 } 2820 2821 func (c *MockGitProvider_ValidateRepositoryName_OngoingVerification) GetCapturedArguments() (string, string) { 2822 _param0, _param1 := c.GetAllCapturedArguments() 2823 return _param0[len(_param0)-1], _param1[len(_param1)-1] 2824 } 2825 2826 func (c *MockGitProvider_ValidateRepositoryName_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []string) { 2827 params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations) 2828 if len(params) > 0 { 2829 _param0 = make([]string, len(c.methodInvocations)) 2830 for u, param := range params[0] { 2831 _param0[u] = param.(string) 2832 } 2833 _param1 = make([]string, len(c.methodInvocations)) 2834 for u, param := range params[1] { 2835 _param1[u] = param.(string) 2836 } 2837 } 2838 return 2839 }