| // Mocks generated by Mockito 5.4.6 from annotations |
| // in cocoon_service/test/src/utilities/mocks.dart. |
| // Do not manually edit this file. |
| |
| // ignore_for_file: no_leading_underscores_for_library_prefixes |
| import 'dart:async' as _i13; |
| import 'dart:convert' as _i12; |
| import 'dart:io' as _i11; |
| import 'dart:typed_data' as _i27; |
| |
| import 'package:buildbucket/buildbucket_pb.dart' as _i6; |
| import 'package:cocoon_common/rpc_model.dart' as _i19; |
| import 'package:cocoon_service/cocoon_service.dart' as _i17; |
| import 'package:cocoon_service/src/foundation/github_checks_util.dart' as _i10; |
| import 'package:cocoon_service/src/model/ci_yaml/ci_yaml.dart' as _i41; |
| import 'package:cocoon_service/src/model/ci_yaml/target.dart' as _i28; |
| import 'package:cocoon_service/src/model/commit_ref.dart' as _i32; |
| import 'package:cocoon_service/src/model/firestore/ci_staging.dart' as _i40; |
| import 'package:cocoon_service/src/model/firestore/commit.dart' as _i38; |
| import 'package:cocoon_service/src/model/firestore/task.dart' as _i33; |
| import 'package:cocoon_service/src/model/github/checks.dart' as _i31; |
| import 'package:cocoon_service/src/model/github/workflow_job.dart' as _i39; |
| import 'package:cocoon_service/src/service/big_query.dart' as _i18; |
| import 'package:cocoon_service/src/service/commit_service.dart' as _i21; |
| import 'package:cocoon_service/src/service/config.dart' as _i2; |
| import 'package:cocoon_service/src/service/discord_service.dart' as _i25; |
| import 'package:cocoon_service/src/service/flags/dynamic_config.dart' as _i24; |
| import 'package:cocoon_service/src/service/github_service.dart' as _i9; |
| import 'package:cocoon_service/src/service/luci_build_service/build_tags.dart' |
| as _i36; |
| import 'package:cocoon_service/src/service/luci_build_service/cipd_version.dart' |
| as _i23; |
| import 'package:cocoon_service/src/service/luci_build_service/engine_artifacts.dart' |
| as _i29; |
| import 'package:cocoon_service/src/service/luci_build_service/pending_task.dart' |
| as _i35; |
| import 'package:cocoon_service/src/service/luci_build_service/user_data.dart' |
| as _i30; |
| import 'package:cocoon_service/src/service/scheduler/process_check_run_result.dart' |
| as _i42; |
| import 'package:fixnum/fixnum.dart' as _i34; |
| import 'package:github/github.dart' as _i7; |
| import 'package:github/hooks.dart' as _i22; |
| import 'package:googleapis/bigquery/v2.dart' as _i4; |
| import 'package:googleapis/firestore/v1.dart' as _i14; |
| import 'package:googleapis/shared.dart' as _i15; |
| import 'package:googleapis_auth/auth_io.dart' as _i3; |
| import 'package:graphql/client.dart' as _i8; |
| import 'package:http/http.dart' as _i5; |
| import 'package:mockito/mockito.dart' as _i1; |
| import 'package:mockito/src/dummies.dart' as _i20; |
| import 'package:neat_cache/neat_cache.dart' as _i16; |
| import 'package:process/src/interface/process_manager.dart' as _i37; |
| |
| import '../../service/cache_service_test.dart' as _i26; |
| |
| // ignore_for_file: type=lint |
| // ignore_for_file: avoid_redundant_argument_values |
| // ignore_for_file: avoid_setters_without_getters |
| // ignore_for_file: comment_references |
| // ignore_for_file: deprecated_member_use |
| // ignore_for_file: deprecated_member_use_from_same_package |
| // ignore_for_file: implementation_imports |
| // ignore_for_file: invalid_use_of_visible_for_testing_member |
| // ignore_for_file: must_be_immutable |
| // ignore_for_file: prefer_const_constructors |
| // ignore_for_file: unnecessary_parenthesis |
| // ignore_for_file: camel_case_types |
| // ignore_for_file: subtype_of_sealed_class |
| // ignore_for_file: invalid_use_of_internal_member |
| |
| class _FakeConfig_0 extends _i1.SmartFake implements _i2.Config { |
| _FakeConfig_0(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeAccessToken_1 extends _i1.SmartFake implements _i3.AccessToken { |
| _FakeAccessToken_1(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeTabledataResource_2 extends _i1.SmartFake |
| implements _i4.TabledataResource { |
| _FakeTabledataResource_2(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeClient_3 extends _i1.SmartFake implements _i5.Client { |
| _FakeClient_3(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeBuild_4 extends _i1.SmartFake implements _i6.Build { |
| _FakeBuild_4(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeSearchBuildsResponse_5 extends _i1.SmartFake |
| implements _i6.SearchBuildsResponse { |
| _FakeSearchBuildsResponse_5(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeBatchResponse_6 extends _i1.SmartFake implements _i6.BatchResponse { |
| _FakeBatchResponse_6(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeListBuildersResponse_7 extends _i1.SmartFake |
| implements _i6.ListBuildersResponse { |
| _FakeListBuildersResponse_7(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeDuration_8 extends _i1.SmartFake implements Duration { |
| _FakeDuration_8(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeGitHub_9 extends _i1.SmartFake implements _i7.GitHub { |
| _FakeGitHub_9(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeGraphQLClient_10 extends _i1.SmartFake implements _i8.GraphQLClient { |
| _FakeGraphQLClient_10(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeGithubService_11 extends _i1.SmartFake implements _i9.GithubService { |
| _FakeGithubService_11(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeIssue_12 extends _i1.SmartFake implements _i7.Issue { |
| _FakeIssue_12(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeIssueComment_13 extends _i1.SmartFake implements _i7.IssueComment { |
| _FakeIssueComment_13(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeIssueLabel_14 extends _i1.SmartFake implements _i7.IssueLabel { |
| _FakeIssueLabel_14(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeMilestone_15 extends _i1.SmartFake implements _i7.Milestone { |
| _FakeMilestone_15(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeGithubChecksUtil_16 extends _i1.SmartFake |
| implements _i10.GithubChecksUtil { |
| _FakeGithubChecksUtil_16(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeCheckRunConclusion_17 extends _i1.SmartFake |
| implements _i7.CheckRunConclusion { |
| _FakeCheckRunConclusion_17(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeCheckRunStatus_18 extends _i1.SmartFake |
| implements _i7.CheckRunStatus { |
| _FakeCheckRunStatus_18(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeCheckSuite_19 extends _i1.SmartFake implements _i7.CheckSuite { |
| _FakeCheckSuite_19(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeCheckRun_20 extends _i1.SmartFake implements _i7.CheckRun { |
| _FakeCheckRun_20(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakePullRequest_21 extends _i1.SmartFake implements _i7.PullRequest { |
| _FakePullRequest_21(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeGitReference_22 extends _i1.SmartFake implements _i7.GitReference { |
| _FakeGitReference_22(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeRateLimit_23 extends _i1.SmartFake implements _i7.RateLimit { |
| _FakeRateLimit_23(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeUser_24 extends _i1.SmartFake implements _i7.User { |
| _FakeUser_24(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeGitBlob_25 extends _i1.SmartFake implements _i7.GitBlob { |
| _FakeGitBlob_25(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeGitCommit_26 extends _i1.SmartFake implements _i7.GitCommit { |
| _FakeGitCommit_26(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeGitTag_27 extends _i1.SmartFake implements _i7.GitTag { |
| _FakeGitTag_27(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeGitTree_28 extends _i1.SmartFake implements _i7.GitTree { |
| _FakeGitTree_28(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeDefaultPolicies_29 extends _i1.SmartFake |
| implements _i8.DefaultPolicies { |
| _FakeDefaultPolicies_29(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeLink_30 extends _i1.SmartFake implements _i8.Link { |
| _FakeLink_30(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeGraphQLCache_31 extends _i1.SmartFake implements _i8.GraphQLCache { |
| _FakeGraphQLCache_31(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeQueryManager_32 extends _i1.SmartFake implements _i8.QueryManager { |
| _FakeQueryManager_32(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeObservableQuery_33<TParsed1> extends _i1.SmartFake |
| implements _i8.ObservableQuery<TParsed1> { |
| _FakeObservableQuery_33(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeQueryResult_34<TParsed1 extends Object?> extends _i1.SmartFake |
| implements _i8.QueryResult<TParsed1> { |
| _FakeQueryResult_34(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeHttpClientRequest_35 extends _i1.SmartFake |
| implements _i11.HttpClientRequest { |
| _FakeHttpClientRequest_35(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeUri_36 extends _i1.SmartFake implements Uri { |
| _FakeUri_36(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeHttpHeaders_37 extends _i1.SmartFake implements _i11.HttpHeaders { |
| _FakeHttpHeaders_37(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeHttpClientResponse_38 extends _i1.SmartFake |
| implements _i11.HttpClientResponse { |
| _FakeHttpClientResponse_38(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeEncoding_39 extends _i1.SmartFake implements _i12.Encoding { |
| _FakeEncoding_39(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeSocket_40 extends _i1.SmartFake implements _i11.Socket { |
| _FakeSocket_40(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeStreamSubscription_41<T> extends _i1.SmartFake |
| implements _i13.StreamSubscription<T> { |
| _FakeStreamSubscription_41(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeFuture_42<T> extends _i1.SmartFake implements _i13.Future<T> { |
| _FakeFuture_42(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeProcess_43 extends _i1.SmartFake implements _i11.Process { |
| _FakeProcess_43(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeTableDataInsertAllResponse_44 extends _i1.SmartFake |
| implements _i4.TableDataInsertAllResponse { |
| _FakeTableDataInsertAllResponse_44(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeTableDataList_45 extends _i1.SmartFake implements _i4.TableDataList { |
| _FakeTableDataList_45(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeCurrentUser_46 extends _i1.SmartFake implements _i7.CurrentUser { |
| _FakeCurrentUser_46(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakePublicKey_47 extends _i1.SmartFake implements _i7.PublicKey { |
| _FakePublicKey_47(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeBatchWriteResponse_48 extends _i1.SmartFake |
| implements _i14.BatchWriteResponse { |
| _FakeBatchWriteResponse_48(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeBeginTransactionResponse_49 extends _i1.SmartFake |
| implements _i14.BeginTransactionResponse { |
| _FakeBeginTransactionResponse_49(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeCommitResponse_50 extends _i1.SmartFake |
| implements _i14.CommitResponse { |
| _FakeCommitResponse_50(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeDocument_51 extends _i1.SmartFake implements _i14.Document { |
| _FakeDocument_51(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _Fake$Empty_52 extends _i1.SmartFake implements _i15.$Empty { |
| _Fake$Empty_52(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeListDocumentsResponse_53 extends _i1.SmartFake |
| implements _i14.ListDocumentsResponse { |
| _FakeListDocumentsResponse_53(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeListCollectionIdsResponse_54 extends _i1.SmartFake |
| implements _i14.ListCollectionIdsResponse { |
| _FakeListCollectionIdsResponse_54(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakePartitionQueryResponse_55 extends _i1.SmartFake |
| implements _i14.PartitionQueryResponse { |
| _FakePartitionQueryResponse_55(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeWriteResponse_56 extends _i1.SmartFake |
| implements _i14.WriteResponse { |
| _FakeWriteResponse_56(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeRepositorySlug_57 extends _i1.SmartFake |
| implements _i7.RepositorySlug { |
| _FakeRepositorySlug_57(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeEntry_58<T> extends _i1.SmartFake implements _i16.Entry<T> { |
| _FakeEntry_58(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| class _FakeCache_59<T> extends _i1.SmartFake implements _i16.Cache<T> { |
| _FakeCache_59(Object parent, Invocation parentInvocation) |
| : super(parent, parentInvocation); |
| } |
| |
| /// A class which mocks [AccessTokenService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockAccessTokenService extends _i1.Mock |
| implements _i17.AccessTokenService { |
| MockAccessTokenService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i2.Config get config => |
| (super.noSuchMethod( |
| Invocation.getter(#config), |
| returnValue: _FakeConfig_0(this, Invocation.getter(#config)), |
| ) |
| as _i2.Config); |
| |
| @override |
| _i13.Future<_i3.AccessToken> createAccessToken() => |
| (super.noSuchMethod( |
| Invocation.method(#createAccessToken, []), |
| returnValue: _i13.Future<_i3.AccessToken>.value( |
| _FakeAccessToken_1( |
| this, |
| Invocation.method(#createAccessToken, []), |
| ), |
| ), |
| ) |
| as _i13.Future<_i3.AccessToken>); |
| } |
| |
| /// A class which mocks [BigQueryService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockBigQueryService extends _i1.Mock implements _i18.BigQueryService { |
| MockBigQueryService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i4.TabledataResource get tabledata => |
| (super.noSuchMethod( |
| Invocation.getter(#tabledata), |
| returnValue: _FakeTabledataResource_2( |
| this, |
| Invocation.getter(#tabledata), |
| ), |
| ) |
| as _i4.TabledataResource); |
| |
| @override |
| _i13.Future<List<_i18.BuilderStatistic>> listBuilderStatistic( |
| String? projectId, { |
| int? limit = 100, |
| String? bucket = 'prod', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listBuilderStatistic, |
| [projectId], |
| {#limit: limit, #bucket: bucket}, |
| ), |
| returnValue: _i13.Future<List<_i18.BuilderStatistic>>.value( |
| <_i18.BuilderStatistic>[], |
| ), |
| ) |
| as _i13.Future<List<_i18.BuilderStatistic>>); |
| |
| @override |
| _i13.Future<List<_i18.BuilderRecord>> listRecentBuildRecordsForBuilder( |
| String? projectId, { |
| String? builder, |
| int? limit, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listRecentBuildRecordsForBuilder, |
| [projectId], |
| {#builder: builder, #limit: limit}, |
| ), |
| returnValue: _i13.Future<List<_i18.BuilderRecord>>.value( |
| <_i18.BuilderRecord>[], |
| ), |
| ) |
| as _i13.Future<List<_i18.BuilderRecord>>); |
| } |
| |
| /// A class which mocks [BranchService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockBranchService extends _i1.Mock implements _i17.BranchService { |
| MockBranchService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i13.Future<void> branchFlutterRecipes(String? branch, String? engineSha) => |
| (super.noSuchMethod( |
| Invocation.method(#branchFlutterRecipes, [branch, engineSha]), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<List<_i19.Branch>> getReleaseBranches({ |
| required _i7.RepositorySlug? slug, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#getReleaseBranches, [], {#slug: slug}), |
| returnValue: _i13.Future<List<_i19.Branch>>.value(<_i19.Branch>[]), |
| ) |
| as _i13.Future<List<_i19.Branch>>); |
| } |
| |
| /// A class which mocks [BuildBucketClient]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| // ignore: must_be_immutable |
| class MockBuildBucketClient extends _i1.Mock implements _i17.BuildBucketClient { |
| MockBuildBucketClient() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| String get buildBucketBuildUri => |
| (super.noSuchMethod( |
| Invocation.getter(#buildBucketBuildUri), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#buildBucketBuildUri), |
| ), |
| ) |
| as String); |
| |
| @override |
| String get buildBucketBuilderUri => |
| (super.noSuchMethod( |
| Invocation.getter(#buildBucketBuilderUri), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#buildBucketBuilderUri), |
| ), |
| ) |
| as String); |
| |
| @override |
| _i5.Client get httpClient => |
| (super.noSuchMethod( |
| Invocation.getter(#httpClient), |
| returnValue: _FakeClient_3(this, Invocation.getter(#httpClient)), |
| ) |
| as _i5.Client); |
| |
| @override |
| _i13.Future<_i6.Build> scheduleBuild( |
| _i6.ScheduleBuildRequest? request, { |
| String? buildBucketUri = |
| 'https://cr-buildbucket.appspot.com/prpc/buildbucket.v2.Builds', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #scheduleBuild, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| returnValue: _i13.Future<_i6.Build>.value( |
| _FakeBuild_4( |
| this, |
| Invocation.method( |
| #scheduleBuild, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i6.Build>); |
| |
| @override |
| _i13.Future<_i6.SearchBuildsResponse> searchBuilds( |
| _i6.SearchBuildsRequest? request, { |
| String? buildBucketUri = |
| 'https://cr-buildbucket.appspot.com/prpc/buildbucket.v2.Builds', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #searchBuilds, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| returnValue: _i13.Future<_i6.SearchBuildsResponse>.value( |
| _FakeSearchBuildsResponse_5( |
| this, |
| Invocation.method( |
| #searchBuilds, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i6.SearchBuildsResponse>); |
| |
| @override |
| _i13.Future<_i6.BatchResponse> batch( |
| _i6.BatchRequest? request, { |
| String? buildBucketUri = |
| 'https://cr-buildbucket.appspot.com/prpc/buildbucket.v2.Builds', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #batch, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| returnValue: _i13.Future<_i6.BatchResponse>.value( |
| _FakeBatchResponse_6( |
| this, |
| Invocation.method( |
| #batch, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i6.BatchResponse>); |
| |
| @override |
| _i13.Future<_i6.Build> cancelBuild( |
| _i6.CancelBuildRequest? request, { |
| String? buildBucketUri = |
| 'https://cr-buildbucket.appspot.com/prpc/buildbucket.v2.Builds', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #cancelBuild, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| returnValue: _i13.Future<_i6.Build>.value( |
| _FakeBuild_4( |
| this, |
| Invocation.method( |
| #cancelBuild, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i6.Build>); |
| |
| @override |
| _i13.Future<_i6.Build> getBuild( |
| _i6.GetBuildRequest? request, { |
| String? buildBucketUri = |
| 'https://cr-buildbucket.appspot.com/prpc/buildbucket.v2.Builds', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getBuild, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| returnValue: _i13.Future<_i6.Build>.value( |
| _FakeBuild_4( |
| this, |
| Invocation.method( |
| #getBuild, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i6.Build>); |
| |
| @override |
| _i13.Future<_i6.ListBuildersResponse> listBuilders( |
| _i6.ListBuildersRequest? request, { |
| String? buildBucketUri = |
| 'https://cr-buildbucket.appspot.com/prpc/buildbucket.v2.Builders', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listBuilders, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| returnValue: _i13.Future<_i6.ListBuildersResponse>.value( |
| _FakeListBuildersResponse_7( |
| this, |
| Invocation.method( |
| #listBuilders, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i6.ListBuildersResponse>); |
| |
| @override |
| void close() => super.noSuchMethod( |
| Invocation.method(#close, []), |
| returnValueForMissingStub: null, |
| ); |
| } |
| |
| /// A class which mocks [CommitService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockCommitService extends _i1.Mock implements _i21.CommitService { |
| MockCommitService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i13.Future<void> handleCreateGithubRequest(_i22.CreateEvent? createEvent) => |
| (super.noSuchMethod( |
| Invocation.method(#handleCreateGithubRequest, [createEvent]), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<void> handlePushGithubRequest(Map<String, Object?>? pushEvent) => |
| (super.noSuchMethod( |
| Invocation.method(#handlePushGithubRequest, [pushEvent]), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| } |
| |
| /// A class which mocks [Config]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockConfig extends _i1.Mock implements _i2.Config { |
| MockConfig() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| Set<_i7.RepositorySlug> get supportedRepos => |
| (super.noSuchMethod( |
| Invocation.getter(#supportedRepos), |
| returnValue: <_i7.RepositorySlug>{}, |
| ) |
| as Set<_i7.RepositorySlug>); |
| |
| @override |
| Set<_i7.RepositorySlug> get postsubmitSupportedRepos => |
| (super.noSuchMethod( |
| Invocation.getter(#postsubmitSupportedRepos), |
| returnValue: <_i7.RepositorySlug>{}, |
| ) |
| as Set<_i7.RepositorySlug>); |
| |
| @override |
| String get autosubmitBot => |
| (super.noSuchMethod( |
| Invocation.getter(#autosubmitBot), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#autosubmitBot), |
| ), |
| ) |
| as String); |
| |
| @override |
| _i13.Future<String> get githubPrivateKey => |
| (super.noSuchMethod( |
| Invocation.getter(#githubPrivateKey), |
| returnValue: _i13.Future<String>.value( |
| _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#githubPrivateKey), |
| ), |
| ), |
| ) |
| as _i13.Future<String>); |
| |
| @override |
| _i13.Future<String> get githubPublicKey => |
| (super.noSuchMethod( |
| Invocation.getter(#githubPublicKey), |
| returnValue: _i13.Future<String>.value( |
| _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#githubPublicKey), |
| ), |
| ), |
| ) |
| as _i13.Future<String>); |
| |
| @override |
| _i13.Future<String> get githubAppId => |
| (super.noSuchMethod( |
| Invocation.getter(#githubAppId), |
| returnValue: _i13.Future<String>.value( |
| _i20.dummyValue<String>(this, Invocation.getter(#githubAppId)), |
| ), |
| ) |
| as _i13.Future<String>); |
| |
| @override |
| _i13.Future<Map<String, dynamic>> get githubAppInstallations => |
| (super.noSuchMethod( |
| Invocation.getter(#githubAppInstallations), |
| returnValue: _i13.Future<Map<String, dynamic>>.value( |
| <String, dynamic>{}, |
| ), |
| ) |
| as _i13.Future<Map<String, dynamic>>); |
| |
| @override |
| _i23.CipdVersion get defaultRecipeBundleRef => |
| (super.noSuchMethod( |
| Invocation.getter(#defaultRecipeBundleRef), |
| returnValue: _i20.dummyValue<_i23.CipdVersion>( |
| this, |
| Invocation.getter(#defaultRecipeBundleRef), |
| ), |
| ) |
| as _i23.CipdVersion); |
| |
| @override |
| List<String> get releaseBranches => |
| (super.noSuchMethod( |
| Invocation.getter(#releaseBranches), |
| returnValue: <String>[], |
| ) |
| as List<String>); |
| |
| @override |
| String get releaseCandidateBranchPath => |
| (super.noSuchMethod( |
| Invocation.getter(#releaseCandidateBranchPath), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#releaseCandidateBranchPath), |
| ), |
| ) |
| as String); |
| |
| @override |
| int get schedulingShardSize => |
| (super.noSuchMethod( |
| Invocation.getter(#schedulingShardSize), |
| returnValue: 0, |
| ) |
| as int); |
| |
| @override |
| int get batchSize => |
| (super.noSuchMethod(Invocation.getter(#batchSize), returnValue: 0) |
| as int); |
| |
| @override |
| int get backfillerTargetLimit => |
| (super.noSuchMethod( |
| Invocation.getter(#backfillerTargetLimit), |
| returnValue: 0, |
| ) |
| as int); |
| |
| @override |
| int get issueAndPRLimit => |
| (super.noSuchMethod(Invocation.getter(#issueAndPRLimit), returnValue: 0) |
| as int); |
| |
| @override |
| _i13.Future<List<String>> get releaseAccounts => |
| (super.noSuchMethod( |
| Invocation.getter(#releaseAccounts), |
| returnValue: _i13.Future<List<String>>.value(<String>[]), |
| ) |
| as _i13.Future<List<String>>); |
| |
| @override |
| _i13.Future<String> get oauthClientId => |
| (super.noSuchMethod( |
| Invocation.getter(#oauthClientId), |
| returnValue: _i13.Future<String>.value( |
| _i20.dummyValue<String>(this, Invocation.getter(#oauthClientId)), |
| ), |
| ) |
| as _i13.Future<String>); |
| |
| @override |
| _i13.Future<String> get frobWebhookKey => |
| (super.noSuchMethod( |
| Invocation.getter(#frobWebhookKey), |
| returnValue: _i13.Future<String>.value( |
| _i20.dummyValue<String>(this, Invocation.getter(#frobWebhookKey)), |
| ), |
| ) |
| as _i13.Future<String>); |
| |
| @override |
| _i13.Future<String> get githubOAuthToken => |
| (super.noSuchMethod( |
| Invocation.getter(#githubOAuthToken), |
| returnValue: _i13.Future<String>.value( |
| _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#githubOAuthToken), |
| ), |
| ), |
| ) |
| as _i13.Future<String>); |
| |
| @override |
| _i13.Future<String> get discordTreeStatusWebhookUrl => |
| (super.noSuchMethod( |
| Invocation.getter(#discordTreeStatusWebhookUrl), |
| returnValue: _i13.Future<String>.value( |
| _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#discordTreeStatusWebhookUrl), |
| ), |
| ), |
| ) |
| as _i13.Future<String>); |
| |
| @override |
| String get wrongBaseBranchPullRequestMessage => |
| (super.noSuchMethod( |
| Invocation.getter(#wrongBaseBranchPullRequestMessage), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#wrongBaseBranchPullRequestMessage), |
| ), |
| ) |
| as String); |
| |
| @override |
| String get releaseBranchPullRequestMessage => |
| (super.noSuchMethod( |
| Invocation.getter(#releaseBranchPullRequestMessage), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#releaseBranchPullRequestMessage), |
| ), |
| ) |
| as String); |
| |
| @override |
| _i13.Future<String> get webhookKey => |
| (super.noSuchMethod( |
| Invocation.getter(#webhookKey), |
| returnValue: _i13.Future<String>.value( |
| _i20.dummyValue<String>(this, Invocation.getter(#webhookKey)), |
| ), |
| ) |
| as _i13.Future<String>); |
| |
| @override |
| String get mergeConflictPullRequestMessage => |
| (super.noSuchMethod( |
| Invocation.getter(#mergeConflictPullRequestMessage), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#mergeConflictPullRequestMessage), |
| ), |
| ) |
| as String); |
| |
| @override |
| String get missingTestsPullRequestMessage => |
| (super.noSuchMethod( |
| Invocation.getter(#missingTestsPullRequestMessage), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#missingTestsPullRequestMessage), |
| ), |
| ) |
| as String); |
| |
| @override |
| String get flutterGoldPending => |
| (super.noSuchMethod( |
| Invocation.getter(#flutterGoldPending), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#flutterGoldPending), |
| ), |
| ) |
| as String); |
| |
| @override |
| String get flutterGoldSuccess => |
| (super.noSuchMethod( |
| Invocation.getter(#flutterGoldSuccess), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#flutterGoldSuccess), |
| ), |
| ) |
| as String); |
| |
| @override |
| String get flutterGoldChanges => |
| (super.noSuchMethod( |
| Invocation.getter(#flutterGoldChanges), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#flutterGoldChanges), |
| ), |
| ) |
| as String); |
| |
| @override |
| String get flutterGoldStalePR => |
| (super.noSuchMethod( |
| Invocation.getter(#flutterGoldStalePR), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#flutterGoldStalePR), |
| ), |
| ) |
| as String); |
| |
| @override |
| String get flutterGoldDraftChange => |
| (super.noSuchMethod( |
| Invocation.getter(#flutterGoldDraftChange), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#flutterGoldDraftChange), |
| ), |
| ) |
| as String); |
| |
| @override |
| int get maxFilesChangedForSkippingEnginePhase => |
| (super.noSuchMethod( |
| Invocation.getter(#maxFilesChangedForSkippingEnginePhase), |
| returnValue: 0, |
| ) |
| as int); |
| |
| @override |
| int get maxLuciTaskRetries => |
| (super.noSuchMethod( |
| Invocation.getter(#maxLuciTaskRetries), |
| returnValue: 0, |
| ) |
| as int); |
| |
| @override |
| int get commitNumber => |
| (super.noSuchMethod(Invocation.getter(#commitNumber), returnValue: 0) |
| as int); |
| |
| @override |
| Duration get githubRequestDelay => |
| (super.noSuchMethod( |
| Invocation.getter(#githubRequestDelay), |
| returnValue: _FakeDuration_8( |
| this, |
| Invocation.getter(#githubRequestDelay), |
| ), |
| ) |
| as Duration); |
| |
| @override |
| String get flutterTreeStatusRed => |
| (super.noSuchMethod( |
| Invocation.getter(#flutterTreeStatusRed), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#flutterTreeStatusRed), |
| ), |
| ) |
| as String); |
| |
| @override |
| String get flutterTreeStatusEmergency => |
| (super.noSuchMethod( |
| Invocation.getter(#flutterTreeStatusEmergency), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#flutterTreeStatusEmergency), |
| ), |
| ) |
| as String); |
| |
| @override |
| Set<String> get rollerAccounts => |
| (super.noSuchMethod( |
| Invocation.getter(#rollerAccounts), |
| returnValue: <String>{}, |
| ) |
| as Set<String>); |
| |
| @override |
| _i24.DynamicConfig get flags => |
| (super.noSuchMethod( |
| Invocation.getter(#flags), |
| returnValue: _i20.dummyValue<_i24.DynamicConfig>( |
| this, |
| Invocation.getter(#flags), |
| ), |
| ) |
| as _i24.DynamicConfig); |
| |
| @override |
| String wrongHeadBranchPullRequestMessage(String? branch) => |
| (super.noSuchMethod( |
| Invocation.method(#wrongHeadBranchPullRequestMessage, [branch]), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.method(#wrongHeadBranchPullRequestMessage, [branch]), |
| ), |
| ) |
| as String); |
| |
| @override |
| String flutterGoldInitialAlert(String? url) => |
| (super.noSuchMethod( |
| Invocation.method(#flutterGoldInitialAlert, [url]), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.method(#flutterGoldInitialAlert, [url]), |
| ), |
| ) |
| as String); |
| |
| @override |
| String flutterGoldFollowUpAlert(String? url) => |
| (super.noSuchMethod( |
| Invocation.method(#flutterGoldFollowUpAlert, [url]), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.method(#flutterGoldFollowUpAlert, [url]), |
| ), |
| ) |
| as String); |
| |
| @override |
| String flutterGoldAlertConstant(_i7.RepositorySlug? slug) => |
| (super.noSuchMethod( |
| Invocation.method(#flutterGoldAlertConstant, [slug]), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.method(#flutterGoldAlertConstant, [slug]), |
| ), |
| ) |
| as String); |
| |
| @override |
| String flutterGoldCommentID(_i7.PullRequest? pr) => |
| (super.noSuchMethod( |
| Invocation.method(#flutterGoldCommentID, [pr]), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.method(#flutterGoldCommentID, [pr]), |
| ), |
| ) |
| as String); |
| |
| @override |
| _i13.Future<String> generateGithubToken(_i7.RepositorySlug? slug) => |
| (super.noSuchMethod( |
| Invocation.method(#generateGithubToken, [slug]), |
| returnValue: _i13.Future<String>.value( |
| _i20.dummyValue<String>( |
| this, |
| Invocation.method(#generateGithubToken, [slug]), |
| ), |
| ), |
| ) |
| as _i13.Future<String>); |
| |
| @override |
| _i13.Future<_i7.GitHub> createGitHubClient({ |
| _i7.PullRequest? pullRequest, |
| _i7.RepositorySlug? slug, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#createGitHubClient, [], { |
| #pullRequest: pullRequest, |
| #slug: slug, |
| }), |
| returnValue: _i13.Future<_i7.GitHub>.value( |
| _FakeGitHub_9( |
| this, |
| Invocation.method(#createGitHubClient, [], { |
| #pullRequest: pullRequest, |
| #slug: slug, |
| }), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.GitHub>); |
| |
| @override |
| _i7.GitHub createGitHubClientWithToken(String? token) => |
| (super.noSuchMethod( |
| Invocation.method(#createGitHubClientWithToken, [token]), |
| returnValue: _FakeGitHub_9( |
| this, |
| Invocation.method(#createGitHubClientWithToken, [token]), |
| ), |
| ) |
| as _i7.GitHub); |
| |
| @override |
| _i13.Future<_i8.GraphQLClient> createGitHubGraphQLClient() => |
| (super.noSuchMethod( |
| Invocation.method(#createGitHubGraphQLClient, []), |
| returnValue: _i13.Future<_i8.GraphQLClient>.value( |
| _FakeGraphQLClient_10( |
| this, |
| Invocation.method(#createGitHubGraphQLClient, []), |
| ), |
| ), |
| ) |
| as _i13.Future<_i8.GraphQLClient>); |
| |
| @override |
| _i13.Future<_i9.GithubService> createDefaultGitHubService() => |
| (super.noSuchMethod( |
| Invocation.method(#createDefaultGitHubService, []), |
| returnValue: _i13.Future<_i9.GithubService>.value( |
| _FakeGithubService_11( |
| this, |
| Invocation.method(#createDefaultGitHubService, []), |
| ), |
| ), |
| ) |
| as _i13.Future<_i9.GithubService>); |
| |
| @override |
| _i13.Future<_i9.GithubService> createGithubService( |
| _i7.RepositorySlug? slug, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#createGithubService, [slug]), |
| returnValue: _i13.Future<_i9.GithubService>.value( |
| _FakeGithubService_11( |
| this, |
| Invocation.method(#createGithubService, [slug]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i9.GithubService>); |
| |
| @override |
| _i9.GithubService createGithubServiceWithToken(String? token) => |
| (super.noSuchMethod( |
| Invocation.method(#createGithubServiceWithToken, [token]), |
| returnValue: _FakeGithubService_11( |
| this, |
| Invocation.method(#createGithubServiceWithToken, [token]), |
| ), |
| ) |
| as _i9.GithubService); |
| } |
| |
| /// A class which mocks [DiscordService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockDiscordService extends _i1.Mock implements _i25.DiscordService { |
| MockDiscordService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i13.Future<_i25.DiscordStatus> postTreeStatusMessage(String? message) => |
| (super.noSuchMethod( |
| Invocation.method(#postTreeStatusMessage, [message]), |
| returnValue: _i13.Future<_i25.DiscordStatus>.value( |
| _i25.DiscordStatus.ok, |
| ), |
| ) |
| as _i13.Future<_i25.DiscordStatus>); |
| } |
| |
| /// A class which mocks [FakeEntry]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockFakeEntry extends _i1.Mock implements _i26.FakeEntry { |
| MockFakeEntry() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i27.Uint8List get value => |
| (super.noSuchMethod( |
| Invocation.getter(#value), |
| returnValue: _i27.Uint8List(0), |
| ) |
| as _i27.Uint8List); |
| |
| @override |
| set value(_i27.Uint8List? value) => super.noSuchMethod( |
| Invocation.setter(#value, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i13.Future<_i27.Uint8List> get([ |
| _i13.Future<_i27.Uint8List?> Function()? create, |
| Duration? ttl, |
| ]) => |
| (super.noSuchMethod( |
| Invocation.method(#get, [create, ttl]), |
| returnValue: _i13.Future<_i27.Uint8List>.value(_i27.Uint8List(0)), |
| ) |
| as _i13.Future<_i27.Uint8List>); |
| |
| @override |
| _i13.Future<void> purge({int? retries = 0}) => |
| (super.noSuchMethod( |
| Invocation.method(#purge, [], {#retries: retries}), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<_i27.Uint8List?> set(_i27.Uint8List? value, [Duration? ttl]) => |
| (super.noSuchMethod( |
| Invocation.method(#set, [value, ttl]), |
| returnValue: _i13.Future<_i27.Uint8List?>.value(), |
| ) |
| as _i13.Future<_i27.Uint8List?>); |
| } |
| |
| /// A class which mocks [IssuesService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockIssuesService extends _i1.Mock implements _i7.IssuesService { |
| MockIssuesService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i7.GitHub get github => |
| (super.noSuchMethod( |
| Invocation.getter(#github), |
| returnValue: _FakeGitHub_9(this, Invocation.getter(#github)), |
| ) |
| as _i7.GitHub); |
| |
| @override |
| _i13.Stream<_i7.Issue> listAll({ |
| int? milestoneNumber, |
| String? state, |
| String? direction, |
| String? sort, |
| DateTime? since, |
| int? perPage, |
| List<String>? labels, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#listAll, [], { |
| #milestoneNumber: milestoneNumber, |
| #state: state, |
| #direction: direction, |
| #sort: sort, |
| #since: since, |
| #perPage: perPage, |
| #labels: labels, |
| }), |
| returnValue: _i13.Stream<_i7.Issue>.empty(), |
| ) |
| as _i13.Stream<_i7.Issue>); |
| |
| @override |
| _i13.Stream<_i7.Issue> listByUser({ |
| int? milestoneNumber, |
| String? state, |
| String? direction, |
| String? sort, |
| DateTime? since, |
| int? perPage, |
| List<String>? labels, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#listByUser, [], { |
| #milestoneNumber: milestoneNumber, |
| #state: state, |
| #direction: direction, |
| #sort: sort, |
| #since: since, |
| #perPage: perPage, |
| #labels: labels, |
| }), |
| returnValue: _i13.Stream<_i7.Issue>.empty(), |
| ) |
| as _i13.Stream<_i7.Issue>); |
| |
| @override |
| _i13.Stream<_i7.Issue> listByOrg( |
| String? org, { |
| int? milestoneNumber, |
| String? state, |
| String? direction, |
| String? sort, |
| DateTime? since, |
| int? perPage, |
| List<String>? labels, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listByOrg, |
| [org], |
| { |
| #milestoneNumber: milestoneNumber, |
| #state: state, |
| #direction: direction, |
| #sort: sort, |
| #since: since, |
| #perPage: perPage, |
| #labels: labels, |
| }, |
| ), |
| returnValue: _i13.Stream<_i7.Issue>.empty(), |
| ) |
| as _i13.Stream<_i7.Issue>); |
| |
| @override |
| _i13.Stream<_i7.Issue> listByRepo( |
| _i7.RepositorySlug? slug, { |
| int? milestoneNumber, |
| String? state, |
| String? direction, |
| String? sort, |
| DateTime? since, |
| int? perPage, |
| List<String>? labels, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listByRepo, |
| [slug], |
| { |
| #milestoneNumber: milestoneNumber, |
| #state: state, |
| #direction: direction, |
| #sort: sort, |
| #since: since, |
| #perPage: perPage, |
| #labels: labels, |
| }, |
| ), |
| returnValue: _i13.Stream<_i7.Issue>.empty(), |
| ) |
| as _i13.Stream<_i7.Issue>); |
| |
| @override |
| _i13.Stream<_i7.Reaction> listReactions( |
| _i7.RepositorySlug? slug, |
| int? issueNumber, { |
| _i7.ReactionType? content, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listReactions, |
| [slug, issueNumber], |
| {#content: content}, |
| ), |
| returnValue: _i13.Stream<_i7.Reaction>.empty(), |
| ) |
| as _i13.Stream<_i7.Reaction>); |
| |
| @override |
| _i13.Future<_i7.Issue> edit( |
| _i7.RepositorySlug? slug, |
| int? issueNumber, |
| _i7.IssueRequest? issue, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#edit, [slug, issueNumber, issue]), |
| returnValue: _i13.Future<_i7.Issue>.value( |
| _FakeIssue_12( |
| this, |
| Invocation.method(#edit, [slug, issueNumber, issue]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.Issue>); |
| |
| @override |
| _i13.Future<_i7.Issue> get(_i7.RepositorySlug? slug, int? issueNumber) => |
| (super.noSuchMethod( |
| Invocation.method(#get, [slug, issueNumber]), |
| returnValue: _i13.Future<_i7.Issue>.value( |
| _FakeIssue_12(this, Invocation.method(#get, [slug, issueNumber])), |
| ), |
| ) |
| as _i13.Future<_i7.Issue>); |
| |
| @override |
| _i13.Future<_i7.Issue> create( |
| _i7.RepositorySlug? slug, |
| _i7.IssueRequest? issue, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#create, [slug, issue]), |
| returnValue: _i13.Future<_i7.Issue>.value( |
| _FakeIssue_12(this, Invocation.method(#create, [slug, issue])), |
| ), |
| ) |
| as _i13.Future<_i7.Issue>); |
| |
| @override |
| _i13.Stream<_i7.User> listAssignees(_i7.RepositorySlug? slug) => |
| (super.noSuchMethod( |
| Invocation.method(#listAssignees, [slug]), |
| returnValue: _i13.Stream<_i7.User>.empty(), |
| ) |
| as _i13.Stream<_i7.User>); |
| |
| @override |
| _i13.Future<bool> isAssignee(_i7.RepositorySlug? slug, String? repoName) => |
| (super.noSuchMethod( |
| Invocation.method(#isAssignee, [slug, repoName]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Stream<_i7.IssueComment> listCommentsByIssue( |
| _i7.RepositorySlug? slug, |
| int? issueNumber, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#listCommentsByIssue, [slug, issueNumber]), |
| returnValue: _i13.Stream<_i7.IssueComment>.empty(), |
| ) |
| as _i13.Stream<_i7.IssueComment>); |
| |
| @override |
| _i13.Stream<_i7.IssueComment> listCommentsByRepo(_i7.RepositorySlug? slug) => |
| (super.noSuchMethod( |
| Invocation.method(#listCommentsByRepo, [slug]), |
| returnValue: _i13.Stream<_i7.IssueComment>.empty(), |
| ) |
| as _i13.Stream<_i7.IssueComment>); |
| |
| @override |
| _i13.Future<_i7.IssueComment> getComment(_i7.RepositorySlug? slug, int? id) => |
| (super.noSuchMethod( |
| Invocation.method(#getComment, [slug, id]), |
| returnValue: _i13.Future<_i7.IssueComment>.value( |
| _FakeIssueComment_13( |
| this, |
| Invocation.method(#getComment, [slug, id]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.IssueComment>); |
| |
| @override |
| _i13.Future<_i7.IssueComment> createComment( |
| _i7.RepositorySlug? slug, |
| int? issueNumber, |
| String? body, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#createComment, [slug, issueNumber, body]), |
| returnValue: _i13.Future<_i7.IssueComment>.value( |
| _FakeIssueComment_13( |
| this, |
| Invocation.method(#createComment, [slug, issueNumber, body]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.IssueComment>); |
| |
| @override |
| _i13.Future<_i7.IssueComment> updateComment( |
| _i7.RepositorySlug? slug, |
| int? id, |
| String? body, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#updateComment, [slug, id, body]), |
| returnValue: _i13.Future<_i7.IssueComment>.value( |
| _FakeIssueComment_13( |
| this, |
| Invocation.method(#updateComment, [slug, id, body]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.IssueComment>); |
| |
| @override |
| _i13.Future<bool> deleteComment(_i7.RepositorySlug? slug, int? id) => |
| (super.noSuchMethod( |
| Invocation.method(#deleteComment, [slug, id]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Stream<_i7.IssueLabel> listLabels(_i7.RepositorySlug? slug) => |
| (super.noSuchMethod( |
| Invocation.method(#listLabels, [slug]), |
| returnValue: _i13.Stream<_i7.IssueLabel>.empty(), |
| ) |
| as _i13.Stream<_i7.IssueLabel>); |
| |
| @override |
| _i13.Future<_i7.IssueLabel> getLabel( |
| _i7.RepositorySlug? slug, |
| String? name, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#getLabel, [slug, name]), |
| returnValue: _i13.Future<_i7.IssueLabel>.value( |
| _FakeIssueLabel_14( |
| this, |
| Invocation.method(#getLabel, [slug, name]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.IssueLabel>); |
| |
| @override |
| _i13.Future<_i7.IssueLabel> createLabel( |
| _i7.RepositorySlug? slug, |
| String? name, { |
| String? color, |
| String? description, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createLabel, |
| [slug, name], |
| {#color: color, #description: description}, |
| ), |
| returnValue: _i13.Future<_i7.IssueLabel>.value( |
| _FakeIssueLabel_14( |
| this, |
| Invocation.method( |
| #createLabel, |
| [slug, name], |
| {#color: color, #description: description}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.IssueLabel>); |
| |
| @override |
| _i13.Future<_i7.IssueLabel> editLabel( |
| _i7.RepositorySlug? slug, |
| String? name, |
| String? color, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#editLabel, [slug, name, color]), |
| returnValue: _i13.Future<_i7.IssueLabel>.value( |
| _FakeIssueLabel_14( |
| this, |
| Invocation.method(#editLabel, [slug, name, color]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.IssueLabel>); |
| |
| @override |
| _i13.Future<_i7.IssueLabel> updateLabel( |
| _i7.RepositorySlug? slug, |
| String? name, { |
| String? newName, |
| String? color, |
| String? description, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #updateLabel, |
| [slug, name], |
| {#newName: newName, #color: color, #description: description}, |
| ), |
| returnValue: _i13.Future<_i7.IssueLabel>.value( |
| _FakeIssueLabel_14( |
| this, |
| Invocation.method( |
| #updateLabel, |
| [slug, name], |
| {#newName: newName, #color: color, #description: description}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.IssueLabel>); |
| |
| @override |
| _i13.Future<bool> deleteLabel(_i7.RepositorySlug? slug, String? name) => |
| (super.noSuchMethod( |
| Invocation.method(#deleteLabel, [slug, name]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Stream<_i7.IssueLabel> listLabelsByIssue( |
| _i7.RepositorySlug? slug, |
| int? issueNumber, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#listLabelsByIssue, [slug, issueNumber]), |
| returnValue: _i13.Stream<_i7.IssueLabel>.empty(), |
| ) |
| as _i13.Stream<_i7.IssueLabel>); |
| |
| @override |
| _i13.Future<List<_i7.IssueLabel>> addLabelsToIssue( |
| _i7.RepositorySlug? slug, |
| int? issueNumber, |
| List<String>? labels, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#addLabelsToIssue, [slug, issueNumber, labels]), |
| returnValue: _i13.Future<List<_i7.IssueLabel>>.value( |
| <_i7.IssueLabel>[], |
| ), |
| ) |
| as _i13.Future<List<_i7.IssueLabel>>); |
| |
| @override |
| _i13.Future<List<_i7.IssueLabel>> replaceLabelsForIssue( |
| _i7.RepositorySlug? slug, |
| int? issueNumber, |
| List<String>? labels, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#replaceLabelsForIssue, [ |
| slug, |
| issueNumber, |
| labels, |
| ]), |
| returnValue: _i13.Future<List<_i7.IssueLabel>>.value( |
| <_i7.IssueLabel>[], |
| ), |
| ) |
| as _i13.Future<List<_i7.IssueLabel>>); |
| |
| @override |
| _i13.Future<bool> removeLabelForIssue( |
| _i7.RepositorySlug? slug, |
| int? issueNumber, |
| String? label, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#removeLabelForIssue, [slug, issueNumber, label]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Future<bool> removeAllLabelsForIssue( |
| _i7.RepositorySlug? slug, |
| int? issueNumber, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#removeAllLabelsForIssue, [slug, issueNumber]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Stream<_i7.Milestone> listMilestones(_i7.RepositorySlug? slug) => |
| (super.noSuchMethod( |
| Invocation.method(#listMilestones, [slug]), |
| returnValue: _i13.Stream<_i7.Milestone>.empty(), |
| ) |
| as _i13.Stream<_i7.Milestone>); |
| |
| @override |
| _i13.Future<_i7.Milestone> createMilestone( |
| _i7.RepositorySlug? slug, |
| _i7.CreateMilestone? request, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#createMilestone, [slug, request]), |
| returnValue: _i13.Future<_i7.Milestone>.value( |
| _FakeMilestone_15( |
| this, |
| Invocation.method(#createMilestone, [slug, request]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.Milestone>); |
| |
| @override |
| _i13.Future<bool> deleteMilestone(_i7.RepositorySlug? slug, int? number) => |
| (super.noSuchMethod( |
| Invocation.method(#deleteMilestone, [slug, number]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Stream<_i7.TimelineEvent> listTimeline( |
| _i7.RepositorySlug? slug, |
| int? issueNumber, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#listTimeline, [slug, issueNumber]), |
| returnValue: _i13.Stream<_i7.TimelineEvent>.empty(), |
| ) |
| as _i13.Stream<_i7.TimelineEvent>); |
| |
| @override |
| _i13.Future<void> lock( |
| _i7.RepositorySlug? slug, |
| int? number, { |
| String? lockReason, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#lock, [slug, number], {#lockReason: lockReason}), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<void> unlock(_i7.RepositorySlug? slug, int? number) => |
| (super.noSuchMethod( |
| Invocation.method(#unlock, [slug, number]), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| } |
| |
| /// A class which mocks [GithubChecksService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockGithubChecksService extends _i1.Mock |
| implements _i17.GithubChecksService { |
| MockGithubChecksService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i2.Config get config => |
| (super.noSuchMethod( |
| Invocation.getter(#config), |
| returnValue: _FakeConfig_0(this, Invocation.getter(#config)), |
| ) |
| as _i2.Config); |
| |
| @override |
| _i10.GithubChecksUtil get githubChecksUtil => |
| (super.noSuchMethod( |
| Invocation.getter(#githubChecksUtil), |
| returnValue: _FakeGithubChecksUtil_16( |
| this, |
| Invocation.getter(#githubChecksUtil), |
| ), |
| ) |
| as _i10.GithubChecksUtil); |
| |
| @override |
| set config(_i2.Config? value) => super.noSuchMethod( |
| Invocation.setter(#config, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set githubChecksUtil(_i10.GithubChecksUtil? value) => super.noSuchMethod( |
| Invocation.setter(#githubChecksUtil, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i13.Future<bool> updateCheckStatus({ |
| required _i6.Build? build, |
| required _i17.LuciBuildService? luciBuildService, |
| required _i7.RepositorySlug? slug, |
| required int? checkRunId, |
| bool? rescheduled = false, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#updateCheckStatus, [], { |
| #build: build, |
| #luciBuildService: luciBuildService, |
| #slug: slug, |
| #checkRunId: checkRunId, |
| #rescheduled: rescheduled, |
| }), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| bool taskFailed(_i6.Status? status) => |
| (super.noSuchMethod( |
| Invocation.method(#taskFailed, [status]), |
| returnValue: false, |
| ) |
| as bool); |
| |
| @override |
| String getGithubSummary(String? summary) => |
| (super.noSuchMethod( |
| Invocation.method(#getGithubSummary, [summary]), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.method(#getGithubSummary, [summary]), |
| ), |
| ) |
| as String); |
| |
| @override |
| _i7.CheckRunConclusion conclusionForResult(_i6.Status? status) => |
| (super.noSuchMethod( |
| Invocation.method(#conclusionForResult, [status]), |
| returnValue: _FakeCheckRunConclusion_17( |
| this, |
| Invocation.method(#conclusionForResult, [status]), |
| ), |
| ) |
| as _i7.CheckRunConclusion); |
| |
| @override |
| _i7.CheckRunStatus statusForResult(_i6.Status? status) => |
| (super.noSuchMethod( |
| Invocation.method(#statusForResult, [status]), |
| returnValue: _FakeCheckRunStatus_18( |
| this, |
| Invocation.method(#statusForResult, [status]), |
| ), |
| ) |
| as _i7.CheckRunStatus); |
| |
| @override |
| _i13.Future<_i7.PullRequest?> findMatchingPullRequest( |
| _i7.RepositorySlug? slug, |
| String? headSha, |
| int? checkSuiteId, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#findMatchingPullRequest, [ |
| slug, |
| headSha, |
| checkSuiteId, |
| ]), |
| returnValue: _i13.Future<_i7.PullRequest?>.value(), |
| ) |
| as _i13.Future<_i7.PullRequest?>); |
| } |
| |
| /// A class which mocks [GithubChecksUtil]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockGithubChecksUtil extends _i1.Mock implements _i10.GithubChecksUtil { |
| MockGithubChecksUtil() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i13.Future<Map<String, _i7.CheckRun>> allCheckRuns( |
| _i7.GitHub? gitHubClient, |
| _i22.CheckSuiteEvent? checkSuiteEvent, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#allCheckRuns, [gitHubClient, checkSuiteEvent]), |
| returnValue: _i13.Future<Map<String, _i7.CheckRun>>.value( |
| <String, _i7.CheckRun>{}, |
| ), |
| ) |
| as _i13.Future<Map<String, _i7.CheckRun>>); |
| |
| @override |
| _i13.Future<_i7.CheckSuite> getCheckSuite( |
| _i7.GitHub? gitHubClient, |
| _i7.RepositorySlug? slug, |
| int? checkSuiteId, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#getCheckSuite, [ |
| gitHubClient, |
| slug, |
| checkSuiteId, |
| ]), |
| returnValue: _i13.Future<_i7.CheckSuite>.value( |
| _FakeCheckSuite_19( |
| this, |
| Invocation.method(#getCheckSuite, [ |
| gitHubClient, |
| slug, |
| checkSuiteId, |
| ]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.CheckSuite>); |
| |
| @override |
| _i13.Future<List<_i7.CheckSuite>> listCheckSuitesForRef( |
| _i7.GitHub? gitHubClient, |
| _i7.RepositorySlug? slug, { |
| required String? ref, |
| int? appId, |
| String? checkName, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listCheckSuitesForRef, |
| [gitHubClient, slug], |
| {#ref: ref, #appId: appId, #checkName: checkName}, |
| ), |
| returnValue: _i13.Future<List<_i7.CheckSuite>>.value( |
| <_i7.CheckSuite>[], |
| ), |
| ) |
| as _i13.Future<List<_i7.CheckSuite>>); |
| |
| @override |
| _i13.Future<void> updateCheckRun( |
| _i2.Config? config, |
| _i7.RepositorySlug? slug, |
| _i7.CheckRun? checkRun, { |
| _i7.CheckRunStatus? status = _i7.CheckRunStatus.queued, |
| _i7.CheckRunConclusion? conclusion, |
| String? detailsUrl, |
| _i7.CheckRunOutput? output, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #updateCheckRun, |
| [config, slug, checkRun], |
| { |
| #status: status, |
| #conclusion: conclusion, |
| #detailsUrl: detailsUrl, |
| #output: output, |
| }, |
| ), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<_i7.CheckRun> getCheckRun( |
| _i2.Config? config, |
| _i7.RepositorySlug? slug, |
| int? id, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#getCheckRun, [config, slug, id]), |
| returnValue: _i13.Future<_i7.CheckRun>.value( |
| _FakeCheckRun_20( |
| this, |
| Invocation.method(#getCheckRun, [config, slug, id]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.CheckRun>); |
| |
| @override |
| _i13.Future<_i7.CheckRun> createCheckRun( |
| _i2.Config? config, |
| _i7.RepositorySlug? slug, |
| String? sha, |
| String? name, { |
| _i7.CheckRunOutput? output, |
| _i7.CheckRunConclusion? conclusion, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createCheckRun, |
| [config, slug, sha, name], |
| {#output: output, #conclusion: conclusion}, |
| ), |
| returnValue: _i13.Future<_i7.CheckRun>.value( |
| _FakeCheckRun_20( |
| this, |
| Invocation.method( |
| #createCheckRun, |
| [config, slug, sha, name], |
| {#output: output, #conclusion: conclusion}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.CheckRun>); |
| } |
| |
| /// A class which mocks [GithubService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockGithubService extends _i1.Mock implements _i9.GithubService { |
| MockGithubService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i7.GitHub get github => |
| (super.noSuchMethod( |
| Invocation.getter(#github), |
| returnValue: _FakeGitHub_9(this, Invocation.getter(#github)), |
| ) |
| as _i7.GitHub); |
| |
| @override |
| _i13.Future<List<_i7.RepositoryCommit>> listBranchedCommits( |
| _i7.RepositorySlug? slug, |
| String? branch, |
| int? lastCommitTimestampMills, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#listBranchedCommits, [ |
| slug, |
| branch, |
| lastCommitTimestampMills, |
| ]), |
| returnValue: _i13.Future<List<_i7.RepositoryCommit>>.value( |
| <_i7.RepositoryCommit>[], |
| ), |
| ) |
| as _i13.Future<List<_i7.RepositoryCommit>>); |
| |
| @override |
| _i13.Future<bool> deleteBranch( |
| _i7.RepositorySlug? slug, |
| String? branchName, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#deleteBranch, [slug, branchName]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Future<List<_i7.PullRequest>> listPullRequests( |
| _i7.RepositorySlug? slug, |
| String? branch, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#listPullRequests, [slug, branch]), |
| returnValue: _i13.Future<List<_i7.PullRequest>>.value( |
| <_i7.PullRequest>[], |
| ), |
| ) |
| as _i13.Future<List<_i7.PullRequest>>); |
| |
| @override |
| _i13.Future<_i7.PullRequest> createPullRequest( |
| _i7.RepositorySlug? slug, { |
| required String? title, |
| String? body, |
| String? commitMessage, |
| required _i7.GitReference? baseRef, |
| List<_i7.CreateGitTreeEntry>? entries, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createPullRequest, |
| [slug], |
| { |
| #title: title, |
| #body: body, |
| #commitMessage: commitMessage, |
| #baseRef: baseRef, |
| #entries: entries, |
| }, |
| ), |
| returnValue: _i13.Future<_i7.PullRequest>.value( |
| _FakePullRequest_21( |
| this, |
| Invocation.method( |
| #createPullRequest, |
| [slug], |
| { |
| #title: title, |
| #body: body, |
| #commitMessage: commitMessage, |
| #baseRef: baseRef, |
| #entries: entries, |
| }, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.PullRequest>); |
| |
| @override |
| _i13.Future<void> assignReviewer( |
| _i7.RepositorySlug? slug, { |
| int? pullRequestNumber, |
| String? reviewer, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #assignReviewer, |
| [slug], |
| {#pullRequestNumber: pullRequestNumber, #reviewer: reviewer}, |
| ), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<List<_i7.CheckRun>> getCheckRuns( |
| _i7.RepositorySlug? slug, |
| String? ref, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#getCheckRuns, [slug, ref]), |
| returnValue: _i13.Future<List<_i7.CheckRun>>.value( |
| <_i7.CheckRun>[], |
| ), |
| ) |
| as _i13.Future<List<_i7.CheckRun>>); |
| |
| @override |
| _i13.Future<List<_i7.CheckRun>> getCheckRunsFiltered({ |
| required _i7.RepositorySlug? slug, |
| required String? ref, |
| String? checkName, |
| _i7.CheckRunStatus? status, |
| _i7.CheckRunFilter? filter, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#getCheckRunsFiltered, [], { |
| #slug: slug, |
| #ref: ref, |
| #checkName: checkName, |
| #status: status, |
| #filter: filter, |
| }), |
| returnValue: _i13.Future<List<_i7.CheckRun>>.value( |
| <_i7.CheckRun>[], |
| ), |
| ) |
| as _i13.Future<List<_i7.CheckRun>>); |
| |
| @override |
| _i13.Future<_i7.CheckRun> updateCheckRun({ |
| required _i7.RepositorySlug? slug, |
| required _i7.CheckRun? checkRun, |
| String? name, |
| String? detailsUrl, |
| String? externalId, |
| DateTime? startedAt, |
| _i7.CheckRunStatus? status = _i7.CheckRunStatus.queued, |
| _i7.CheckRunConclusion? conclusion, |
| DateTime? completedAt, |
| _i7.CheckRunOutput? output, |
| List<_i7.CheckRunAction>? actions, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#updateCheckRun, [], { |
| #slug: slug, |
| #checkRun: checkRun, |
| #name: name, |
| #detailsUrl: detailsUrl, |
| #externalId: externalId, |
| #startedAt: startedAt, |
| #status: status, |
| #conclusion: conclusion, |
| #completedAt: completedAt, |
| #output: output, |
| #actions: actions, |
| }), |
| returnValue: _i13.Future<_i7.CheckRun>.value( |
| _FakeCheckRun_20( |
| this, |
| Invocation.method(#updateCheckRun, [], { |
| #slug: slug, |
| #checkRun: checkRun, |
| #name: name, |
| #detailsUrl: detailsUrl, |
| #externalId: externalId, |
| #startedAt: startedAt, |
| #status: status, |
| #conclusion: conclusion, |
| #completedAt: completedAt, |
| #output: output, |
| #actions: actions, |
| }), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.CheckRun>); |
| |
| @override |
| _i13.Future<List<_i7.IssueLabel>> getIssueLabels( |
| _i7.RepositorySlug? slug, |
| int? issueNumber, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#getIssueLabels, [slug, issueNumber]), |
| returnValue: _i13.Future<List<_i7.IssueLabel>>.value( |
| <_i7.IssueLabel>[], |
| ), |
| ) |
| as _i13.Future<List<_i7.IssueLabel>>); |
| |
| @override |
| _i13.Future<List<_i7.IssueLabel>> addIssueLabels( |
| _i7.RepositorySlug? slug, |
| int? issueNumber, |
| List<String>? labels, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#addIssueLabels, [slug, issueNumber, labels]), |
| returnValue: _i13.Future<List<_i7.IssueLabel>>.value( |
| <_i7.IssueLabel>[], |
| ), |
| ) |
| as _i13.Future<List<_i7.IssueLabel>>); |
| |
| @override |
| _i13.Future<List<_i7.Issue>> listIssues( |
| _i7.RepositorySlug? slug, { |
| List<String>? labels, |
| String? state = 'open', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listIssues, |
| [slug], |
| {#labels: labels, #state: state}, |
| ), |
| returnValue: _i13.Future<List<_i7.Issue>>.value(<_i7.Issue>[]), |
| ) |
| as _i13.Future<List<_i7.Issue>>); |
| |
| @override |
| _i13.Future<bool> removeLabel( |
| _i7.RepositorySlug? slug, |
| int? issueNumber, |
| String? label, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#removeLabel, [slug, issueNumber, label]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Future<_i7.Issue>? getIssue( |
| _i7.RepositorySlug? slug, { |
| required int? issueNumber, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#getIssue, [slug], {#issueNumber: issueNumber}), |
| ) |
| as _i13.Future<_i7.Issue>?); |
| |
| @override |
| _i13.Future<void> assignIssue( |
| _i7.RepositorySlug? slug, { |
| required int? issueNumber, |
| required String? assignee, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #assignIssue, |
| [slug], |
| {#issueNumber: issueNumber, #assignee: assignee}, |
| ), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<_i7.Issue> createIssue( |
| _i7.RepositorySlug? slug, { |
| String? title, |
| String? body, |
| List<String>? labels, |
| String? assignee, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createIssue, |
| [slug], |
| { |
| #title: title, |
| #body: body, |
| #labels: labels, |
| #assignee: assignee, |
| }, |
| ), |
| returnValue: _i13.Future<_i7.Issue>.value( |
| _FakeIssue_12( |
| this, |
| Invocation.method( |
| #createIssue, |
| [slug], |
| { |
| #title: title, |
| #body: body, |
| #labels: labels, |
| #assignee: assignee, |
| }, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.Issue>); |
| |
| @override |
| _i13.Future<_i7.IssueComment?> createComment( |
| _i7.RepositorySlug? slug, { |
| required int? issueNumber, |
| required String? body, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createComment, |
| [slug], |
| {#issueNumber: issueNumber, #body: body}, |
| ), |
| returnValue: _i13.Future<_i7.IssueComment?>.value(), |
| ) |
| as _i13.Future<_i7.IssueComment?>); |
| |
| @override |
| _i13.Future<List<_i7.IssueLabel>> replaceLabelsForIssue( |
| _i7.RepositorySlug? slug, { |
| required int? issueNumber, |
| required List<String>? labels, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #replaceLabelsForIssue, |
| [slug], |
| {#issueNumber: issueNumber, #labels: labels}, |
| ), |
| returnValue: _i13.Future<List<_i7.IssueLabel>>.value( |
| <_i7.IssueLabel>[], |
| ), |
| ) |
| as _i13.Future<List<_i7.IssueLabel>>); |
| |
| @override |
| _i13.Future<List<String>> listFiles( |
| _i7.RepositorySlug? slug, |
| int? pullRequestNumber, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#listFiles, [slug, pullRequestNumber]), |
| returnValue: _i13.Future<List<String>>.value(<String>[]), |
| ) |
| as _i13.Future<List<String>>); |
| |
| @override |
| _i13.Future<String> getFileContent( |
| _i7.RepositorySlug? slug, |
| String? path, { |
| String? ref, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#getFileContent, [slug, path], {#ref: ref}), |
| returnValue: _i13.Future<String>.value( |
| _i20.dummyValue<String>( |
| this, |
| Invocation.method(#getFileContent, [slug, path], {#ref: ref}), |
| ), |
| ), |
| ) |
| as _i13.Future<String>); |
| |
| @override |
| _i13.Future<_i7.GitReference> getReference( |
| _i7.RepositorySlug? slug, |
| String? ref, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#getReference, [slug, ref]), |
| returnValue: _i13.Future<_i7.GitReference>.value( |
| _FakeGitReference_22( |
| this, |
| Invocation.method(#getReference, [slug, ref]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.GitReference>); |
| |
| @override |
| _i13.Future<_i7.RateLimit> getRateLimit() => |
| (super.noSuchMethod( |
| Invocation.method(#getRateLimit, []), |
| returnValue: _i13.Future<_i7.RateLimit>.value( |
| _FakeRateLimit_23(this, Invocation.method(#getRateLimit, [])), |
| ), |
| ) |
| as _i13.Future<_i7.RateLimit>); |
| |
| @override |
| _i13.Future<List<_i7.Issue>> searchIssuesAndPRs( |
| _i7.RepositorySlug? slug, |
| String? query, { |
| String? sort, |
| int? pages = 2, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #searchIssuesAndPRs, |
| [slug, query], |
| {#sort: sort, #pages: pages}, |
| ), |
| returnValue: _i13.Future<List<_i7.Issue>>.value(<_i7.Issue>[]), |
| ) |
| as _i13.Future<List<_i7.Issue>>); |
| |
| @override |
| _i13.Future<_i7.PullRequest> getPullRequest( |
| _i7.RepositorySlug? slug, |
| int? number, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#getPullRequest, [slug, number]), |
| returnValue: _i13.Future<_i7.PullRequest>.value( |
| _FakePullRequest_21( |
| this, |
| Invocation.method(#getPullRequest, [slug, number]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.PullRequest>); |
| |
| @override |
| _i13.Future<bool> commentExists( |
| _i7.RepositorySlug? slug, |
| int? issue, |
| String? body, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#commentExists, [slug, issue, body]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Future<_i7.User> getUserByAccountId(String? accountId) => |
| (super.noSuchMethod( |
| Invocation.method(#getUserByAccountId, [accountId]), |
| returnValue: _i13.Future<_i7.User>.value( |
| _FakeUser_24( |
| this, |
| Invocation.method(#getUserByAccountId, [accountId]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.User>); |
| |
| @override |
| _i13.Future<bool> hasUserWritePermissions( |
| _i7.RepositorySlug? slug, |
| String? user, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#hasUserWritePermissions, [slug, user]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| } |
| |
| /// A class which mocks [GitService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockGitService extends _i1.Mock implements _i7.GitService { |
| MockGitService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i7.GitHub get github => |
| (super.noSuchMethod( |
| Invocation.getter(#github), |
| returnValue: _FakeGitHub_9(this, Invocation.getter(#github)), |
| ) |
| as _i7.GitHub); |
| |
| @override |
| _i13.Future<_i7.GitBlob> getBlob(_i7.RepositorySlug? slug, String? sha) => |
| (super.noSuchMethod( |
| Invocation.method(#getBlob, [slug, sha]), |
| returnValue: _i13.Future<_i7.GitBlob>.value( |
| _FakeGitBlob_25(this, Invocation.method(#getBlob, [slug, sha])), |
| ), |
| ) |
| as _i13.Future<_i7.GitBlob>); |
| |
| @override |
| _i13.Future<_i7.GitBlob> createBlob( |
| _i7.RepositorySlug? slug, |
| _i7.CreateGitBlob? blob, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#createBlob, [slug, blob]), |
| returnValue: _i13.Future<_i7.GitBlob>.value( |
| _FakeGitBlob_25( |
| this, |
| Invocation.method(#createBlob, [slug, blob]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.GitBlob>); |
| |
| @override |
| _i13.Future<_i7.GitCommit> getCommit(_i7.RepositorySlug? slug, String? sha) => |
| (super.noSuchMethod( |
| Invocation.method(#getCommit, [slug, sha]), |
| returnValue: _i13.Future<_i7.GitCommit>.value( |
| _FakeGitCommit_26( |
| this, |
| Invocation.method(#getCommit, [slug, sha]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.GitCommit>); |
| |
| @override |
| _i13.Future<_i7.GitCommit> createCommit( |
| _i7.RepositorySlug? slug, |
| _i7.CreateGitCommit? commit, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#createCommit, [slug, commit]), |
| returnValue: _i13.Future<_i7.GitCommit>.value( |
| _FakeGitCommit_26( |
| this, |
| Invocation.method(#createCommit, [slug, commit]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.GitCommit>); |
| |
| @override |
| _i13.Future<_i7.GitReference> getReference( |
| _i7.RepositorySlug? slug, |
| String? ref, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#getReference, [slug, ref]), |
| returnValue: _i13.Future<_i7.GitReference>.value( |
| _FakeGitReference_22( |
| this, |
| Invocation.method(#getReference, [slug, ref]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.GitReference>); |
| |
| @override |
| _i13.Stream<_i7.GitReference> listReferences( |
| _i7.RepositorySlug? slug, { |
| String? type, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#listReferences, [slug], {#type: type}), |
| returnValue: _i13.Stream<_i7.GitReference>.empty(), |
| ) |
| as _i13.Stream<_i7.GitReference>); |
| |
| @override |
| _i13.Future<_i7.GitReference> createReference( |
| _i7.RepositorySlug? slug, |
| String? ref, |
| String? sha, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#createReference, [slug, ref, sha]), |
| returnValue: _i13.Future<_i7.GitReference>.value( |
| _FakeGitReference_22( |
| this, |
| Invocation.method(#createReference, [slug, ref, sha]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.GitReference>); |
| |
| @override |
| _i13.Future<_i7.GitReference> editReference( |
| _i7.RepositorySlug? slug, |
| String? ref, |
| String? sha, { |
| bool? force = false, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #editReference, |
| [slug, ref, sha], |
| {#force: force}, |
| ), |
| returnValue: _i13.Future<_i7.GitReference>.value( |
| _FakeGitReference_22( |
| this, |
| Invocation.method( |
| #editReference, |
| [slug, ref, sha], |
| {#force: force}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.GitReference>); |
| |
| @override |
| _i13.Future<bool> deleteReference(_i7.RepositorySlug? slug, String? ref) => |
| (super.noSuchMethod( |
| Invocation.method(#deleteReference, [slug, ref]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Future<_i7.GitTag> getTag(_i7.RepositorySlug? slug, String? sha) => |
| (super.noSuchMethod( |
| Invocation.method(#getTag, [slug, sha]), |
| returnValue: _i13.Future<_i7.GitTag>.value( |
| _FakeGitTag_27(this, Invocation.method(#getTag, [slug, sha])), |
| ), |
| ) |
| as _i13.Future<_i7.GitTag>); |
| |
| @override |
| _i13.Future<_i7.GitTag> createTag( |
| _i7.RepositorySlug? slug, |
| _i7.CreateGitTag? tag, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#createTag, [slug, tag]), |
| returnValue: _i13.Future<_i7.GitTag>.value( |
| _FakeGitTag_27(this, Invocation.method(#createTag, [slug, tag])), |
| ), |
| ) |
| as _i13.Future<_i7.GitTag>); |
| |
| @override |
| _i13.Future<_i7.GitTree> getTree( |
| _i7.RepositorySlug? slug, |
| String? sha, { |
| bool? recursive = false, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#getTree, [slug, sha], {#recursive: recursive}), |
| returnValue: _i13.Future<_i7.GitTree>.value( |
| _FakeGitTree_28( |
| this, |
| Invocation.method( |
| #getTree, |
| [slug, sha], |
| {#recursive: recursive}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.GitTree>); |
| |
| @override |
| _i13.Future<_i7.GitTree> createTree( |
| _i7.RepositorySlug? slug, |
| _i7.CreateGitTree? tree, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#createTree, [slug, tree]), |
| returnValue: _i13.Future<_i7.GitTree>.value( |
| _FakeGitTree_28( |
| this, |
| Invocation.method(#createTree, [slug, tree]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.GitTree>); |
| } |
| |
| /// A class which mocks [GraphQLClient]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockGraphQLClient extends _i1.Mock implements _i8.GraphQLClient { |
| MockGraphQLClient() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i8.DefaultPolicies get defaultPolicies => |
| (super.noSuchMethod( |
| Invocation.getter(#defaultPolicies), |
| returnValue: _FakeDefaultPolicies_29( |
| this, |
| Invocation.getter(#defaultPolicies), |
| ), |
| ) |
| as _i8.DefaultPolicies); |
| |
| @override |
| _i8.Link get link => |
| (super.noSuchMethod( |
| Invocation.getter(#link), |
| returnValue: _FakeLink_30(this, Invocation.getter(#link)), |
| ) |
| as _i8.Link); |
| |
| @override |
| _i8.GraphQLCache get cache => |
| (super.noSuchMethod( |
| Invocation.getter(#cache), |
| returnValue: _FakeGraphQLCache_31(this, Invocation.getter(#cache)), |
| ) |
| as _i8.GraphQLCache); |
| |
| @override |
| _i8.QueryManager get queryManager => |
| (super.noSuchMethod( |
| Invocation.getter(#queryManager), |
| returnValue: _FakeQueryManager_32( |
| this, |
| Invocation.getter(#queryManager), |
| ), |
| ) |
| as _i8.QueryManager); |
| |
| @override |
| set defaultPolicies(_i8.DefaultPolicies? value) => super.noSuchMethod( |
| Invocation.setter(#defaultPolicies, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set queryManager(_i8.QueryManager? value) => super.noSuchMethod( |
| Invocation.setter(#queryManager, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i8.GraphQLClient copyWith({ |
| _i8.Link? link, |
| _i8.GraphQLCache? cache, |
| _i8.DefaultPolicies? defaultPolicies, |
| bool? alwaysRebroadcast, |
| _i8.DeepEqualsFn? deepEquals, |
| _i8.AsyncDeepEqualsFn? asyncDeepEquals, |
| bool? deduplicatePollers = false, |
| Duration? queryRequestTimeout, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#copyWith, [], { |
| #link: link, |
| #cache: cache, |
| #defaultPolicies: defaultPolicies, |
| #alwaysRebroadcast: alwaysRebroadcast, |
| #deepEquals: deepEquals, |
| #asyncDeepEquals: asyncDeepEquals, |
| #deduplicatePollers: deduplicatePollers, |
| #queryRequestTimeout: queryRequestTimeout, |
| }), |
| returnValue: _FakeGraphQLClient_10( |
| this, |
| Invocation.method(#copyWith, [], { |
| #link: link, |
| #cache: cache, |
| #defaultPolicies: defaultPolicies, |
| #alwaysRebroadcast: alwaysRebroadcast, |
| #deepEquals: deepEquals, |
| #asyncDeepEquals: asyncDeepEquals, |
| #deduplicatePollers: deduplicatePollers, |
| #queryRequestTimeout: queryRequestTimeout, |
| }), |
| ), |
| ) |
| as _i8.GraphQLClient); |
| |
| @override |
| _i8.ObservableQuery<TParsed> watchQuery<TParsed>( |
| _i8.WatchQueryOptions<TParsed>? options, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#watchQuery, [options]), |
| returnValue: _FakeObservableQuery_33<TParsed>( |
| this, |
| Invocation.method(#watchQuery, [options]), |
| ), |
| ) |
| as _i8.ObservableQuery<TParsed>); |
| |
| @override |
| _i8.ObservableQuery<TParsed> watchMutation<TParsed>( |
| _i8.WatchQueryOptions<TParsed>? options, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#watchMutation, [options]), |
| returnValue: _FakeObservableQuery_33<TParsed>( |
| this, |
| Invocation.method(#watchMutation, [options]), |
| ), |
| ) |
| as _i8.ObservableQuery<TParsed>); |
| |
| @override |
| _i13.Future<_i8.QueryResult<TParsed>> query<TParsed>( |
| _i8.QueryOptions<TParsed>? options, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#query, [options]), |
| returnValue: _i13.Future<_i8.QueryResult<TParsed>>.value( |
| _FakeQueryResult_34<TParsed>( |
| this, |
| Invocation.method(#query, [options]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i8.QueryResult<TParsed>>); |
| |
| @override |
| _i13.Future<_i8.QueryResult<TParsed>> mutate<TParsed>( |
| _i8.MutationOptions<TParsed>? options, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#mutate, [options]), |
| returnValue: _i13.Future<_i8.QueryResult<TParsed>>.value( |
| _FakeQueryResult_34<TParsed>( |
| this, |
| Invocation.method(#mutate, [options]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i8.QueryResult<TParsed>>); |
| |
| @override |
| _i13.Stream<_i8.QueryResult<TParsed>> subscribe<TParsed>( |
| _i8.SubscriptionOptions<TParsed>? options, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#subscribe, [options]), |
| returnValue: _i13.Stream<_i8.QueryResult<TParsed>>.empty(), |
| ) |
| as _i13.Stream<_i8.QueryResult<TParsed>>); |
| |
| @override |
| _i13.Future<_i8.QueryResult<TParsed>> fetchMore<TParsed>( |
| _i8.FetchMoreOptions? fetchMoreOptions, { |
| required _i8.QueryOptions<TParsed>? originalOptions, |
| required _i8.QueryResult<TParsed>? previousResult, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #fetchMore, |
| [fetchMoreOptions], |
| { |
| #originalOptions: originalOptions, |
| #previousResult: previousResult, |
| }, |
| ), |
| returnValue: _i13.Future<_i8.QueryResult<TParsed>>.value( |
| _FakeQueryResult_34<TParsed>( |
| this, |
| Invocation.method( |
| #fetchMore, |
| [fetchMoreOptions], |
| { |
| #originalOptions: originalOptions, |
| #previousResult: previousResult, |
| }, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i8.QueryResult<TParsed>>); |
| |
| @override |
| Map<String, dynamic>? readQuery( |
| _i8.Request? request, { |
| bool? optimistic = true, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#readQuery, [request], {#optimistic: optimistic}), |
| ) |
| as Map<String, dynamic>?); |
| |
| @override |
| Map<String, dynamic>? readFragment( |
| _i8.FragmentRequest? fragmentRequest, { |
| bool? optimistic = true, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #readFragment, |
| [fragmentRequest], |
| {#optimistic: optimistic}, |
| ), |
| ) |
| as Map<String, dynamic>?); |
| |
| @override |
| void writeQuery( |
| _i8.Request? request, { |
| required Map<String, dynamic>? data, |
| bool? broadcast = true, |
| }) => super.noSuchMethod( |
| Invocation.method( |
| #writeQuery, |
| [request], |
| {#data: data, #broadcast: broadcast}, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| void writeFragment( |
| _i8.FragmentRequest? fragmentRequest, { |
| bool? broadcast = true, |
| required Map<String, dynamic>? data, |
| }) => super.noSuchMethod( |
| Invocation.method( |
| #writeFragment, |
| [fragmentRequest], |
| {#broadcast: broadcast, #data: data}, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i13.Future<List<_i8.QueryResult<Object?>?>>? resetStore({ |
| bool? refetchQueries = true, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#resetStore, [], { |
| #refetchQueries: refetchQueries, |
| }), |
| ) |
| as _i13.Future<List<_i8.QueryResult<Object?>?>>?); |
| } |
| |
| /// A class which mocks [HttpClient]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockHttpClient extends _i1.Mock implements _i11.HttpClient { |
| MockHttpClient() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| Duration get idleTimeout => |
| (super.noSuchMethod( |
| Invocation.getter(#idleTimeout), |
| returnValue: _FakeDuration_8(this, Invocation.getter(#idleTimeout)), |
| ) |
| as Duration); |
| |
| @override |
| bool get autoUncompress => |
| (super.noSuchMethod( |
| Invocation.getter(#autoUncompress), |
| returnValue: false, |
| ) |
| as bool); |
| |
| @override |
| set idleTimeout(Duration? value) => super.noSuchMethod( |
| Invocation.setter(#idleTimeout, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set connectionTimeout(Duration? value) => super.noSuchMethod( |
| Invocation.setter(#connectionTimeout, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set maxConnectionsPerHost(int? value) => super.noSuchMethod( |
| Invocation.setter(#maxConnectionsPerHost, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set autoUncompress(bool? value) => super.noSuchMethod( |
| Invocation.setter(#autoUncompress, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set userAgent(String? value) => super.noSuchMethod( |
| Invocation.setter(#userAgent, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set authenticate(_i13.Future<bool> Function(Uri, String, String?)? f) => |
| super.noSuchMethod( |
| Invocation.setter(#authenticate, f), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set connectionFactory( |
| _i13.Future<_i11.ConnectionTask<_i11.Socket>> Function(Uri, String?, int?)? |
| f, |
| ) => super.noSuchMethod( |
| Invocation.setter(#connectionFactory, f), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set findProxy(String Function(Uri)? f) => super.noSuchMethod( |
| Invocation.setter(#findProxy, f), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set authenticateProxy( |
| _i13.Future<bool> Function(String, int, String, String?)? f, |
| ) => super.noSuchMethod( |
| Invocation.setter(#authenticateProxy, f), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set badCertificateCallback( |
| bool Function(_i11.X509Certificate, String, int)? callback, |
| ) => super.noSuchMethod( |
| Invocation.setter(#badCertificateCallback, callback), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set keyLog(dynamic Function(String)? callback) => super.noSuchMethod( |
| Invocation.setter(#keyLog, callback), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i13.Future<_i11.HttpClientRequest> open( |
| String? method, |
| String? host, |
| int? port, |
| String? path, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#open, [method, host, port, path]), |
| returnValue: _i13.Future<_i11.HttpClientRequest>.value( |
| _FakeHttpClientRequest_35( |
| this, |
| Invocation.method(#open, [method, host, port, path]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientRequest>); |
| |
| @override |
| _i13.Future<_i11.HttpClientRequest> openUrl(String? method, Uri? url) => |
| (super.noSuchMethod( |
| Invocation.method(#openUrl, [method, url]), |
| returnValue: _i13.Future<_i11.HttpClientRequest>.value( |
| _FakeHttpClientRequest_35( |
| this, |
| Invocation.method(#openUrl, [method, url]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientRequest>); |
| |
| @override |
| _i13.Future<_i11.HttpClientRequest> get( |
| String? host, |
| int? port, |
| String? path, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#get, [host, port, path]), |
| returnValue: _i13.Future<_i11.HttpClientRequest>.value( |
| _FakeHttpClientRequest_35( |
| this, |
| Invocation.method(#get, [host, port, path]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientRequest>); |
| |
| @override |
| _i13.Future<_i11.HttpClientRequest> getUrl(Uri? url) => |
| (super.noSuchMethod( |
| Invocation.method(#getUrl, [url]), |
| returnValue: _i13.Future<_i11.HttpClientRequest>.value( |
| _FakeHttpClientRequest_35( |
| this, |
| Invocation.method(#getUrl, [url]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientRequest>); |
| |
| @override |
| _i13.Future<_i11.HttpClientRequest> post( |
| String? host, |
| int? port, |
| String? path, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#post, [host, port, path]), |
| returnValue: _i13.Future<_i11.HttpClientRequest>.value( |
| _FakeHttpClientRequest_35( |
| this, |
| Invocation.method(#post, [host, port, path]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientRequest>); |
| |
| @override |
| _i13.Future<_i11.HttpClientRequest> postUrl(Uri? url) => |
| (super.noSuchMethod( |
| Invocation.method(#postUrl, [url]), |
| returnValue: _i13.Future<_i11.HttpClientRequest>.value( |
| _FakeHttpClientRequest_35( |
| this, |
| Invocation.method(#postUrl, [url]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientRequest>); |
| |
| @override |
| _i13.Future<_i11.HttpClientRequest> put( |
| String? host, |
| int? port, |
| String? path, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#put, [host, port, path]), |
| returnValue: _i13.Future<_i11.HttpClientRequest>.value( |
| _FakeHttpClientRequest_35( |
| this, |
| Invocation.method(#put, [host, port, path]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientRequest>); |
| |
| @override |
| _i13.Future<_i11.HttpClientRequest> putUrl(Uri? url) => |
| (super.noSuchMethod( |
| Invocation.method(#putUrl, [url]), |
| returnValue: _i13.Future<_i11.HttpClientRequest>.value( |
| _FakeHttpClientRequest_35( |
| this, |
| Invocation.method(#putUrl, [url]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientRequest>); |
| |
| @override |
| _i13.Future<_i11.HttpClientRequest> delete( |
| String? host, |
| int? port, |
| String? path, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#delete, [host, port, path]), |
| returnValue: _i13.Future<_i11.HttpClientRequest>.value( |
| _FakeHttpClientRequest_35( |
| this, |
| Invocation.method(#delete, [host, port, path]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientRequest>); |
| |
| @override |
| _i13.Future<_i11.HttpClientRequest> deleteUrl(Uri? url) => |
| (super.noSuchMethod( |
| Invocation.method(#deleteUrl, [url]), |
| returnValue: _i13.Future<_i11.HttpClientRequest>.value( |
| _FakeHttpClientRequest_35( |
| this, |
| Invocation.method(#deleteUrl, [url]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientRequest>); |
| |
| @override |
| _i13.Future<_i11.HttpClientRequest> patch( |
| String? host, |
| int? port, |
| String? path, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#patch, [host, port, path]), |
| returnValue: _i13.Future<_i11.HttpClientRequest>.value( |
| _FakeHttpClientRequest_35( |
| this, |
| Invocation.method(#patch, [host, port, path]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientRequest>); |
| |
| @override |
| _i13.Future<_i11.HttpClientRequest> patchUrl(Uri? url) => |
| (super.noSuchMethod( |
| Invocation.method(#patchUrl, [url]), |
| returnValue: _i13.Future<_i11.HttpClientRequest>.value( |
| _FakeHttpClientRequest_35( |
| this, |
| Invocation.method(#patchUrl, [url]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientRequest>); |
| |
| @override |
| _i13.Future<_i11.HttpClientRequest> head( |
| String? host, |
| int? port, |
| String? path, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#head, [host, port, path]), |
| returnValue: _i13.Future<_i11.HttpClientRequest>.value( |
| _FakeHttpClientRequest_35( |
| this, |
| Invocation.method(#head, [host, port, path]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientRequest>); |
| |
| @override |
| _i13.Future<_i11.HttpClientRequest> headUrl(Uri? url) => |
| (super.noSuchMethod( |
| Invocation.method(#headUrl, [url]), |
| returnValue: _i13.Future<_i11.HttpClientRequest>.value( |
| _FakeHttpClientRequest_35( |
| this, |
| Invocation.method(#headUrl, [url]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientRequest>); |
| |
| @override |
| void addCredentials( |
| Uri? url, |
| String? realm, |
| _i11.HttpClientCredentials? credentials, |
| ) => super.noSuchMethod( |
| Invocation.method(#addCredentials, [url, realm, credentials]), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| void addProxyCredentials( |
| String? host, |
| int? port, |
| String? realm, |
| _i11.HttpClientCredentials? credentials, |
| ) => super.noSuchMethod( |
| Invocation.method(#addProxyCredentials, [host, port, realm, credentials]), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| void close({bool? force = false}) => super.noSuchMethod( |
| Invocation.method(#close, [], {#force: force}), |
| returnValueForMissingStub: null, |
| ); |
| } |
| |
| /// A class which mocks [HttpClientRequest]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockHttpClientRequest extends _i1.Mock implements _i11.HttpClientRequest { |
| MockHttpClientRequest() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| bool get persistentConnection => |
| (super.noSuchMethod( |
| Invocation.getter(#persistentConnection), |
| returnValue: false, |
| ) |
| as bool); |
| |
| @override |
| bool get followRedirects => |
| (super.noSuchMethod( |
| Invocation.getter(#followRedirects), |
| returnValue: false, |
| ) |
| as bool); |
| |
| @override |
| int get maxRedirects => |
| (super.noSuchMethod(Invocation.getter(#maxRedirects), returnValue: 0) |
| as int); |
| |
| @override |
| String get method => |
| (super.noSuchMethod( |
| Invocation.getter(#method), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#method), |
| ), |
| ) |
| as String); |
| |
| @override |
| Uri get uri => |
| (super.noSuchMethod( |
| Invocation.getter(#uri), |
| returnValue: _FakeUri_36(this, Invocation.getter(#uri)), |
| ) |
| as Uri); |
| |
| @override |
| int get contentLength => |
| (super.noSuchMethod(Invocation.getter(#contentLength), returnValue: 0) |
| as int); |
| |
| @override |
| bool get bufferOutput => |
| (super.noSuchMethod(Invocation.getter(#bufferOutput), returnValue: false) |
| as bool); |
| |
| @override |
| _i11.HttpHeaders get headers => |
| (super.noSuchMethod( |
| Invocation.getter(#headers), |
| returnValue: _FakeHttpHeaders_37(this, Invocation.getter(#headers)), |
| ) |
| as _i11.HttpHeaders); |
| |
| @override |
| List<_i11.Cookie> get cookies => |
| (super.noSuchMethod( |
| Invocation.getter(#cookies), |
| returnValue: <_i11.Cookie>[], |
| ) |
| as List<_i11.Cookie>); |
| |
| @override |
| _i13.Future<_i11.HttpClientResponse> get done => |
| (super.noSuchMethod( |
| Invocation.getter(#done), |
| returnValue: _i13.Future<_i11.HttpClientResponse>.value( |
| _FakeHttpClientResponse_38(this, Invocation.getter(#done)), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientResponse>); |
| |
| @override |
| set persistentConnection(bool? value) => super.noSuchMethod( |
| Invocation.setter(#persistentConnection, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set followRedirects(bool? value) => super.noSuchMethod( |
| Invocation.setter(#followRedirects, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set maxRedirects(int? value) => super.noSuchMethod( |
| Invocation.setter(#maxRedirects, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set contentLength(int? value) => super.noSuchMethod( |
| Invocation.setter(#contentLength, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set bufferOutput(bool? value) => super.noSuchMethod( |
| Invocation.setter(#bufferOutput, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i12.Encoding get encoding => |
| (super.noSuchMethod( |
| Invocation.getter(#encoding), |
| returnValue: _FakeEncoding_39(this, Invocation.getter(#encoding)), |
| ) |
| as _i12.Encoding); |
| |
| @override |
| set encoding(_i12.Encoding? value) => super.noSuchMethod( |
| Invocation.setter(#encoding, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i13.Future<_i11.HttpClientResponse> close() => |
| (super.noSuchMethod( |
| Invocation.method(#close, []), |
| returnValue: _i13.Future<_i11.HttpClientResponse>.value( |
| _FakeHttpClientResponse_38(this, Invocation.method(#close, [])), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientResponse>); |
| |
| @override |
| void abort([Object? exception, StackTrace? stackTrace]) => super.noSuchMethod( |
| Invocation.method(#abort, [exception, stackTrace]), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| void add(List<int>? data) => super.noSuchMethod( |
| Invocation.method(#add, [data]), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| void write(Object? object) => super.noSuchMethod( |
| Invocation.method(#write, [object]), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| void writeAll(Iterable<dynamic>? objects, [String? separator = '']) => |
| super.noSuchMethod( |
| Invocation.method(#writeAll, [objects, separator]), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| void writeln([Object? object = '']) => super.noSuchMethod( |
| Invocation.method(#writeln, [object]), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| void writeCharCode(int? charCode) => super.noSuchMethod( |
| Invocation.method(#writeCharCode, [charCode]), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| void addError(Object? error, [StackTrace? stackTrace]) => super.noSuchMethod( |
| Invocation.method(#addError, [error, stackTrace]), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i13.Future<dynamic> addStream(_i13.Stream<List<int>>? stream) => |
| (super.noSuchMethod( |
| Invocation.method(#addStream, [stream]), |
| returnValue: _i13.Future<dynamic>.value(), |
| ) |
| as _i13.Future<dynamic>); |
| |
| @override |
| _i13.Future<dynamic> flush() => |
| (super.noSuchMethod( |
| Invocation.method(#flush, []), |
| returnValue: _i13.Future<dynamic>.value(), |
| ) |
| as _i13.Future<dynamic>); |
| } |
| |
| /// A class which mocks [HttpClientResponse]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockHttpClientResponse extends _i1.Mock |
| implements _i11.HttpClientResponse { |
| MockHttpClientResponse() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| int get statusCode => |
| (super.noSuchMethod(Invocation.getter(#statusCode), returnValue: 0) |
| as int); |
| |
| @override |
| String get reasonPhrase => |
| (super.noSuchMethod( |
| Invocation.getter(#reasonPhrase), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#reasonPhrase), |
| ), |
| ) |
| as String); |
| |
| @override |
| int get contentLength => |
| (super.noSuchMethod(Invocation.getter(#contentLength), returnValue: 0) |
| as int); |
| |
| @override |
| _i11.HttpClientResponseCompressionState get compressionState => |
| (super.noSuchMethod( |
| Invocation.getter(#compressionState), |
| returnValue: _i11.HttpClientResponseCompressionState.notCompressed, |
| ) |
| as _i11.HttpClientResponseCompressionState); |
| |
| @override |
| bool get persistentConnection => |
| (super.noSuchMethod( |
| Invocation.getter(#persistentConnection), |
| returnValue: false, |
| ) |
| as bool); |
| |
| @override |
| bool get isRedirect => |
| (super.noSuchMethod(Invocation.getter(#isRedirect), returnValue: false) |
| as bool); |
| |
| @override |
| List<_i11.RedirectInfo> get redirects => |
| (super.noSuchMethod( |
| Invocation.getter(#redirects), |
| returnValue: <_i11.RedirectInfo>[], |
| ) |
| as List<_i11.RedirectInfo>); |
| |
| @override |
| _i11.HttpHeaders get headers => |
| (super.noSuchMethod( |
| Invocation.getter(#headers), |
| returnValue: _FakeHttpHeaders_37(this, Invocation.getter(#headers)), |
| ) |
| as _i11.HttpHeaders); |
| |
| @override |
| List<_i11.Cookie> get cookies => |
| (super.noSuchMethod( |
| Invocation.getter(#cookies), |
| returnValue: <_i11.Cookie>[], |
| ) |
| as List<_i11.Cookie>); |
| |
| @override |
| bool get isBroadcast => |
| (super.noSuchMethod(Invocation.getter(#isBroadcast), returnValue: false) |
| as bool); |
| |
| @override |
| _i13.Future<int> get length => |
| (super.noSuchMethod( |
| Invocation.getter(#length), |
| returnValue: _i13.Future<int>.value(0), |
| ) |
| as _i13.Future<int>); |
| |
| @override |
| _i13.Future<bool> get isEmpty => |
| (super.noSuchMethod( |
| Invocation.getter(#isEmpty), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Future<List<int>> get first => |
| (super.noSuchMethod( |
| Invocation.getter(#first), |
| returnValue: _i13.Future<List<int>>.value(<int>[]), |
| ) |
| as _i13.Future<List<int>>); |
| |
| @override |
| _i13.Future<List<int>> get last => |
| (super.noSuchMethod( |
| Invocation.getter(#last), |
| returnValue: _i13.Future<List<int>>.value(<int>[]), |
| ) |
| as _i13.Future<List<int>>); |
| |
| @override |
| _i13.Future<List<int>> get single => |
| (super.noSuchMethod( |
| Invocation.getter(#single), |
| returnValue: _i13.Future<List<int>>.value(<int>[]), |
| ) |
| as _i13.Future<List<int>>); |
| |
| @override |
| _i13.Future<_i11.HttpClientResponse> redirect([ |
| String? method, |
| Uri? url, |
| bool? followLoops, |
| ]) => |
| (super.noSuchMethod( |
| Invocation.method(#redirect, [method, url, followLoops]), |
| returnValue: _i13.Future<_i11.HttpClientResponse>.value( |
| _FakeHttpClientResponse_38( |
| this, |
| Invocation.method(#redirect, [method, url, followLoops]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.HttpClientResponse>); |
| |
| @override |
| _i13.Future<_i11.Socket> detachSocket() => |
| (super.noSuchMethod( |
| Invocation.method(#detachSocket, []), |
| returnValue: _i13.Future<_i11.Socket>.value( |
| _FakeSocket_40(this, Invocation.method(#detachSocket, [])), |
| ), |
| ) |
| as _i13.Future<_i11.Socket>); |
| |
| @override |
| _i13.Stream<List<int>> asBroadcastStream({ |
| void Function(_i13.StreamSubscription<List<int>>)? onListen, |
| void Function(_i13.StreamSubscription<List<int>>)? onCancel, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#asBroadcastStream, [], { |
| #onListen: onListen, |
| #onCancel: onCancel, |
| }), |
| returnValue: _i13.Stream<List<int>>.empty(), |
| ) |
| as _i13.Stream<List<int>>); |
| |
| @override |
| _i13.StreamSubscription<List<int>> listen( |
| void Function(List<int>)? onData, { |
| Function? onError, |
| void Function()? onDone, |
| bool? cancelOnError, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listen, |
| [onData], |
| { |
| #onError: onError, |
| #onDone: onDone, |
| #cancelOnError: cancelOnError, |
| }, |
| ), |
| returnValue: _FakeStreamSubscription_41<List<int>>( |
| this, |
| Invocation.method( |
| #listen, |
| [onData], |
| { |
| #onError: onError, |
| #onDone: onDone, |
| #cancelOnError: cancelOnError, |
| }, |
| ), |
| ), |
| ) |
| as _i13.StreamSubscription<List<int>>); |
| |
| @override |
| _i13.Stream<List<int>> where(bool Function(List<int>)? test) => |
| (super.noSuchMethod( |
| Invocation.method(#where, [test]), |
| returnValue: _i13.Stream<List<int>>.empty(), |
| ) |
| as _i13.Stream<List<int>>); |
| |
| @override |
| _i13.Stream<S> map<S>(S Function(List<int>)? convert) => |
| (super.noSuchMethod( |
| Invocation.method(#map, [convert]), |
| returnValue: _i13.Stream<S>.empty(), |
| ) |
| as _i13.Stream<S>); |
| |
| @override |
| _i13.Stream<E> asyncMap<E>(_i13.FutureOr<E> Function(List<int>)? convert) => |
| (super.noSuchMethod( |
| Invocation.method(#asyncMap, [convert]), |
| returnValue: _i13.Stream<E>.empty(), |
| ) |
| as _i13.Stream<E>); |
| |
| @override |
| _i13.Stream<E> asyncExpand<E>(_i13.Stream<E>? Function(List<int>)? convert) => |
| (super.noSuchMethod( |
| Invocation.method(#asyncExpand, [convert]), |
| returnValue: _i13.Stream<E>.empty(), |
| ) |
| as _i13.Stream<E>); |
| |
| @override |
| _i13.Stream<List<int>> handleError( |
| Function? onError, { |
| bool Function(dynamic)? test, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#handleError, [onError], {#test: test}), |
| returnValue: _i13.Stream<List<int>>.empty(), |
| ) |
| as _i13.Stream<List<int>>); |
| |
| @override |
| _i13.Stream<S> expand<S>(Iterable<S> Function(List<int>)? convert) => |
| (super.noSuchMethod( |
| Invocation.method(#expand, [convert]), |
| returnValue: _i13.Stream<S>.empty(), |
| ) |
| as _i13.Stream<S>); |
| |
| @override |
| _i13.Future<dynamic> pipe(_i13.StreamConsumer<List<int>>? streamConsumer) => |
| (super.noSuchMethod( |
| Invocation.method(#pipe, [streamConsumer]), |
| returnValue: _i13.Future<dynamic>.value(), |
| ) |
| as _i13.Future<dynamic>); |
| |
| @override |
| _i13.Stream<S> transform<S>( |
| _i13.StreamTransformer<List<int>, S>? streamTransformer, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#transform, [streamTransformer]), |
| returnValue: _i13.Stream<S>.empty(), |
| ) |
| as _i13.Stream<S>); |
| |
| @override |
| _i13.Future<List<int>> reduce( |
| List<int> Function(List<int>, List<int>)? combine, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#reduce, [combine]), |
| returnValue: _i13.Future<List<int>>.value(<int>[]), |
| ) |
| as _i13.Future<List<int>>); |
| |
| @override |
| _i13.Future<S> fold<S>(S? initialValue, S Function(S, List<int>)? combine) => |
| (super.noSuchMethod( |
| Invocation.method(#fold, [initialValue, combine]), |
| returnValue: |
| _i20.ifNotNull( |
| _i20.dummyValueOrNull<S>( |
| this, |
| Invocation.method(#fold, [initialValue, combine]), |
| ), |
| (S v) => _i13.Future<S>.value(v), |
| ) ?? |
| _FakeFuture_42<S>( |
| this, |
| Invocation.method(#fold, [initialValue, combine]), |
| ), |
| ) |
| as _i13.Future<S>); |
| |
| @override |
| _i13.Future<String> join([String? separator = '']) => |
| (super.noSuchMethod( |
| Invocation.method(#join, [separator]), |
| returnValue: _i13.Future<String>.value( |
| _i20.dummyValue<String>( |
| this, |
| Invocation.method(#join, [separator]), |
| ), |
| ), |
| ) |
| as _i13.Future<String>); |
| |
| @override |
| _i13.Future<bool> contains(Object? needle) => |
| (super.noSuchMethod( |
| Invocation.method(#contains, [needle]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Future<void> forEach(void Function(List<int>)? action) => |
| (super.noSuchMethod( |
| Invocation.method(#forEach, [action]), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<bool> every(bool Function(List<int>)? test) => |
| (super.noSuchMethod( |
| Invocation.method(#every, [test]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Future<bool> any(bool Function(List<int>)? test) => |
| (super.noSuchMethod( |
| Invocation.method(#any, [test]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Stream<R> cast<R>() => |
| (super.noSuchMethod( |
| Invocation.method(#cast, []), |
| returnValue: _i13.Stream<R>.empty(), |
| ) |
| as _i13.Stream<R>); |
| |
| @override |
| _i13.Future<List<List<int>>> toList() => |
| (super.noSuchMethod( |
| Invocation.method(#toList, []), |
| returnValue: _i13.Future<List<List<int>>>.value(<List<int>>[]), |
| ) |
| as _i13.Future<List<List<int>>>); |
| |
| @override |
| _i13.Future<Set<List<int>>> toSet() => |
| (super.noSuchMethod( |
| Invocation.method(#toSet, []), |
| returnValue: _i13.Future<Set<List<int>>>.value(<List<int>>{}), |
| ) |
| as _i13.Future<Set<List<int>>>); |
| |
| @override |
| _i13.Future<E> drain<E>([E? futureValue]) => |
| (super.noSuchMethod( |
| Invocation.method(#drain, [futureValue]), |
| returnValue: |
| _i20.ifNotNull( |
| _i20.dummyValueOrNull<E>( |
| this, |
| Invocation.method(#drain, [futureValue]), |
| ), |
| (E v) => _i13.Future<E>.value(v), |
| ) ?? |
| _FakeFuture_42<E>( |
| this, |
| Invocation.method(#drain, [futureValue]), |
| ), |
| ) |
| as _i13.Future<E>); |
| |
| @override |
| _i13.Stream<List<int>> take(int? count) => |
| (super.noSuchMethod( |
| Invocation.method(#take, [count]), |
| returnValue: _i13.Stream<List<int>>.empty(), |
| ) |
| as _i13.Stream<List<int>>); |
| |
| @override |
| _i13.Stream<List<int>> takeWhile(bool Function(List<int>)? test) => |
| (super.noSuchMethod( |
| Invocation.method(#takeWhile, [test]), |
| returnValue: _i13.Stream<List<int>>.empty(), |
| ) |
| as _i13.Stream<List<int>>); |
| |
| @override |
| _i13.Stream<List<int>> skip(int? count) => |
| (super.noSuchMethod( |
| Invocation.method(#skip, [count]), |
| returnValue: _i13.Stream<List<int>>.empty(), |
| ) |
| as _i13.Stream<List<int>>); |
| |
| @override |
| _i13.Stream<List<int>> skipWhile(bool Function(List<int>)? test) => |
| (super.noSuchMethod( |
| Invocation.method(#skipWhile, [test]), |
| returnValue: _i13.Stream<List<int>>.empty(), |
| ) |
| as _i13.Stream<List<int>>); |
| |
| @override |
| _i13.Stream<List<int>> distinct([ |
| bool Function(List<int>, List<int>)? equals, |
| ]) => |
| (super.noSuchMethod( |
| Invocation.method(#distinct, [equals]), |
| returnValue: _i13.Stream<List<int>>.empty(), |
| ) |
| as _i13.Stream<List<int>>); |
| |
| @override |
| _i13.Future<List<int>> firstWhere( |
| bool Function(List<int>)? test, { |
| List<int> Function()? orElse, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#firstWhere, [test], {#orElse: orElse}), |
| returnValue: _i13.Future<List<int>>.value(<int>[]), |
| ) |
| as _i13.Future<List<int>>); |
| |
| @override |
| _i13.Future<List<int>> lastWhere( |
| bool Function(List<int>)? test, { |
| List<int> Function()? orElse, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#lastWhere, [test], {#orElse: orElse}), |
| returnValue: _i13.Future<List<int>>.value(<int>[]), |
| ) |
| as _i13.Future<List<int>>); |
| |
| @override |
| _i13.Future<List<int>> singleWhere( |
| bool Function(List<int>)? test, { |
| List<int> Function()? orElse, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#singleWhere, [test], {#orElse: orElse}), |
| returnValue: _i13.Future<List<int>>.value(<int>[]), |
| ) |
| as _i13.Future<List<int>>); |
| |
| @override |
| _i13.Future<List<int>> elementAt(int? index) => |
| (super.noSuchMethod( |
| Invocation.method(#elementAt, [index]), |
| returnValue: _i13.Future<List<int>>.value(<int>[]), |
| ) |
| as _i13.Future<List<int>>); |
| |
| @override |
| _i13.Stream<List<int>> timeout( |
| Duration? timeLimit, { |
| void Function(_i13.EventSink<List<int>>)? onTimeout, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#timeout, [timeLimit], {#onTimeout: onTimeout}), |
| returnValue: _i13.Stream<List<int>>.empty(), |
| ) |
| as _i13.Stream<List<int>>); |
| } |
| |
| /// A class which mocks [LuciBuildService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockLuciBuildService extends _i1.Mock implements _i17.LuciBuildService { |
| MockLuciBuildService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i13.Future<Iterable<_i6.Build>> getTryBuildsByPullRequest({ |
| required _i7.PullRequest? pullRequest, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#getTryBuildsByPullRequest, [], { |
| #pullRequest: pullRequest, |
| }), |
| returnValue: _i13.Future<Iterable<_i6.Build>>.value(<_i6.Build>[]), |
| ) |
| as _i13.Future<Iterable<_i6.Build>>); |
| |
| @override |
| _i13.Future<Iterable<_i6.Build>> getProdBuilds({ |
| String? builderName, |
| String? sha, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#getProdBuilds, [], { |
| #builderName: builderName, |
| #sha: sha, |
| }), |
| returnValue: _i13.Future<Iterable<_i6.Build>>.value(<_i6.Build>[]), |
| ) |
| as _i13.Future<Iterable<_i6.Build>>); |
| |
| @override |
| _i13.Future<List<_i28.Target>> scheduleTryBuilds({ |
| required List<_i28.Target>? targets, |
| required _i7.PullRequest? pullRequest, |
| required _i29.EngineArtifacts? engineArtifacts, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#scheduleTryBuilds, [], { |
| #targets: targets, |
| #pullRequest: pullRequest, |
| #engineArtifacts: engineArtifacts, |
| }), |
| returnValue: _i13.Future<List<_i28.Target>>.value(<_i28.Target>[]), |
| ) |
| as _i13.Future<List<_i28.Target>>); |
| |
| @override |
| _i13.Future<void> cancelBuilds({ |
| required _i7.PullRequest? pullRequest, |
| required String? reason, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#cancelBuilds, [], { |
| #pullRequest: pullRequest, |
| #reason: reason, |
| }), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<void> cancelBuildsBySha({ |
| required String? sha, |
| required String? reason, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#cancelBuildsBySha, [], { |
| #sha: sha, |
| #reason: reason, |
| }), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<_i6.Build> reschedulePresubmitBuild({ |
| required String? builderName, |
| required _i6.Build? build, |
| required int? nextAttempt, |
| required _i30.PresubmitUserData? userData, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#reschedulePresubmitBuild, [], { |
| #builderName: builderName, |
| #build: build, |
| #nextAttempt: nextAttempt, |
| #userData: userData, |
| }), |
| returnValue: _i13.Future<_i6.Build>.value( |
| _FakeBuild_4( |
| this, |
| Invocation.method(#reschedulePresubmitBuild, [], { |
| #builderName: builderName, |
| #build: build, |
| #nextAttempt: nextAttempt, |
| #userData: userData, |
| }), |
| ), |
| ), |
| ) |
| as _i13.Future<_i6.Build>); |
| |
| @override |
| _i13.Future<void> reschedulePostsubmitBuildUsingCheckRunEvent( |
| _i31.CheckRunEvent? checkRunEvent, { |
| required _i32.CommitRef? commit, |
| required _i28.Target? target, |
| required _i33.Task? task, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #reschedulePostsubmitBuildUsingCheckRunEvent, |
| [checkRunEvent], |
| {#commit: commit, #target: target, #task: task}, |
| ), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<_i6.Build> getBuildById( |
| _i34.Int64? id, { |
| _i6.BuildMask? buildMask, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#getBuildById, [id], {#buildMask: buildMask}), |
| returnValue: _i13.Future<_i6.Build>.value( |
| _FakeBuild_4( |
| this, |
| Invocation.method(#getBuildById, [id], {#buildMask: buildMask}), |
| ), |
| ), |
| ) |
| as _i13.Future<_i6.Build>); |
| |
| @override |
| _i13.Future<Set<String>> getAvailableBuilderSet({ |
| String? project = 'flutter', |
| String? bucket = 'prod', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#getAvailableBuilderSet, [], { |
| #project: project, |
| #bucket: bucket, |
| }), |
| returnValue: _i13.Future<Set<String>>.value(<String>{}), |
| ) |
| as _i13.Future<Set<String>>); |
| |
| @override |
| _i13.Future<List<_i35.PendingTask>> schedulePostsubmitBuilds({ |
| required _i32.CommitRef? commit, |
| required List<_i35.PendingTask>? toBeScheduled, |
| String? contentHash, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#schedulePostsubmitBuilds, [], { |
| #commit: commit, |
| #toBeScheduled: toBeScheduled, |
| #contentHash: contentHash, |
| }), |
| returnValue: _i13.Future<List<_i35.PendingTask>>.value( |
| <_i35.PendingTask>[], |
| ), |
| ) |
| as _i13.Future<List<_i35.PendingTask>>); |
| |
| @override |
| _i13.Future<void> scheduleMergeGroupBuilds({ |
| required _i32.CommitRef? commit, |
| required List<_i28.Target>? targets, |
| String? contentHash, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#scheduleMergeGroupBuilds, [], { |
| #commit: commit, |
| #targets: targets, |
| #contentHash: contentHash, |
| }), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<_i7.CheckRun> createPostsubmitCheckRun( |
| _i32.CommitRef? commit, |
| _i28.Target? target, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#createPostsubmitCheckRun, [commit, target]), |
| returnValue: _i13.Future<_i7.CheckRun>.value( |
| _FakeCheckRun_20( |
| this, |
| Invocation.method(#createPostsubmitCheckRun, [commit, target]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.CheckRun>); |
| |
| @override |
| _i13.Future<bool> rerunBuilder({ |
| required _i32.CommitRef? commit, |
| required _i28.Target? target, |
| required _i33.Task? task, |
| Iterable<_i36.BuildTag>? tags = const [], |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#rerunBuilder, [], { |
| #commit: commit, |
| #target: target, |
| #task: task, |
| #tags: tags, |
| }), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Future<bool> rerunDartInternalReleaseBuilder({ |
| required _i32.CommitRef? commit, |
| required _i33.Task? task, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#rerunDartInternalReleaseBuilder, [], { |
| #commit: commit, |
| #task: task, |
| }), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| } |
| |
| /// A class which mocks [ProcessManager]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockProcessManager extends _i1.Mock implements _i37.ProcessManager { |
| MockProcessManager() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i13.Future<_i11.Process> start( |
| List<Object>? command, { |
| String? workingDirectory, |
| Map<String, String>? environment, |
| bool? includeParentEnvironment = true, |
| bool? runInShell = false, |
| _i11.ProcessStartMode? mode = _i11.ProcessStartMode.normal, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #start, |
| [command], |
| { |
| #workingDirectory: workingDirectory, |
| #environment: environment, |
| #includeParentEnvironment: includeParentEnvironment, |
| #runInShell: runInShell, |
| #mode: mode, |
| }, |
| ), |
| returnValue: _i13.Future<_i11.Process>.value( |
| _FakeProcess_43( |
| this, |
| Invocation.method( |
| #start, |
| [command], |
| { |
| #workingDirectory: workingDirectory, |
| #environment: environment, |
| #includeParentEnvironment: includeParentEnvironment, |
| #runInShell: runInShell, |
| #mode: mode, |
| }, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.Process>); |
| |
| @override |
| _i13.Future<_i11.ProcessResult> run( |
| List<Object>? command, { |
| String? workingDirectory, |
| Map<String, String>? environment, |
| bool? includeParentEnvironment = true, |
| bool? runInShell = false, |
| _i12.Encoding? stdoutEncoding = const _i11.SystemEncoding(), |
| _i12.Encoding? stderrEncoding = const _i11.SystemEncoding(), |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #run, |
| [command], |
| { |
| #workingDirectory: workingDirectory, |
| #environment: environment, |
| #includeParentEnvironment: includeParentEnvironment, |
| #runInShell: runInShell, |
| #stdoutEncoding: stdoutEncoding, |
| #stderrEncoding: stderrEncoding, |
| }, |
| ), |
| returnValue: _i13.Future<_i11.ProcessResult>.value( |
| _i20.dummyValue<_i11.ProcessResult>( |
| this, |
| Invocation.method( |
| #run, |
| [command], |
| { |
| #workingDirectory: workingDirectory, |
| #environment: environment, |
| #includeParentEnvironment: includeParentEnvironment, |
| #runInShell: runInShell, |
| #stdoutEncoding: stdoutEncoding, |
| #stderrEncoding: stderrEncoding, |
| }, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i11.ProcessResult>); |
| |
| @override |
| _i11.ProcessResult runSync( |
| List<Object>? command, { |
| String? workingDirectory, |
| Map<String, String>? environment, |
| bool? includeParentEnvironment = true, |
| bool? runInShell = false, |
| _i12.Encoding? stdoutEncoding = const _i11.SystemEncoding(), |
| _i12.Encoding? stderrEncoding = const _i11.SystemEncoding(), |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #runSync, |
| [command], |
| { |
| #workingDirectory: workingDirectory, |
| #environment: environment, |
| #includeParentEnvironment: includeParentEnvironment, |
| #runInShell: runInShell, |
| #stdoutEncoding: stdoutEncoding, |
| #stderrEncoding: stderrEncoding, |
| }, |
| ), |
| returnValue: _i20.dummyValue<_i11.ProcessResult>( |
| this, |
| Invocation.method( |
| #runSync, |
| [command], |
| { |
| #workingDirectory: workingDirectory, |
| #environment: environment, |
| #includeParentEnvironment: includeParentEnvironment, |
| #runInShell: runInShell, |
| #stdoutEncoding: stdoutEncoding, |
| #stderrEncoding: stderrEncoding, |
| }, |
| ), |
| ), |
| ) |
| as _i11.ProcessResult); |
| |
| @override |
| bool canRun(dynamic executable, {String? workingDirectory}) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #canRun, |
| [executable], |
| {#workingDirectory: workingDirectory}, |
| ), |
| returnValue: false, |
| ) |
| as bool); |
| |
| @override |
| bool killPid( |
| int? pid, [ |
| _i11.ProcessSignal? signal = _i11.ProcessSignal.sigterm, |
| ]) => |
| (super.noSuchMethod( |
| Invocation.method(#killPid, [pid, signal]), |
| returnValue: false, |
| ) |
| as bool); |
| } |
| |
| /// A class which mocks [SearchService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockSearchService extends _i1.Mock implements _i7.SearchService { |
| MockSearchService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i7.GitHub get github => |
| (super.noSuchMethod( |
| Invocation.getter(#github), |
| returnValue: _FakeGitHub_9(this, Invocation.getter(#github)), |
| ) |
| as _i7.GitHub); |
| |
| @override |
| _i13.Stream<_i7.Repository> repositories( |
| String? query, { |
| String? sort, |
| int? pages = 2, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #repositories, |
| [query], |
| {#sort: sort, #pages: pages}, |
| ), |
| returnValue: _i13.Stream<_i7.Repository>.empty(), |
| ) |
| as _i13.Stream<_i7.Repository>); |
| |
| @override |
| _i13.Stream<_i7.CodeSearchResults> code( |
| String? query, { |
| int? pages, |
| int? perPage, |
| String? language, |
| String? filename, |
| String? extension, |
| String? user, |
| String? org, |
| String? repo, |
| String? fork, |
| String? path, |
| String? size, |
| bool? inFile = true, |
| bool? inPath = false, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #code, |
| [query], |
| { |
| #pages: pages, |
| #perPage: perPage, |
| #language: language, |
| #filename: filename, |
| #extension: extension, |
| #user: user, |
| #org: org, |
| #repo: repo, |
| #fork: fork, |
| #path: path, |
| #size: size, |
| #inFile: inFile, |
| #inPath: inPath, |
| }, |
| ), |
| returnValue: _i13.Stream<_i7.CodeSearchResults>.empty(), |
| ) |
| as _i13.Stream<_i7.CodeSearchResults>); |
| |
| @override |
| _i13.Stream<_i7.Issue> issues( |
| String? query, { |
| String? sort, |
| int? pages = 2, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#issues, [query], {#sort: sort, #pages: pages}), |
| returnValue: _i13.Stream<_i7.Issue>.empty(), |
| ) |
| as _i13.Stream<_i7.Issue>); |
| |
| @override |
| _i13.Stream<_i7.User> users( |
| String? query, { |
| String? sort, |
| int? pages = 2, |
| int? perPage = 30, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #users, |
| [query], |
| {#sort: sort, #pages: pages, #perPage: perPage}, |
| ), |
| returnValue: _i13.Stream<_i7.User>.empty(), |
| ) |
| as _i13.Stream<_i7.User>); |
| } |
| |
| /// A class which mocks [TabledataResource]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockTabledataResource extends _i1.Mock implements _i4.TabledataResource { |
| MockTabledataResource() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i13.Future<_i4.TableDataInsertAllResponse> insertAll( |
| _i4.TableDataInsertAllRequest? request, |
| String? projectId, |
| String? datasetId, |
| String? tableId, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #insertAll, |
| [request, projectId, datasetId, tableId], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i13.Future<_i4.TableDataInsertAllResponse>.value( |
| _FakeTableDataInsertAllResponse_44( |
| this, |
| Invocation.method( |
| #insertAll, |
| [request, projectId, datasetId, tableId], |
| {#$fields: $fields}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i4.TableDataInsertAllResponse>); |
| |
| @override |
| _i13.Future<_i4.TableDataList> list( |
| String? projectId, |
| String? datasetId, |
| String? tableId, { |
| bool? formatOptions_useInt64Timestamp, |
| int? maxResults, |
| String? pageToken, |
| String? selectedFields, |
| String? startIndex, |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #list, |
| [projectId, datasetId, tableId], |
| { |
| #formatOptions_useInt64Timestamp: |
| formatOptions_useInt64Timestamp, |
| #maxResults: maxResults, |
| #pageToken: pageToken, |
| #selectedFields: selectedFields, |
| #startIndex: startIndex, |
| #$fields: $fields, |
| }, |
| ), |
| returnValue: _i13.Future<_i4.TableDataList>.value( |
| _FakeTableDataList_45( |
| this, |
| Invocation.method( |
| #list, |
| [projectId, datasetId, tableId], |
| { |
| #formatOptions_useInt64Timestamp: |
| formatOptions_useInt64Timestamp, |
| #maxResults: maxResults, |
| #pageToken: pageToken, |
| #selectedFields: selectedFields, |
| #startIndex: startIndex, |
| #$fields: $fields, |
| }, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i4.TableDataList>); |
| } |
| |
| /// A class which mocks [UsersService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockUsersService extends _i1.Mock implements _i7.UsersService { |
| MockUsersService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i7.GitHub get github => |
| (super.noSuchMethod( |
| Invocation.getter(#github), |
| returnValue: _FakeGitHub_9(this, Invocation.getter(#github)), |
| ) |
| as _i7.GitHub); |
| |
| @override |
| _i13.Future<_i7.User> getUser(String? name) => |
| (super.noSuchMethod( |
| Invocation.method(#getUser, [name]), |
| returnValue: _i13.Future<_i7.User>.value( |
| _FakeUser_24(this, Invocation.method(#getUser, [name])), |
| ), |
| ) |
| as _i13.Future<_i7.User>); |
| |
| @override |
| _i13.Future<_i7.CurrentUser> editCurrentUser({ |
| String? name, |
| String? email, |
| String? blog, |
| String? company, |
| String? location, |
| bool? hireable, |
| String? bio, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#editCurrentUser, [], { |
| #name: name, |
| #email: email, |
| #blog: blog, |
| #company: company, |
| #location: location, |
| #hireable: hireable, |
| #bio: bio, |
| }), |
| returnValue: _i13.Future<_i7.CurrentUser>.value( |
| _FakeCurrentUser_46( |
| this, |
| Invocation.method(#editCurrentUser, [], { |
| #name: name, |
| #email: email, |
| #blog: blog, |
| #company: company, |
| #location: location, |
| #hireable: hireable, |
| #bio: bio, |
| }), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.CurrentUser>); |
| |
| @override |
| _i13.Stream<_i7.User> getUsers(List<String>? names, {int? pages}) => |
| (super.noSuchMethod( |
| Invocation.method(#getUsers, [names], {#pages: pages}), |
| returnValue: _i13.Stream<_i7.User>.empty(), |
| ) |
| as _i13.Stream<_i7.User>); |
| |
| @override |
| _i13.Future<_i7.CurrentUser> getCurrentUser() => |
| (super.noSuchMethod( |
| Invocation.method(#getCurrentUser, []), |
| returnValue: _i13.Future<_i7.CurrentUser>.value( |
| _FakeCurrentUser_46(this, Invocation.method(#getCurrentUser, [])), |
| ), |
| ) |
| as _i13.Future<_i7.CurrentUser>); |
| |
| @override |
| _i13.Future<bool> isUser(String? name) => |
| (super.noSuchMethod( |
| Invocation.method(#isUser, [name]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Stream<_i7.User> listUsers({int? pages, int? since}) => |
| (super.noSuchMethod( |
| Invocation.method(#listUsers, [], {#pages: pages, #since: since}), |
| returnValue: _i13.Stream<_i7.User>.empty(), |
| ) |
| as _i13.Stream<_i7.User>); |
| |
| @override |
| _i13.Stream<_i7.UserEmail> listEmails() => |
| (super.noSuchMethod( |
| Invocation.method(#listEmails, []), |
| returnValue: _i13.Stream<_i7.UserEmail>.empty(), |
| ) |
| as _i13.Stream<_i7.UserEmail>); |
| |
| @override |
| _i13.Stream<_i7.UserEmail> addEmails(List<String>? emails) => |
| (super.noSuchMethod( |
| Invocation.method(#addEmails, [emails]), |
| returnValue: _i13.Stream<_i7.UserEmail>.empty(), |
| ) |
| as _i13.Stream<_i7.UserEmail>); |
| |
| @override |
| _i13.Future<bool> deleteEmails(List<String>? emails) => |
| (super.noSuchMethod( |
| Invocation.method(#deleteEmails, [emails]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Stream<_i7.User> listUserFollowers(String? user) => |
| (super.noSuchMethod( |
| Invocation.method(#listUserFollowers, [user]), |
| returnValue: _i13.Stream<_i7.User>.empty(), |
| ) |
| as _i13.Stream<_i7.User>); |
| |
| @override |
| _i13.Future<bool> isFollowingUser(String? user) => |
| (super.noSuchMethod( |
| Invocation.method(#isFollowingUser, [user]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Future<bool> isUserFollowing(String? user, String? target) => |
| (super.noSuchMethod( |
| Invocation.method(#isUserFollowing, [user, target]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Future<bool> followUser(String? user) => |
| (super.noSuchMethod( |
| Invocation.method(#followUser, [user]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Future<bool> unfollowUser(String? user) => |
| (super.noSuchMethod( |
| Invocation.method(#unfollowUser, [user]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| _i13.Stream<_i7.User> listCurrentUserFollowers() => |
| (super.noSuchMethod( |
| Invocation.method(#listCurrentUserFollowers, []), |
| returnValue: _i13.Stream<_i7.User>.empty(), |
| ) |
| as _i13.Stream<_i7.User>); |
| |
| @override |
| _i13.Stream<_i7.User> listCurrentUserFollowing() => |
| (super.noSuchMethod( |
| Invocation.method(#listCurrentUserFollowing, []), |
| returnValue: _i13.Stream<_i7.User>.empty(), |
| ) |
| as _i13.Stream<_i7.User>); |
| |
| @override |
| _i13.Stream<_i7.PublicKey> listPublicKeys([String? userLogin]) => |
| (super.noSuchMethod( |
| Invocation.method(#listPublicKeys, [userLogin]), |
| returnValue: _i13.Stream<_i7.PublicKey>.empty(), |
| ) |
| as _i13.Stream<_i7.PublicKey>); |
| |
| @override |
| _i13.Future<_i7.PublicKey> createPublicKey(_i7.CreatePublicKey? key) => |
| (super.noSuchMethod( |
| Invocation.method(#createPublicKey, [key]), |
| returnValue: _i13.Future<_i7.PublicKey>.value( |
| _FakePublicKey_47( |
| this, |
| Invocation.method(#createPublicKey, [key]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.PublicKey>); |
| } |
| |
| /// A class which mocks [ProjectsDatabasesDocumentsResource]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockProjectsDatabasesDocumentsResource extends _i1.Mock |
| implements _i14.ProjectsDatabasesDocumentsResource { |
| MockProjectsDatabasesDocumentsResource() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i13.Future<List<_i14.BatchGetDocumentsResponseElement>> batchGet( |
| _i14.BatchGetDocumentsRequest? request, |
| String? database, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #batchGet, |
| [request, database], |
| {#$fields: $fields}, |
| ), |
| returnValue: |
| _i13.Future<List<_i14.BatchGetDocumentsResponseElement>>.value( |
| <_i14.BatchGetDocumentsResponseElement>[], |
| ), |
| ) |
| as _i13.Future<List<_i14.BatchGetDocumentsResponseElement>>); |
| |
| @override |
| _i13.Future<_i14.BatchWriteResponse> batchWrite( |
| _i14.BatchWriteRequest? request, |
| String? database, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #batchWrite, |
| [request, database], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i13.Future<_i14.BatchWriteResponse>.value( |
| _FakeBatchWriteResponse_48( |
| this, |
| Invocation.method( |
| #batchWrite, |
| [request, database], |
| {#$fields: $fields}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i14.BatchWriteResponse>); |
| |
| @override |
| _i13.Future<_i14.BeginTransactionResponse> beginTransaction( |
| _i14.BeginTransactionRequest? request, |
| String? database, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #beginTransaction, |
| [request, database], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i13.Future<_i14.BeginTransactionResponse>.value( |
| _FakeBeginTransactionResponse_49( |
| this, |
| Invocation.method( |
| #beginTransaction, |
| [request, database], |
| {#$fields: $fields}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i14.BeginTransactionResponse>); |
| |
| @override |
| _i13.Future<_i14.CommitResponse> commit( |
| _i14.CommitRequest? request, |
| String? database, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #commit, |
| [request, database], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i13.Future<_i14.CommitResponse>.value( |
| _FakeCommitResponse_50( |
| this, |
| Invocation.method( |
| #commit, |
| [request, database], |
| {#$fields: $fields}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i14.CommitResponse>); |
| |
| @override |
| _i13.Future<_i14.Document> createDocument( |
| _i14.Document? request, |
| String? parent, |
| String? collectionId, { |
| String? documentId, |
| List<String>? mask_fieldPaths, |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createDocument, |
| [request, parent, collectionId], |
| { |
| #documentId: documentId, |
| #mask_fieldPaths: mask_fieldPaths, |
| #$fields: $fields, |
| }, |
| ), |
| returnValue: _i13.Future<_i14.Document>.value( |
| _FakeDocument_51( |
| this, |
| Invocation.method( |
| #createDocument, |
| [request, parent, collectionId], |
| { |
| #documentId: documentId, |
| #mask_fieldPaths: mask_fieldPaths, |
| #$fields: $fields, |
| }, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i14.Document>); |
| |
| @override |
| _i13.Future<_i15.$Empty> delete( |
| String? name, { |
| bool? currentDocument_exists, |
| String? currentDocument_updateTime, |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #delete, |
| [name], |
| { |
| #currentDocument_exists: currentDocument_exists, |
| #currentDocument_updateTime: currentDocument_updateTime, |
| #$fields: $fields, |
| }, |
| ), |
| returnValue: _i13.Future<_i15.$Empty>.value( |
| _Fake$Empty_52( |
| this, |
| Invocation.method( |
| #delete, |
| [name], |
| { |
| #currentDocument_exists: currentDocument_exists, |
| #currentDocument_updateTime: currentDocument_updateTime, |
| #$fields: $fields, |
| }, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i15.$Empty>); |
| |
| @override |
| _i13.Future<_i14.Document> get( |
| String? name, { |
| List<String>? mask_fieldPaths, |
| String? readTime, |
| String? transaction, |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #get, |
| [name], |
| { |
| #mask_fieldPaths: mask_fieldPaths, |
| #readTime: readTime, |
| #transaction: transaction, |
| #$fields: $fields, |
| }, |
| ), |
| returnValue: _i13.Future<_i14.Document>.value( |
| _FakeDocument_51( |
| this, |
| Invocation.method( |
| #get, |
| [name], |
| { |
| #mask_fieldPaths: mask_fieldPaths, |
| #readTime: readTime, |
| #transaction: transaction, |
| #$fields: $fields, |
| }, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i14.Document>); |
| |
| @override |
| _i13.Future<_i14.ListDocumentsResponse> list( |
| String? parent, |
| String? collectionId, { |
| List<String>? mask_fieldPaths, |
| String? orderBy, |
| int? pageSize, |
| String? pageToken, |
| String? readTime, |
| bool? showMissing, |
| String? transaction, |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #list, |
| [parent, collectionId], |
| { |
| #mask_fieldPaths: mask_fieldPaths, |
| #orderBy: orderBy, |
| #pageSize: pageSize, |
| #pageToken: pageToken, |
| #readTime: readTime, |
| #showMissing: showMissing, |
| #transaction: transaction, |
| #$fields: $fields, |
| }, |
| ), |
| returnValue: _i13.Future<_i14.ListDocumentsResponse>.value( |
| _FakeListDocumentsResponse_53( |
| this, |
| Invocation.method( |
| #list, |
| [parent, collectionId], |
| { |
| #mask_fieldPaths: mask_fieldPaths, |
| #orderBy: orderBy, |
| #pageSize: pageSize, |
| #pageToken: pageToken, |
| #readTime: readTime, |
| #showMissing: showMissing, |
| #transaction: transaction, |
| #$fields: $fields, |
| }, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i14.ListDocumentsResponse>); |
| |
| @override |
| _i13.Future<_i14.ListCollectionIdsResponse> listCollectionIds( |
| _i14.ListCollectionIdsRequest? request, |
| String? parent, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listCollectionIds, |
| [request, parent], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i13.Future<_i14.ListCollectionIdsResponse>.value( |
| _FakeListCollectionIdsResponse_54( |
| this, |
| Invocation.method( |
| #listCollectionIds, |
| [request, parent], |
| {#$fields: $fields}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i14.ListCollectionIdsResponse>); |
| |
| @override |
| _i13.Future<_i14.ListDocumentsResponse> listDocuments( |
| String? parent, |
| String? collectionId, { |
| List<String>? mask_fieldPaths, |
| String? orderBy, |
| int? pageSize, |
| String? pageToken, |
| String? readTime, |
| bool? showMissing, |
| String? transaction, |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listDocuments, |
| [parent, collectionId], |
| { |
| #mask_fieldPaths: mask_fieldPaths, |
| #orderBy: orderBy, |
| #pageSize: pageSize, |
| #pageToken: pageToken, |
| #readTime: readTime, |
| #showMissing: showMissing, |
| #transaction: transaction, |
| #$fields: $fields, |
| }, |
| ), |
| returnValue: _i13.Future<_i14.ListDocumentsResponse>.value( |
| _FakeListDocumentsResponse_53( |
| this, |
| Invocation.method( |
| #listDocuments, |
| [parent, collectionId], |
| { |
| #mask_fieldPaths: mask_fieldPaths, |
| #orderBy: orderBy, |
| #pageSize: pageSize, |
| #pageToken: pageToken, |
| #readTime: readTime, |
| #showMissing: showMissing, |
| #transaction: transaction, |
| #$fields: $fields, |
| }, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i14.ListDocumentsResponse>); |
| |
| @override |
| _i13.Future<_i14.PartitionQueryResponse> partitionQuery( |
| _i14.PartitionQueryRequest? request, |
| String? parent, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #partitionQuery, |
| [request, parent], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i13.Future<_i14.PartitionQueryResponse>.value( |
| _FakePartitionQueryResponse_55( |
| this, |
| Invocation.method( |
| #partitionQuery, |
| [request, parent], |
| {#$fields: $fields}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i14.PartitionQueryResponse>); |
| |
| @override |
| _i13.Future<_i14.Document> patch( |
| _i14.Document? request, |
| String? name, { |
| bool? currentDocument_exists, |
| String? currentDocument_updateTime, |
| List<String>? mask_fieldPaths, |
| List<String>? updateMask_fieldPaths, |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #patch, |
| [request, name], |
| { |
| #currentDocument_exists: currentDocument_exists, |
| #currentDocument_updateTime: currentDocument_updateTime, |
| #mask_fieldPaths: mask_fieldPaths, |
| #updateMask_fieldPaths: updateMask_fieldPaths, |
| #$fields: $fields, |
| }, |
| ), |
| returnValue: _i13.Future<_i14.Document>.value( |
| _FakeDocument_51( |
| this, |
| Invocation.method( |
| #patch, |
| [request, name], |
| { |
| #currentDocument_exists: currentDocument_exists, |
| #currentDocument_updateTime: currentDocument_updateTime, |
| #mask_fieldPaths: mask_fieldPaths, |
| #updateMask_fieldPaths: updateMask_fieldPaths, |
| #$fields: $fields, |
| }, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i14.Document>); |
| |
| @override |
| _i13.Future<_i15.$Empty> rollback( |
| _i14.RollbackRequest? request, |
| String? database, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #rollback, |
| [request, database], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i13.Future<_i15.$Empty>.value( |
| _Fake$Empty_52( |
| this, |
| Invocation.method( |
| #rollback, |
| [request, database], |
| {#$fields: $fields}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i15.$Empty>); |
| |
| @override |
| _i13.Future<List<_i14.RunAggregationQueryResponseElement>> |
| runAggregationQuery( |
| _i14.RunAggregationQueryRequest? request, |
| String? parent, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #runAggregationQuery, |
| [request, parent], |
| {#$fields: $fields}, |
| ), |
| returnValue: |
| _i13.Future< |
| List<_i14.RunAggregationQueryResponseElement> |
| >.value(<_i14.RunAggregationQueryResponseElement>[]), |
| ) |
| as _i13.Future<List<_i14.RunAggregationQueryResponseElement>>); |
| |
| @override |
| _i13.Future<List<_i14.RunQueryResponseElement>> runQuery( |
| _i14.RunQueryRequest? request, |
| String? parent, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #runQuery, |
| [request, parent], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i13.Future<List<_i14.RunQueryResponseElement>>.value( |
| <_i14.RunQueryResponseElement>[], |
| ), |
| ) |
| as _i13.Future<List<_i14.RunQueryResponseElement>>); |
| |
| @override |
| _i13.Future<_i14.WriteResponse> write( |
| _i14.WriteRequest? request, |
| String? database, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#write, [request, database], {#$fields: $fields}), |
| returnValue: _i13.Future<_i14.WriteResponse>.value( |
| _FakeWriteResponse_56( |
| this, |
| Invocation.method( |
| #write, |
| [request, database], |
| {#$fields: $fields}, |
| ), |
| ), |
| ), |
| ) |
| as _i13.Future<_i14.WriteResponse>); |
| } |
| |
| /// A class which mocks [BeginTransactionResponse]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockBeginTransactionResponse extends _i1.Mock |
| implements _i14.BeginTransactionResponse { |
| MockBeginTransactionResponse() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| List<int> get transactionAsBytes => |
| (super.noSuchMethod( |
| Invocation.getter(#transactionAsBytes), |
| returnValue: <int>[], |
| ) |
| as List<int>); |
| |
| @override |
| set transaction(String? value) => super.noSuchMethod( |
| Invocation.setter(#transaction, value), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set transactionAsBytes(List<int>? bytes_) => super.noSuchMethod( |
| Invocation.setter(#transactionAsBytes, bytes_), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| Map<String, dynamic> toJson() => |
| (super.noSuchMethod( |
| Invocation.method(#toJson, []), |
| returnValue: <String, dynamic>{}, |
| ) |
| as Map<String, dynamic>); |
| } |
| |
| /// A class which mocks [PullRequestLabelProcessor]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockPullRequestLabelProcessor extends _i1.Mock |
| implements _i17.PullRequestLabelProcessor { |
| MockPullRequestLabelProcessor() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i2.Config get config => |
| (super.noSuchMethod( |
| Invocation.getter(#config), |
| returnValue: _FakeConfig_0(this, Invocation.getter(#config)), |
| ) |
| as _i2.Config); |
| |
| @override |
| _i9.GithubService get githubService => |
| (super.noSuchMethod( |
| Invocation.getter(#githubService), |
| returnValue: _FakeGithubService_11( |
| this, |
| Invocation.getter(#githubService), |
| ), |
| ) |
| as _i9.GithubService); |
| |
| @override |
| _i7.PullRequest get pullRequest => |
| (super.noSuchMethod( |
| Invocation.getter(#pullRequest), |
| returnValue: _FakePullRequest_21( |
| this, |
| Invocation.getter(#pullRequest), |
| ), |
| ) |
| as _i7.PullRequest); |
| |
| @override |
| _i7.RepositorySlug get slug => |
| (super.noSuchMethod( |
| Invocation.getter(#slug), |
| returnValue: _FakeRepositorySlug_57(this, Invocation.getter(#slug)), |
| ) |
| as _i7.RepositorySlug); |
| |
| @override |
| int get prNumber => |
| (super.noSuchMethod(Invocation.getter(#prNumber), returnValue: 0) as int); |
| |
| @override |
| String get logCrumb => |
| (super.noSuchMethod( |
| Invocation.getter(#logCrumb), |
| returnValue: _i20.dummyValue<String>( |
| this, |
| Invocation.getter(#logCrumb), |
| ), |
| ) |
| as String); |
| |
| @override |
| void logInfo(Object? message) => super.noSuchMethod( |
| Invocation.method(#logInfo, [message]), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| void logSevere(Object? message, {Object? error, StackTrace? stackTrace}) => |
| super.noSuchMethod( |
| Invocation.method( |
| #logSevere, |
| [message], |
| {#error: error, #stackTrace: stackTrace}, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i13.Future<void> processLabels() => |
| (super.noSuchMethod( |
| Invocation.method(#processLabels, []), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| } |
| |
| /// A class which mocks [Scheduler]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockScheduler extends _i1.Mock implements _i17.Scheduler { |
| MockScheduler() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i13.Future<void> addCommits(List<_i38.Commit>? commits) => |
| (super.noSuchMethod( |
| Invocation.method(#addCommits, [commits]), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<void> addPullRequest(_i7.PullRequest? pr) => |
| (super.noSuchMethod( |
| Invocation.method(#addPullRequest, [pr]), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<void> cancelPreSubmitTargets({ |
| required _i7.PullRequest? pullRequest, |
| String? reason = 'Newer commit available', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#cancelPreSubmitTargets, [], { |
| #pullRequest: pullRequest, |
| #reason: reason, |
| }), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<void> triggerPresubmitTargets({ |
| required _i7.PullRequest? pullRequest, |
| String? reason = 'Newer commit available', |
| List<String>? builderTriggerList, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#triggerPresubmitTargets, [], { |
| #pullRequest: pullRequest, |
| #reason: reason, |
| #builderTriggerList: builderTriggerList, |
| }), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<void> closeCiYamlCheckRun( |
| String? description, |
| Object? exception, |
| _i7.RepositorySlug? slug, |
| _i7.CheckRun? ciValidationCheckRun, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#closeCiYamlCheckRun, [ |
| description, |
| exception, |
| slug, |
| ciValidationCheckRun, |
| ]), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<void> handleMergeGroupEvent({ |
| required _i31.MergeGroupEvent? mergeGroupEvent, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#handleMergeGroupEvent, [], { |
| #mergeGroupEvent: mergeGroupEvent, |
| }), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<void> triggerTargetsForMergeGroup({ |
| required String? headSha, |
| required String? headRef, |
| required String? baseRef, |
| required _i7.RepositorySlug? slug, |
| String? contentHash, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#triggerTargetsForMergeGroup, [], { |
| #headSha: headSha, |
| #headRef: headRef, |
| #baseRef: baseRef, |
| #slug: slug, |
| #contentHash: contentHash, |
| }), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<void> processWorkflowJob(_i39.WorkflowJobEvent? event) => |
| (super.noSuchMethod( |
| Invocation.method(#processWorkflowJob, [event]), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<List<_i28.Target>> getMergeGroupTargetsForStage( |
| String? baseRef, |
| _i7.RepositorySlug? slug, |
| String? headSha, |
| _i40.CiStage? stage, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#getMergeGroupTargetsForStage, [ |
| baseRef, |
| slug, |
| headSha, |
| stage, |
| ]), |
| returnValue: _i13.Future<List<_i28.Target>>.value(<_i28.Target>[]), |
| ) |
| as _i13.Future<List<_i28.Target>>); |
| |
| @override |
| _i13.Future<List<_i28.Target>> getMergeGroupTargets( |
| String? baseRef, |
| _i7.RepositorySlug? slug, |
| String? headSha, { |
| _i41.CiType? type = _i41.CiType.any, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getMergeGroupTargets, |
| [baseRef, slug, headSha], |
| {#type: type}, |
| ), |
| returnValue: _i13.Future<List<_i28.Target>>.value(<_i28.Target>[]), |
| ) |
| as _i13.Future<List<_i28.Target>>); |
| |
| @override |
| _i13.Future<void> cancelDestroyedMergeGroupTargets({ |
| required String? headSha, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#cancelDestroyedMergeGroupTargets, [], { |
| #headSha: headSha, |
| }), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<_i7.CheckRun> lockMergeGroupChecks( |
| _i7.RepositorySlug? slug, |
| String? headSha, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#lockMergeGroupChecks, [slug, headSha]), |
| returnValue: _i13.Future<_i7.CheckRun>.value( |
| _FakeCheckRun_20( |
| this, |
| Invocation.method(#lockMergeGroupChecks, [slug, headSha]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i7.CheckRun>); |
| |
| @override |
| _i13.Future<void> unlockMergeQueueGuard( |
| _i7.RepositorySlug? slug, |
| String? headSha, |
| _i7.CheckRun? lock, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#unlockMergeQueueGuard, [slug, headSha, lock]), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<void> failGuardForMergeGroup( |
| _i7.RepositorySlug? slug, |
| String? headSha, |
| String? summary, |
| String? details, |
| _i7.CheckRun? lock, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#failGuardForMergeGroup, [ |
| slug, |
| headSha, |
| summary, |
| details, |
| lock, |
| ]), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| List<_i28.Target> filterTargets( |
| List<_i28.Target>? presubmitTarget, |
| List<String>? builderTriggerList, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#filterTargets, [ |
| presubmitTarget, |
| builderTriggerList, |
| ]), |
| returnValue: <_i28.Target>[], |
| ) |
| as List<_i28.Target>); |
| |
| @override |
| _i13.Future<List<_i28.Target>> getPresubmitTargets( |
| _i7.PullRequest? pullRequest, { |
| _i41.CiType? type = _i41.CiType.any, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getPresubmitTargets, |
| [pullRequest], |
| {#type: type}, |
| ), |
| returnValue: _i13.Future<List<_i28.Target>>.value(<_i28.Target>[]), |
| ) |
| as _i13.Future<List<_i28.Target>>); |
| |
| @override |
| _i13.Future<bool> processCheckRunCompleted( |
| _i31.CheckRun? checkRun, |
| _i7.RepositorySlug? slug, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#processCheckRunCompleted, [checkRun, slug]), |
| returnValue: _i13.Future<bool>.value(false), |
| ) |
| as _i13.Future<bool>); |
| |
| @override |
| bool detectMergeGroup(_i31.CheckRun? checkRun) => |
| (super.noSuchMethod( |
| Invocation.method(#detectMergeGroup, [checkRun]), |
| returnValue: false, |
| ) |
| as bool); |
| |
| @override |
| _i13.Future<void> proceedToCiTestingStage({ |
| required _i31.CheckRun? checkRun, |
| required _i7.RepositorySlug? slug, |
| required String? sha, |
| required String? mergeQueueGuard, |
| required String? logCrumb, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method(#proceedToCiTestingStage, [], { |
| #checkRun: checkRun, |
| #slug: slug, |
| #sha: sha, |
| #mergeQueueGuard: mergeQueueGuard, |
| #logCrumb: logCrumb, |
| }), |
| returnValue: _i13.Future<void>.value(), |
| returnValueForMissingStub: _i13.Future<void>.value(), |
| ) |
| as _i13.Future<void>); |
| |
| @override |
| _i13.Future<_i42.ProcessCheckRunResult> processCheckRun( |
| _i31.CheckRunEvent? checkRunEvent, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method(#processCheckRun, [checkRunEvent]), |
| returnValue: _i13.Future<_i42.ProcessCheckRunResult>.value( |
| _i20.dummyValue<_i42.ProcessCheckRunResult>( |
| this, |
| Invocation.method(#processCheckRun, [checkRunEvent]), |
| ), |
| ), |
| ) |
| as _i13.Future<_i42.ProcessCheckRunResult>); |
| |
| @override |
| _i7.CheckRun checkRunFromString(String? input) => |
| (super.noSuchMethod( |
| Invocation.method(#checkRunFromString, [input]), |
| returnValue: _FakeCheckRun_20( |
| this, |
| Invocation.method(#checkRunFromString, [input]), |
| ), |
| ) |
| as _i7.CheckRun); |
| } |
| |
| /// A class which mocks [Cache]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockCache extends _i1.Mock implements _i16.Cache<_i27.Uint8List> { |
| MockCache() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i16.Entry<_i27.Uint8List> operator [](String? key) => |
| (super.noSuchMethod( |
| Invocation.method(#[], [key]), |
| returnValue: _FakeEntry_58<_i27.Uint8List>( |
| this, |
| Invocation.method(#[], [key]), |
| ), |
| ) |
| as _i16.Entry<_i27.Uint8List>); |
| |
| @override |
| _i16.Cache<_i27.Uint8List> withPrefix(String? prefix) => |
| (super.noSuchMethod( |
| Invocation.method(#withPrefix, [prefix]), |
| returnValue: _FakeCache_59<_i27.Uint8List>( |
| this, |
| Invocation.method(#withPrefix, [prefix]), |
| ), |
| ) |
| as _i16.Cache<_i27.Uint8List>); |
| |
| @override |
| _i16.Cache<S> withCodec<S>(_i12.Codec<S, _i27.Uint8List>? codec) => |
| (super.noSuchMethod( |
| Invocation.method(#withCodec, [codec]), |
| returnValue: _FakeCache_59<S>( |
| this, |
| Invocation.method(#withCodec, [codec]), |
| ), |
| ) |
| as _i16.Cache<S>); |
| |
| @override |
| _i16.Cache<_i27.Uint8List> withTTL(Duration? ttl) => |
| (super.noSuchMethod( |
| Invocation.method(#withTTL, [ttl]), |
| returnValue: _FakeCache_59<_i27.Uint8List>( |
| this, |
| Invocation.method(#withTTL, [ttl]), |
| ), |
| ) |
| as _i16.Cache<_i27.Uint8List>); |
| } |