github.com/akamai/AkamaiOPEN-edgegrid-golang/v8@v8.1.0/pkg/papi/mocks.go (about) 1 //revive:disable:exported 2 3 package papi 4 5 import ( 6 "context" 7 8 "github.com/stretchr/testify/mock" 9 ) 10 11 type Mock struct { 12 mock.Mock 13 } 14 15 var _ PAPI = &Mock{} 16 17 type ( 18 // GetGroupsFn is any function having the same signature as GetGroups 19 GetGroupsFn func(context.Context) (*GetGroupsResponse, error) 20 21 // GetCPCodesFn is any function having the same signature as GetCPCodes 22 GetCPCodesFn func(context.Context, GetCPCodesRequest) (*GetCPCodesResponse, error) 23 24 // CreateCPCodeFn is any function having the same signature as CreateCPCode 25 CreateCPCodeFn func(context.Context, CreateCPCodeRequest) (*CreateCPCodeResponse, error) 26 27 // UpdateCPCodeFn is any function having the same signature as UpdateCPCode 28 UpdateCPCodeFn func(context.Context, UpdateCPCodeRequest) (*CPCodeDetailResponse, error) 29 30 // GetPropertyFunc is any function having the same signature as GetProperty 31 GetPropertyFunc func(context.Context, GetPropertyRequest) (*GetPropertyResponse, error) 32 33 // GetPropertyVersionsFn is any function having the same signature as GetPropertyVersions 34 GetPropertyVersionsFn func(context.Context, GetPropertyVersionsRequest) (*GetPropertyVersionsResponse, error) 35 36 // GetPropertyVersionHostnamesFn is any function having the same signature as GetPropertyVersionHostnames 37 GetPropertyVersionHostnamesFn func(context.Context, GetPropertyVersionHostnamesRequest) (*GetPropertyVersionHostnamesResponse, error) 38 39 // GetRuleTreeFn is any function having the same signature as GetRuleTree 40 GetRuleTreeFn = func(context.Context, GetRuleTreeRequest) (*GetRuleTreeResponse, error) 41 42 // UpdateRuleTreeFn is any function having the same signature as UpdateRuleTree 43 UpdateRuleTreeFn func(context.Context, UpdateRulesRequest) (*UpdateRulesResponse, error) 44 ) 45 46 func (p *Mock) GetGroups(ctx context.Context) (*GetGroupsResponse, error) { 47 args := p.Called(ctx) 48 49 if args.Get(0) == nil { 50 return nil, args.Error(1) 51 } 52 53 return args.Get(0).(*GetGroupsResponse), args.Error(1) 54 } 55 56 func (p *Mock) GetContracts(ctx context.Context) (*GetContractsResponse, error) { 57 args := p.Called(ctx) 58 59 if args.Get(0) == nil { 60 return nil, args.Error(1) 61 } 62 63 return args.Get(0).(*GetContractsResponse), args.Error(1) 64 } 65 66 func (p *Mock) CreateActivation(ctx context.Context, r CreateActivationRequest) (*CreateActivationResponse, error) { 67 args := p.Called(ctx, r) 68 69 if args.Get(0) == nil { 70 return nil, args.Error(1) 71 } 72 73 return args.Get(0).(*CreateActivationResponse), args.Error(1) 74 } 75 76 func (p *Mock) GetActivations(ctx context.Context, r GetActivationsRequest) (*GetActivationsResponse, error) { 77 args := p.Called(ctx, r) 78 79 if args.Get(0) == nil { 80 return nil, args.Error(1) 81 } 82 83 return args.Get(0).(*GetActivationsResponse), args.Error(1) 84 } 85 86 func (p *Mock) GetActivation(ctx context.Context, r GetActivationRequest) (*GetActivationResponse, error) { 87 args := p.Called(ctx, r) 88 89 if args.Get(0) == nil { 90 return nil, args.Error(1) 91 } 92 93 return args.Get(0).(*GetActivationResponse), args.Error(1) 94 } 95 96 func (p *Mock) CancelActivation(ctx context.Context, r CancelActivationRequest) (*CancelActivationResponse, error) { 97 args := p.Called(ctx, r) 98 99 if args.Get(0) == nil { 100 return nil, args.Error(1) 101 } 102 103 return args.Get(0).(*CancelActivationResponse), args.Error(1) 104 } 105 106 func (p *Mock) GetCPCodes(ctx context.Context, r GetCPCodesRequest) (*GetCPCodesResponse, error) { 107 args := p.Called(ctx, r) 108 109 if args.Get(0) == nil { 110 return nil, args.Error(1) 111 } 112 113 return args.Get(0).(*GetCPCodesResponse), args.Error(1) 114 } 115 116 func (p *Mock) GetCPCode(ctx context.Context, r GetCPCodeRequest) (*GetCPCodesResponse, error) { 117 args := p.Called(ctx, r) 118 119 if args.Get(0) == nil { 120 return nil, args.Error(1) 121 } 122 123 return args.Get(0).(*GetCPCodesResponse), args.Error(1) 124 } 125 126 func (p *Mock) CreateCPCode(ctx context.Context, r CreateCPCodeRequest) (*CreateCPCodeResponse, error) { 127 args := p.Called(ctx, r) 128 129 if args.Get(0) == nil { 130 return nil, args.Error(1) 131 } 132 133 return args.Get(0).(*CreateCPCodeResponse), args.Error(1) 134 } 135 136 func (p *Mock) UpdateCPCode(ctx context.Context, r UpdateCPCodeRequest) (*CPCodeDetailResponse, error) { 137 args := p.Called(ctx, r) 138 if args.Get(0) == nil { 139 return nil, args.Error(1) 140 } 141 return args.Get(0).(*CPCodeDetailResponse), args.Error(1) 142 } 143 144 func (p *Mock) GetCPCodeDetail(ctx context.Context, r int) (*CPCodeDetailResponse, error) { 145 args := p.Called(ctx, r) 146 if args.Get(0) == nil { 147 return nil, args.Error(1) 148 } 149 return args.Get(0).(*CPCodeDetailResponse), args.Error(1) 150 } 151 152 func (p *Mock) GetProperties(ctx context.Context, r GetPropertiesRequest) (*GetPropertiesResponse, error) { 153 args := p.Called(ctx, r) 154 155 if args.Get(0) == nil { 156 return nil, args.Error(1) 157 } 158 159 return args.Get(0).(*GetPropertiesResponse), args.Error(1) 160 } 161 162 func (p *Mock) CreateProperty(ctx context.Context, r CreatePropertyRequest) (*CreatePropertyResponse, error) { 163 args := p.Called(ctx, r) 164 165 if args.Get(0) == nil { 166 return nil, args.Error(1) 167 } 168 169 return args.Get(0).(*CreatePropertyResponse), args.Error(1) 170 } 171 172 func (p *Mock) GetProperty(ctx context.Context, r GetPropertyRequest) (*GetPropertyResponse, error) { 173 args := p.Called(ctx, r) 174 175 if args.Get(0) == nil { 176 return nil, args.Error(1) 177 } 178 179 return args.Get(0).(*GetPropertyResponse), args.Error(1) 180 } 181 182 func (p *Mock) RemoveProperty(ctx context.Context, r RemovePropertyRequest) (*RemovePropertyResponse, error) { 183 args := p.Called(ctx, r) 184 185 if args.Get(0) == nil { 186 return nil, args.Error(1) 187 } 188 189 return args.Get(0).(*RemovePropertyResponse), args.Error(1) 190 } 191 192 func (p *Mock) GetPropertyVersions(ctx context.Context, r GetPropertyVersionsRequest) (*GetPropertyVersionsResponse, error) { 193 args := p.Called(ctx, r) 194 195 if args.Get(0) == nil { 196 return nil, args.Error(1) 197 } 198 199 return args.Get(0).(*GetPropertyVersionsResponse), args.Error(1) 200 } 201 202 func (p *Mock) GetPropertyVersion(ctx context.Context, r GetPropertyVersionRequest) (*GetPropertyVersionsResponse, error) { 203 args := p.Called(ctx, r) 204 205 if args.Get(0) == nil { 206 return nil, args.Error(1) 207 } 208 209 return args.Get(0).(*GetPropertyVersionsResponse), args.Error(1) 210 } 211 212 func (p *Mock) CreatePropertyVersion(ctx context.Context, r CreatePropertyVersionRequest) (*CreatePropertyVersionResponse, error) { 213 args := p.Called(ctx, r) 214 215 if args.Get(0) == nil { 216 return nil, args.Error(1) 217 } 218 219 return args.Get(0).(*CreatePropertyVersionResponse), args.Error(1) 220 } 221 222 func (p *Mock) GetLatestVersion(ctx context.Context, r GetLatestVersionRequest) (*GetPropertyVersionsResponse, error) { 223 args := p.Called(ctx, r) 224 225 if args.Get(0) == nil { 226 return nil, args.Error(1) 227 } 228 229 return args.Get(0).(*GetPropertyVersionsResponse), args.Error(1) 230 } 231 232 func (p *Mock) GetAvailableBehaviors(ctx context.Context, r GetAvailableBehaviorsRequest) (*GetBehaviorsResponse, error) { 233 args := p.Called(ctx, r) 234 235 if args.Get(0) == nil { 236 return nil, args.Error(1) 237 } 238 239 return args.Get(0).(*GetBehaviorsResponse), args.Error(1) 240 } 241 242 func (p *Mock) GetAvailableCriteria(ctx context.Context, r GetAvailableCriteriaRequest) (*GetCriteriaResponse, error) { 243 args := p.Called(ctx, r) 244 245 if args.Get(0) == nil { 246 return nil, args.Error(1) 247 } 248 249 return args.Get(0).(*GetCriteriaResponse), args.Error(1) 250 } 251 252 func (p *Mock) GetEdgeHostnames(ctx context.Context, r GetEdgeHostnamesRequest) (*GetEdgeHostnamesResponse, error) { 253 args := p.Called(ctx, r) 254 255 if args.Get(0) == nil { 256 return nil, args.Error(1) 257 } 258 259 return args.Get(0).(*GetEdgeHostnamesResponse), args.Error(1) 260 } 261 262 func (p *Mock) GetEdgeHostname(ctx context.Context, r GetEdgeHostnameRequest) (*GetEdgeHostnamesResponse, error) { 263 args := p.Called(ctx, r) 264 265 if args.Get(0) == nil { 266 return nil, args.Error(1) 267 } 268 269 return args.Get(0).(*GetEdgeHostnamesResponse), args.Error(1) 270 } 271 272 func (p *Mock) CreateEdgeHostname(ctx context.Context, r CreateEdgeHostnameRequest) (*CreateEdgeHostnameResponse, error) { 273 args := p.Called(ctx, r) 274 275 if args.Get(0) == nil { 276 return nil, args.Error(1) 277 } 278 279 return args.Get(0).(*CreateEdgeHostnameResponse), args.Error(1) 280 } 281 282 func (p *Mock) GetProducts(ctx context.Context, r GetProductsRequest) (*GetProductsResponse, error) { 283 args := p.Called(ctx, r) 284 285 if args.Get(0) == nil { 286 return nil, args.Error(1) 287 } 288 289 return args.Get(0).(*GetProductsResponse), args.Error(1) 290 } 291 292 func (p *Mock) SearchProperties(ctx context.Context, r SearchRequest) (*SearchResponse, error) { 293 args := p.Called(ctx, r) 294 295 if args.Get(0) == nil { 296 return nil, args.Error(1) 297 } 298 299 return args.Get(0).(*SearchResponse), args.Error(1) 300 } 301 302 func (p *Mock) GetPropertyVersionHostnames(ctx context.Context, r GetPropertyVersionHostnamesRequest) (*GetPropertyVersionHostnamesResponse, error) { 303 args := p.Called(ctx, r) 304 305 if args.Get(0) == nil { 306 return nil, args.Error(1) 307 } 308 309 return args.Get(0).(*GetPropertyVersionHostnamesResponse), args.Error(1) 310 } 311 312 func (p *Mock) UpdatePropertyVersionHostnames(ctx context.Context, r UpdatePropertyVersionHostnamesRequest) (*UpdatePropertyVersionHostnamesResponse, error) { 313 args := p.Called(ctx, r) 314 315 return args.Get(0).(*UpdatePropertyVersionHostnamesResponse), args.Error(1) 316 } 317 318 func (p *Mock) GetClientSettings(ctx context.Context) (*ClientSettingsBody, error) { 319 args := p.Called(ctx) 320 321 if args.Get(0) == nil { 322 return nil, args.Error(1) 323 } 324 325 return args.Get(0).(*ClientSettingsBody), args.Error(1) 326 } 327 328 func (p *Mock) UpdateClientSettings(ctx context.Context, r ClientSettingsBody) (*ClientSettingsBody, error) { 329 args := p.Called(ctx, r) 330 331 if args.Get(0) == nil { 332 return nil, args.Error(1) 333 } 334 335 return args.Get(0).(*ClientSettingsBody), args.Error(1) 336 } 337 338 func (p *Mock) GetRuleTree(ctx context.Context, r GetRuleTreeRequest) (*GetRuleTreeResponse, error) { 339 args := p.Called(ctx, r) 340 341 if args.Get(0) == nil { 342 return nil, args.Error(1) 343 } 344 345 return args.Get(0).(*GetRuleTreeResponse), args.Error(1) 346 } 347 348 func (p *Mock) UpdateRuleTree(ctx context.Context, r UpdateRulesRequest) (*UpdateRulesResponse, error) { 349 args := p.Called(ctx, r) 350 351 if args.Get(0) == nil { 352 return nil, args.Error(1) 353 } 354 355 return args.Get(0).(*UpdateRulesResponse), args.Error(1) 356 } 357 358 func (p *Mock) GetRuleFormats(ctx context.Context) (*GetRuleFormatsResponse, error) { 359 args := p.Called(ctx) 360 361 if args.Get(0) == nil { 362 return nil, args.Error(1) 363 } 364 365 return args.Get(0).(*GetRuleFormatsResponse), args.Error(1) 366 } 367 368 func (p *Mock) OnGetGroups(ctx interface{}, impl GetGroupsFn) *mock.Call { 369 call := p.On("GetGroups", ctx) 370 call.Run(func(CallArgs mock.Arguments) { 371 callCtx := CallArgs.Get(0).(context.Context) 372 373 call.Return(impl(callCtx)) 374 }) 375 376 return call 377 } 378 379 func (p *Mock) OnGetCPCodes(impl GetCPCodesFn, args ...interface{}) *mock.Call { 380 var call *mock.Call 381 382 runFn := func(callArgs mock.Arguments) { 383 ctx := callArgs.Get(0).(context.Context) 384 req := callArgs.Get(1).(GetCPCodesRequest) 385 386 call.Return(impl(ctx, req)) 387 } 388 389 if len(args) == 0 { 390 args = mock.Arguments{mock.Anything, mock.Anything} 391 } 392 393 call = p.On("GetCPCodes", args...).Run(runFn) 394 return call 395 } 396 397 func (p *Mock) OnCreateCPCode(impl CreateCPCodeFn, args ...interface{}) *mock.Call { 398 var call *mock.Call 399 400 runFn := func(args mock.Arguments) { 401 ctx := args.Get(0).(context.Context) 402 req := args.Get(1).(CreateCPCodeRequest) 403 404 call.Return(impl(ctx, req)) 405 } 406 407 if len(args) == 0 { 408 args = mock.Arguments{mock.Anything, mock.Anything} 409 } 410 411 call = p.On("CreateCPCode", args...).Run(runFn) 412 return call 413 } 414 415 func (p *Mock) OnUpdateCPCode(impl UpdateCPCodeFn, args ...interface{}) *mock.Call { 416 var call *mock.Call 417 418 runFn := func(callArgs mock.Arguments) { 419 ctx := callArgs.Get(0).(context.Context) 420 req := callArgs.Get(1).(UpdateCPCodeRequest) 421 422 call.Return(impl(ctx, req)) 423 } 424 425 if len(args) == 0 { 426 args = mock.Arguments{mock.Anything, mock.Anything} 427 } 428 429 call = p.On("UpdateCPCode", args...).Run(runFn) 430 return call 431 } 432 433 func (p *Mock) OnGetProperty(ctx, req interface{}, impl GetPropertyFunc) *mock.Call { 434 call := p.On("GetProperty", ctx, req) 435 call.Run(func(CallArgs mock.Arguments) { 436 callCtx := CallArgs.Get(0).(context.Context) 437 callReq := CallArgs.Get(1).(GetPropertyRequest) 438 439 call.Return(impl(callCtx, callReq)) 440 }) 441 442 return call 443 } 444 445 func (p *Mock) OnGetPropertyVersions(ctx, req interface{}, impl GetPropertyVersionsFn) *mock.Call { 446 call := p.On("GetPropertyVersions", ctx, req) 447 call.Run(func(CallArgs mock.Arguments) { 448 callCtx := CallArgs.Get(0).(context.Context) 449 callReq := CallArgs.Get(1).(GetPropertyVersionsRequest) 450 451 call.Return(impl(callCtx, callReq)) 452 }) 453 454 return call 455 } 456 457 func (p *Mock) OnGetPropertyVersionHostnames(ctx, req interface{}, impl GetPropertyVersionHostnamesFn) *mock.Call { 458 call := p.On("GetPropertyVersionHostnames", ctx, req) 459 call.Run(func(CallArgs mock.Arguments) { 460 callCtx := CallArgs.Get(0).(context.Context) 461 callReq := CallArgs.Get(1).(GetPropertyVersionHostnamesRequest) 462 463 call.Return(impl(callCtx, callReq)) 464 }) 465 466 return call 467 } 468 469 func (p *Mock) OnGetRuleTree(ctx, req interface{}, impl GetRuleTreeFn) *mock.Call { 470 call := p.On("GetRuleTree", ctx, req) 471 call.Run(func(CallArgs mock.Arguments) { 472 callCtx := CallArgs.Get(0).(context.Context) 473 callReq := CallArgs.Get(1).(GetRuleTreeRequest) 474 475 call.Return(impl(callCtx, callReq)) 476 }) 477 478 return call 479 } 480 481 func (p *Mock) OnUpdateRuleTree(ctx, req interface{}, impl UpdateRuleTreeFn) *mock.Call { 482 call := p.On("UpdateRuleTree", ctx, req) 483 call.Run(func(CallArgs mock.Arguments) { 484 callCtx := CallArgs.Get(0).(context.Context) 485 callReq := CallArgs.Get(1).(UpdateRulesRequest) 486 487 call.Return(impl(callCtx, callReq)) 488 }) 489 490 return call 491 } 492 493 func (p *Mock) ListIncludes(ctx context.Context, r ListIncludesRequest) (*ListIncludesResponse, error) { 494 args := p.Called(ctx, r) 495 496 if args.Get(0) == nil { 497 return nil, args.Error(1) 498 } 499 500 return args.Get(0).(*ListIncludesResponse), args.Error(1) 501 } 502 503 func (p *Mock) ListIncludeParents(ctx context.Context, r ListIncludeParentsRequest) (*ListIncludeParentsResponse, error) { 504 args := p.Called(ctx, r) 505 506 if args.Get(0) == nil { 507 return nil, args.Error(1) 508 } 509 510 return args.Get(0).(*ListIncludeParentsResponse), args.Error(1) 511 } 512 513 func (p *Mock) GetInclude(ctx context.Context, r GetIncludeRequest) (*GetIncludeResponse, error) { 514 args := p.Called(ctx, r) 515 516 if args.Get(0) == nil { 517 return nil, args.Error(1) 518 } 519 520 return args.Get(0).(*GetIncludeResponse), args.Error(1) 521 } 522 523 func (p *Mock) CreateInclude(ctx context.Context, r CreateIncludeRequest) (*CreateIncludeResponse, error) { 524 args := p.Called(ctx, r) 525 526 if args.Get(0) == nil { 527 return nil, args.Error(1) 528 } 529 530 return args.Get(0).(*CreateIncludeResponse), args.Error(1) 531 } 532 533 func (p *Mock) DeleteInclude(ctx context.Context, r DeleteIncludeRequest) (*DeleteIncludeResponse, error) { 534 args := p.Called(ctx, r) 535 536 if args.Get(0) == nil { 537 return nil, args.Error(1) 538 } 539 540 return args.Get(0).(*DeleteIncludeResponse), args.Error(1) 541 } 542 543 func (p *Mock) GetIncludeRuleTree(ctx context.Context, r GetIncludeRuleTreeRequest) (*GetIncludeRuleTreeResponse, error) { 544 args := p.Called(ctx, r) 545 546 if args.Get(0) == nil { 547 return nil, args.Error(1) 548 } 549 550 return args.Get(0).(*GetIncludeRuleTreeResponse), args.Error(1) 551 } 552 553 func (p *Mock) UpdateIncludeRuleTree(ctx context.Context, r UpdateIncludeRuleTreeRequest) (*UpdateIncludeRuleTreeResponse, error) { 554 args := p.Called(ctx, r) 555 556 if args.Get(0) == nil { 557 return nil, args.Error(1) 558 } 559 560 return args.Get(0).(*UpdateIncludeRuleTreeResponse), args.Error(1) 561 } 562 563 func (p *Mock) ActivateInclude(ctx context.Context, r ActivateIncludeRequest) (*ActivationIncludeResponse, error) { 564 args := p.Called(ctx, r) 565 566 if args.Get(0) == nil { 567 return nil, args.Error(1) 568 } 569 570 return args.Get(0).(*ActivationIncludeResponse), args.Error(1) 571 } 572 573 func (p *Mock) DeactivateInclude(ctx context.Context, r DeactivateIncludeRequest) (*DeactivationIncludeResponse, error) { 574 args := p.Called(ctx, r) 575 576 if args.Get(0) == nil { 577 return nil, args.Error(1) 578 } 579 580 return args.Get(0).(*DeactivationIncludeResponse), args.Error(1) 581 } 582 583 func (p *Mock) GetIncludeActivation(ctx context.Context, r GetIncludeActivationRequest) (*GetIncludeActivationResponse, error) { 584 args := p.Called(ctx, r) 585 586 if args.Get(0) == nil { 587 return nil, args.Error(1) 588 } 589 590 return args.Get(0).(*GetIncludeActivationResponse), args.Error(1) 591 } 592 593 func (p *Mock) ListIncludeActivations(ctx context.Context, r ListIncludeActivationsRequest) (*ListIncludeActivationsResponse, error) { 594 args := p.Called(ctx, r) 595 596 if args.Get(0) == nil { 597 return nil, args.Error(1) 598 } 599 600 return args.Get(0).(*ListIncludeActivationsResponse), args.Error(1) 601 } 602 603 func (p *Mock) CreateIncludeVersion(ctx context.Context, r CreateIncludeVersionRequest) (*CreateIncludeVersionResponse, error) { 604 args := p.Called(ctx, r) 605 606 if args.Get(0) == nil { 607 return nil, args.Error(1) 608 } 609 610 return args.Get(0).(*CreateIncludeVersionResponse), args.Error(1) 611 } 612 613 func (p *Mock) GetIncludeVersion(ctx context.Context, r GetIncludeVersionRequest) (*GetIncludeVersionResponse, error) { 614 args := p.Called(ctx, r) 615 616 if args.Get(0) == nil { 617 return nil, args.Error(1) 618 } 619 620 return args.Get(0).(*GetIncludeVersionResponse), args.Error(1) 621 } 622 623 func (p *Mock) ListIncludeVersions(ctx context.Context, r ListIncludeVersionsRequest) (*ListIncludeVersionsResponse, error) { 624 args := p.Called(ctx, r) 625 626 if args.Get(0) == nil { 627 return nil, args.Error(1) 628 } 629 630 return args.Get(0).(*ListIncludeVersionsResponse), args.Error(1) 631 } 632 633 func (p *Mock) ListIncludeVersionAvailableCriteria(ctx context.Context, r ListAvailableCriteriaRequest) (*AvailableCriteriaResponse, error) { 634 args := p.Called(ctx, r) 635 636 if args.Get(0) == nil { 637 return nil, args.Error(1) 638 } 639 640 return args.Get(0).(*AvailableCriteriaResponse), args.Error(1) 641 } 642 643 func (p *Mock) ListIncludeVersionAvailableBehaviors(ctx context.Context, r ListAvailableBehaviorsRequest) (*AvailableBehaviorsResponse, error) { 644 args := p.Called(ctx, r) 645 646 if args.Get(0) == nil { 647 return nil, args.Error(1) 648 } 649 650 return args.Get(0).(*AvailableBehaviorsResponse), args.Error(1) 651 } 652 653 func (p *Mock) ListAvailableIncludes(ctx context.Context, r ListAvailableIncludesRequest) (*ListAvailableIncludesResponse, error) { 654 args := p.Called(ctx, r) 655 656 if args.Get(0) == nil { 657 return nil, args.Error(1) 658 } 659 660 return args.Get(0).(*ListAvailableIncludesResponse), args.Error(1) 661 } 662 663 func (p *Mock) ListReferencedIncludes(ctx context.Context, r ListReferencedIncludesRequest) (*ListReferencedIncludesResponse, error) { 664 args := p.Called(ctx, r) 665 666 if args.Get(0) == nil { 667 return nil, args.Error(1) 668 } 669 670 return args.Get(0).(*ListReferencedIncludesResponse), args.Error(1) 671 } 672 673 func (p *Mock) CancelIncludeActivation(ctx context.Context, r CancelIncludeActivationRequest) (*CancelIncludeActivationResponse, error) { 674 args := p.Called(ctx, r) 675 676 if args.Get(0) == nil { 677 return nil, args.Error(1) 678 } 679 680 return args.Get(0).(*CancelIncludeActivationResponse), args.Error(1) 681 }