| // Mocks generated by Mockito 5.4.4 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 _i20; |
| import 'dart:convert' as _i26; |
| import 'dart:io' as _i25; |
| import 'dart:typed_data' as _i40; |
| |
| import 'package:appengine/appengine.dart' as _i10; |
| import 'package:buildbucket/buildbucket_pb.dart' as _i8; |
| import 'package:cocoon_server/access_client_provider.dart' as _i4; |
| import 'package:cocoon_service/cocoon_service.dart' as _i15; |
| import 'package:cocoon_service/src/foundation/github_checks_util.dart' as _i24; |
| import 'package:cocoon_service/src/model/appengine/branch.dart' as _i35; |
| import 'package:cocoon_service/src/model/appengine/commit.dart' as _i36; |
| import 'package:cocoon_service/src/model/appengine/github_build_status_update.dart' as _i18; |
| import 'package:cocoon_service/src/model/appengine/github_gold_status_update.dart' as _i19; |
| import 'package:cocoon_service/src/model/appengine/key_helper.dart' as _i12; |
| import 'package:cocoon_service/src/model/appengine/stage.dart' as _i38; |
| import 'package:cocoon_service/src/model/appengine/task.dart' as _i37; |
| import 'package:cocoon_service/src/model/ci_yaml/target.dart' as _i43; |
| import 'package:cocoon_service/src/model/firestore/ci_staging.dart' as _i28; |
| import 'package:cocoon_service/src/model/firestore/commit.dart' as _i41; |
| import 'package:cocoon_service/src/model/firestore/github_build_status.dart' as _i23; |
| import 'package:cocoon_service/src/model/firestore/github_gold_status.dart' as _i22; |
| import 'package:cocoon_service/src/model/firestore/task.dart' as _i42; |
| import 'package:cocoon_service/src/model/github/checks.dart' as _i44; |
| import 'package:cocoon_service/src/service/access_token_provider.dart' as _i30; |
| import 'package:cocoon_service/src/service/bigquery.dart' as _i16; |
| import 'package:cocoon_service/src/service/commit_service.dart' as _i33; |
| import 'package:cocoon_service/src/service/config.dart' as _i2; |
| import 'package:cocoon_service/src/service/datastore.dart' as _i9; |
| import 'package:cocoon_service/src/service/gerrit_service.dart' as _i6; |
| import 'package:cocoon_service/src/service/github_service.dart' as _i17; |
| import 'package:fixnum/fixnum.dart' as _i45; |
| import 'package:gcloud/db.dart' as _i11; |
| import 'package:github/github.dart' as _i13; |
| import 'package:github/hooks.dart' as _i34; |
| import 'package:googleapis/bigquery/v2.dart' as _i5; |
| import 'package:googleapis/firestore/v1.dart' as _i21; |
| import 'package:googleapis/shared.dart' as _i27; |
| import 'package:googleapis_auth/auth_io.dart' as _i3; |
| import 'package:graphql/client.dart' as _i14; |
| import 'package:http/http.dart' as _i7; |
| import 'package:mockito/mockito.dart' as _i1; |
| import 'package:mockito/src/dummies.dart' as _i32; |
| import 'package:neat_cache/neat_cache.dart' as _i29; |
| import 'package:process/process.dart' as _i46; |
| import 'package:retry/retry.dart' as _i31; |
| |
| import '../../service/cache_service_test.dart' as _i39; |
| import 'mocks.dart' as _i47; |
| |
| // 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: prefer_const_constructors |
| // ignore_for_file: unnecessary_parenthesis |
| // ignore_for_file: camel_case_types |
| // ignore_for_file: subtype_of_sealed_class |
| |
| 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 _FakeAccessClientProvider_2 extends _i1.SmartFake implements _i4.AccessClientProvider { |
| _FakeAccessClientProvider_2( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeTabledataResource_3 extends _i1.SmartFake implements _i5.TabledataResource { |
| _FakeTabledataResource_3( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeJobsResource_4 extends _i1.SmartFake implements _i5.JobsResource { |
| _FakeJobsResource_4( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeGerritService_5 extends _i1.SmartFake implements _i6.GerritService { |
| _FakeGerritService_5( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeClient_6 extends _i1.SmartFake implements _i7.Client { |
| _FakeClient_6( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeBuild_7 extends _i1.SmartFake implements _i8.Build { |
| _FakeBuild_7( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeSearchBuildsResponse_8 extends _i1.SmartFake implements _i8.SearchBuildsResponse { |
| _FakeSearchBuildsResponse_8( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeBatchResponse_9 extends _i1.SmartFake implements _i8.BatchResponse { |
| _FakeBatchResponse_9( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeListBuildersResponse_10 extends _i1.SmartFake implements _i8.ListBuildersResponse { |
| _FakeListBuildersResponse_10( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeDatastoreService_11 extends _i1.SmartFake implements _i9.DatastoreService { |
| _FakeDatastoreService_11( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeLogging_12 extends _i1.SmartFake implements _i10.Logging { |
| _FakeLogging_12( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeDatastoreDB_13 extends _i1.SmartFake implements _i11.DatastoreDB { |
| _FakeDatastoreDB_13( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeKeyHelper_14 extends _i1.SmartFake implements _i12.KeyHelper { |
| _FakeKeyHelper_14( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeDuration_15 extends _i1.SmartFake implements Duration { |
| _FakeDuration_15( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeGitHub_16 extends _i1.SmartFake implements _i13.GitHub { |
| _FakeGitHub_16( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeGraphQLClient_17 extends _i1.SmartFake implements _i14.GraphQLClient { |
| _FakeGraphQLClient_17( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeFirestoreService_18 extends _i1.SmartFake implements _i15.FirestoreService { |
| _FakeFirestoreService_18( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeBigqueryService_19 extends _i1.SmartFake implements _i16.BigqueryService { |
| _FakeBigqueryService_19( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeGithubService_20 extends _i1.SmartFake implements _i17.GithubService { |
| _FakeGithubService_20( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeGithubBuildStatusUpdate_21 extends _i1.SmartFake implements _i18.GithubBuildStatusUpdate { |
| _FakeGithubBuildStatusUpdate_21( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeGithubGoldStatusUpdate_22 extends _i1.SmartFake implements _i19.GithubGoldStatusUpdate { |
| _FakeGithubGoldStatusUpdate_22( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeFuture_23<T1> extends _i1.SmartFake implements _i20.Future<T1> { |
| _FakeFuture_23( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeProjectsDatabasesDocumentsResource_24 extends _i1.SmartFake |
| implements _i21.ProjectsDatabasesDocumentsResource { |
| _FakeProjectsDatabasesDocumentsResource_24( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeDocument_25 extends _i1.SmartFake implements _i21.Document { |
| _FakeDocument_25( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeBatchWriteResponse_26 extends _i1.SmartFake implements _i21.BatchWriteResponse { |
| _FakeBatchWriteResponse_26( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeCommitResponse_27 extends _i1.SmartFake implements _i21.CommitResponse { |
| _FakeCommitResponse_27( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeGithubGoldStatus_28 extends _i1.SmartFake implements _i22.GithubGoldStatus { |
| _FakeGithubGoldStatus_28( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeGithubBuildStatus_29 extends _i1.SmartFake implements _i23.GithubBuildStatus { |
| _FakeGithubBuildStatus_29( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeValue_30 extends _i1.SmartFake implements _i21.Value { |
| _FakeValue_30( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeFilter_31 extends _i1.SmartFake implements _i21.Filter { |
| _FakeFilter_31( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeIssue_32 extends _i1.SmartFake implements _i13.Issue { |
| _FakeIssue_32( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeIssueComment_33 extends _i1.SmartFake implements _i13.IssueComment { |
| _FakeIssueComment_33( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeIssueLabel_34 extends _i1.SmartFake implements _i13.IssueLabel { |
| _FakeIssueLabel_34( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeMilestone_35 extends _i1.SmartFake implements _i13.Milestone { |
| _FakeMilestone_35( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeGithubChecksUtil_36 extends _i1.SmartFake implements _i24.GithubChecksUtil { |
| _FakeGithubChecksUtil_36( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeCheckRunConclusion_37 extends _i1.SmartFake implements _i13.CheckRunConclusion { |
| _FakeCheckRunConclusion_37( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeCheckRunStatus_38 extends _i1.SmartFake implements _i13.CheckRunStatus { |
| _FakeCheckRunStatus_38( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeCheckSuite_39 extends _i1.SmartFake implements _i13.CheckSuite { |
| _FakeCheckSuite_39( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeCheckRun_40 extends _i1.SmartFake implements _i13.CheckRun { |
| _FakeCheckRun_40( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakePullRequest_41 extends _i1.SmartFake implements _i13.PullRequest { |
| _FakePullRequest_41( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeGitReference_42 extends _i1.SmartFake implements _i13.GitReference { |
| _FakeGitReference_42( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeRateLimit_43 extends _i1.SmartFake implements _i13.RateLimit { |
| _FakeRateLimit_43( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeGitBlob_44 extends _i1.SmartFake implements _i13.GitBlob { |
| _FakeGitBlob_44( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeGitCommit_45 extends _i1.SmartFake implements _i13.GitCommit { |
| _FakeGitCommit_45( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeGitTag_46 extends _i1.SmartFake implements _i13.GitTag { |
| _FakeGitTag_46( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeGitTree_47 extends _i1.SmartFake implements _i13.GitTree { |
| _FakeGitTree_47( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeDefaultPolicies_48 extends _i1.SmartFake implements _i14.DefaultPolicies { |
| _FakeDefaultPolicies_48( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeLink_49 extends _i1.SmartFake implements _i14.Link { |
| _FakeLink_49( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeGraphQLCache_50 extends _i1.SmartFake implements _i14.GraphQLCache { |
| _FakeGraphQLCache_50( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeQueryManager_51 extends _i1.SmartFake implements _i14.QueryManager { |
| _FakeQueryManager_51( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeObservableQuery_52<TParsed1> extends _i1.SmartFake implements _i14.ObservableQuery<TParsed1> { |
| _FakeObservableQuery_52( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeQueryResult_53<TParsed1 extends Object?> extends _i1.SmartFake implements _i14.QueryResult<TParsed1> { |
| _FakeQueryResult_53( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeHttpClientRequest_54 extends _i1.SmartFake implements _i25.HttpClientRequest { |
| _FakeHttpClientRequest_54( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeUri_55 extends _i1.SmartFake implements Uri { |
| _FakeUri_55( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeHttpHeaders_56 extends _i1.SmartFake implements _i25.HttpHeaders { |
| _FakeHttpHeaders_56( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeHttpClientResponse_57 extends _i1.SmartFake implements _i25.HttpClientResponse { |
| _FakeHttpClientResponse_57( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeEncoding_58 extends _i1.SmartFake implements _i26.Encoding { |
| _FakeEncoding_58( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeSocket_59 extends _i1.SmartFake implements _i25.Socket { |
| _FakeSocket_59( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeStreamSubscription_60<T> extends _i1.SmartFake implements _i20.StreamSubscription<T> { |
| _FakeStreamSubscription_60( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeFusionTester_61 extends _i1.SmartFake implements _i15.FusionTester { |
| _FakeFusionTester_61( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeBuildBucketClient_62 extends _i1.SmartFake implements _i15.BuildBucketClient { |
| _FakeBuildBucketClient_62( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeCacheService_63 extends _i1.SmartFake implements _i15.CacheService { |
| _FakeCacheService_63( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakePubSub_64 extends _i1.SmartFake implements _i15.PubSub { |
| _FakePubSub_64( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeProcess_65 extends _i1.SmartFake implements _i25.Process { |
| _FakeProcess_65( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeTableDataInsertAllResponse_66 extends _i1.SmartFake implements _i5.TableDataInsertAllResponse { |
| _FakeTableDataInsertAllResponse_66( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeTableDataList_67 extends _i1.SmartFake implements _i5.TableDataList { |
| _FakeTableDataList_67( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeUser_68 extends _i1.SmartFake implements _i13.User { |
| _FakeUser_68( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeCurrentUser_69 extends _i1.SmartFake implements _i13.CurrentUser { |
| _FakeCurrentUser_69( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakePublicKey_70 extends _i1.SmartFake implements _i13.PublicKey { |
| _FakePublicKey_70( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeBeginTransactionResponse_71 extends _i1.SmartFake implements _i21.BeginTransactionResponse { |
| _FakeBeginTransactionResponse_71( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _Fake$Empty_72 extends _i1.SmartFake implements _i27.$Empty { |
| _Fake$Empty_72( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeListDocumentsResponse_73 extends _i1.SmartFake implements _i21.ListDocumentsResponse { |
| _FakeListDocumentsResponse_73( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeListCollectionIdsResponse_74 extends _i1.SmartFake implements _i21.ListCollectionIdsResponse { |
| _FakeListCollectionIdsResponse_74( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakePartitionQueryResponse_75 extends _i1.SmartFake implements _i21.PartitionQueryResponse { |
| _FakePartitionQueryResponse_75( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeWriteResponse_76 extends _i1.SmartFake implements _i21.WriteResponse { |
| _FakeWriteResponse_76( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeStagingConclusion_77 extends _i1.SmartFake implements _i28.StagingConclusion { |
| _FakeStagingConclusion_77( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeEntry_78<T> extends _i1.SmartFake implements _i29.Entry<T> { |
| _FakeEntry_78( |
| Object parent, |
| Invocation parentInvocation, |
| ) : super( |
| parent, |
| parentInvocation, |
| ); |
| } |
| |
| class _FakeCache_79<T> extends _i1.SmartFake implements _i29.Cache<T> { |
| _FakeCache_79( |
| 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 _i30.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 |
| _i20.Future<_i3.AccessToken> createAccessToken() => (super.noSuchMethod( |
| Invocation.method( |
| #createAccessToken, |
| [], |
| ), |
| returnValue: _i20.Future<_i3.AccessToken>.value(_FakeAccessToken_1( |
| this, |
| Invocation.method( |
| #createAccessToken, |
| [], |
| ), |
| )), |
| ) as _i20.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 _i16.BigqueryService { |
| MockBigqueryService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i4.AccessClientProvider get accessClientProvider => (super.noSuchMethod( |
| Invocation.getter(#accessClientProvider), |
| returnValue: _FakeAccessClientProvider_2( |
| this, |
| Invocation.getter(#accessClientProvider), |
| ), |
| ) as _i4.AccessClientProvider); |
| |
| @override |
| _i20.Future<_i5.TabledataResource> defaultTabledata() => (super.noSuchMethod( |
| Invocation.method( |
| #defaultTabledata, |
| [], |
| ), |
| returnValue: _i20.Future<_i5.TabledataResource>.value(_FakeTabledataResource_3( |
| this, |
| Invocation.method( |
| #defaultTabledata, |
| [], |
| ), |
| )), |
| ) as _i20.Future<_i5.TabledataResource>); |
| |
| @override |
| _i20.Future<_i5.JobsResource> defaultJobs() => (super.noSuchMethod( |
| Invocation.method( |
| #defaultJobs, |
| [], |
| ), |
| returnValue: _i20.Future<_i5.JobsResource>.value(_FakeJobsResource_4( |
| this, |
| Invocation.method( |
| #defaultJobs, |
| [], |
| ), |
| )), |
| ) as _i20.Future<_i5.JobsResource>); |
| |
| @override |
| _i20.Future<List<_i16.BuilderStatistic>> listBuilderStatistic( |
| String? projectId, { |
| int? limit = 100, |
| String? bucket = r'prod', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listBuilderStatistic, |
| [projectId], |
| { |
| #limit: limit, |
| #bucket: bucket, |
| }, |
| ), |
| returnValue: _i20.Future<List<_i16.BuilderStatistic>>.value(<_i16.BuilderStatistic>[]), |
| ) as _i20.Future<List<_i16.BuilderStatistic>>); |
| |
| @override |
| _i20.Future<List<_i16.BuilderRecord>> listRecentBuildRecordsForBuilder( |
| String? projectId, { |
| String? builder, |
| int? limit, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listRecentBuildRecordsForBuilder, |
| [projectId], |
| { |
| #builder: builder, |
| #limit: limit, |
| }, |
| ), |
| returnValue: _i20.Future<List<_i16.BuilderRecord>>.value(<_i16.BuilderRecord>[]), |
| ) as _i20.Future<List<_i16.BuilderRecord>>); |
| } |
| |
| /// A class which mocks [BranchService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockBranchService extends _i1.Mock implements _i15.BranchService { |
| MockBranchService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i2.Config get config => (super.noSuchMethod( |
| Invocation.getter(#config), |
| returnValue: _FakeConfig_0( |
| this, |
| Invocation.getter(#config), |
| ), |
| ) as _i2.Config); |
| |
| @override |
| _i6.GerritService get gerritService => (super.noSuchMethod( |
| Invocation.getter(#gerritService), |
| returnValue: _FakeGerritService_5( |
| this, |
| Invocation.getter(#gerritService), |
| ), |
| ) as _i6.GerritService); |
| |
| @override |
| _i31.RetryOptions get retryOptions => (super.noSuchMethod( |
| Invocation.getter(#retryOptions), |
| returnValue: _i32.dummyValue<_i31.RetryOptions>( |
| this, |
| Invocation.getter(#retryOptions), |
| ), |
| ) as _i31.RetryOptions); |
| |
| @override |
| _i20.Future<void> branchFlutterRecipes( |
| String? branch, |
| String? engineSha, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #branchFlutterRecipes, |
| [ |
| branch, |
| engineSha, |
| ], |
| ), |
| returnValue: _i20.Future<void>.value(), |
| returnValueForMissingStub: _i20.Future<void>.value(), |
| ) as _i20.Future<void>); |
| |
| @override |
| _i20.Future<List<Map<String, String>>> getReleaseBranches({ |
| required _i17.GithubService? githubService, |
| required _i13.RepositorySlug? slug, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getReleaseBranches, |
| [], |
| { |
| #githubService: githubService, |
| #slug: slug, |
| }, |
| ), |
| returnValue: _i20.Future<List<Map<String, String>>>.value(<Map<String, String>>[]), |
| ) as _i20.Future<List<Map<String, String>>>); |
| } |
| |
| /// 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 _i15.BuildBucketClient { |
| MockBuildBucketClient() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| String get buildBucketBuildUri => (super.noSuchMethod( |
| Invocation.getter(#buildBucketBuildUri), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#buildBucketBuildUri), |
| ), |
| ) as String); |
| |
| @override |
| String get buildBucketBuilderUri => (super.noSuchMethod( |
| Invocation.getter(#buildBucketBuilderUri), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#buildBucketBuilderUri), |
| ), |
| ) as String); |
| |
| @override |
| _i7.Client get httpClient => (super.noSuchMethod( |
| Invocation.getter(#httpClient), |
| returnValue: _FakeClient_6( |
| this, |
| Invocation.getter(#httpClient), |
| ), |
| ) as _i7.Client); |
| |
| @override |
| _i20.Future<_i8.Build> scheduleBuild( |
| _i8.ScheduleBuildRequest? request, { |
| String? buildBucketUri = r'https://cr-buildbucket.appspot.com/prpc/buildbucket.v2.Builds', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #scheduleBuild, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| returnValue: _i20.Future<_i8.Build>.value(_FakeBuild_7( |
| this, |
| Invocation.method( |
| #scheduleBuild, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| )), |
| ) as _i20.Future<_i8.Build>); |
| |
| @override |
| _i20.Future<_i8.SearchBuildsResponse> searchBuilds( |
| _i8.SearchBuildsRequest? request, { |
| String? buildBucketUri = r'https://cr-buildbucket.appspot.com/prpc/buildbucket.v2.Builds', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #searchBuilds, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| returnValue: _i20.Future<_i8.SearchBuildsResponse>.value(_FakeSearchBuildsResponse_8( |
| this, |
| Invocation.method( |
| #searchBuilds, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| )), |
| ) as _i20.Future<_i8.SearchBuildsResponse>); |
| |
| @override |
| _i20.Future<_i8.BatchResponse> batch( |
| _i8.BatchRequest? request, { |
| String? buildBucketUri = r'https://cr-buildbucket.appspot.com/prpc/buildbucket.v2.Builds', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #batch, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| returnValue: _i20.Future<_i8.BatchResponse>.value(_FakeBatchResponse_9( |
| this, |
| Invocation.method( |
| #batch, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| )), |
| ) as _i20.Future<_i8.BatchResponse>); |
| |
| @override |
| _i20.Future<_i8.Build> cancelBuild( |
| _i8.CancelBuildRequest? request, { |
| String? buildBucketUri = r'https://cr-buildbucket.appspot.com/prpc/buildbucket.v2.Builds', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #cancelBuild, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| returnValue: _i20.Future<_i8.Build>.value(_FakeBuild_7( |
| this, |
| Invocation.method( |
| #cancelBuild, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| )), |
| ) as _i20.Future<_i8.Build>); |
| |
| @override |
| _i20.Future<_i8.Build> getBuild( |
| _i8.GetBuildRequest? request, { |
| String? buildBucketUri = r'https://cr-buildbucket.appspot.com/prpc/buildbucket.v2.Builds', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getBuild, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| returnValue: _i20.Future<_i8.Build>.value(_FakeBuild_7( |
| this, |
| Invocation.method( |
| #getBuild, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| )), |
| ) as _i20.Future<_i8.Build>); |
| |
| @override |
| _i20.Future<_i8.ListBuildersResponse> listBuilders( |
| _i8.ListBuildersRequest? request, { |
| String? buildBucketUri = r'https://cr-buildbucket.appspot.com/prpc/buildbucket.v2.Builders', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listBuilders, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| returnValue: _i20.Future<_i8.ListBuildersResponse>.value(_FakeListBuildersResponse_10( |
| this, |
| Invocation.method( |
| #listBuilders, |
| [request], |
| {#buildBucketUri: buildBucketUri}, |
| ), |
| )), |
| ) as _i20.Future<_i8.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 _i33.CommitService { |
| MockCommitService() { |
| _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.DatastoreServiceProvider get datastoreProvider => (super.noSuchMethod( |
| Invocation.getter(#datastoreProvider), |
| returnValue: (_i11.DatastoreDB db) => _FakeDatastoreService_11( |
| this, |
| Invocation.getter(#datastoreProvider), |
| ), |
| ) as _i9.DatastoreServiceProvider); |
| |
| @override |
| _i20.Future<void> handleCreateGithubRequest(_i34.CreateEvent? createEvent) => (super.noSuchMethod( |
| Invocation.method( |
| #handleCreateGithubRequest, |
| [createEvent], |
| ), |
| returnValue: _i20.Future<void>.value(), |
| returnValueForMissingStub: _i20.Future<void>.value(), |
| ) as _i20.Future<void>); |
| |
| @override |
| _i20.Future<void> handlePushGithubRequest(Map<String, dynamic>? pushEvent) => (super.noSuchMethod( |
| Invocation.method( |
| #handlePushGithubRequest, |
| [pushEvent], |
| ), |
| returnValue: _i20.Future<void>.value(), |
| returnValueForMissingStub: _i20.Future<void>.value(), |
| ) as _i20.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<_i13.RepositorySlug> get supportedRepos => (super.noSuchMethod( |
| Invocation.getter(#supportedRepos), |
| returnValue: <_i13.RepositorySlug>{}, |
| ) as Set<_i13.RepositorySlug>); |
| |
| @override |
| Set<_i13.RepositorySlug> get postsubmitSupportedRepos => (super.noSuchMethod( |
| Invocation.getter(#postsubmitSupportedRepos), |
| returnValue: <_i13.RepositorySlug>{}, |
| ) as Set<_i13.RepositorySlug>); |
| |
| @override |
| String get autosubmitBot => (super.noSuchMethod( |
| Invocation.getter(#autosubmitBot), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#autosubmitBot), |
| ), |
| ) as String); |
| |
| @override |
| _i10.Logging get loggingService => (super.noSuchMethod( |
| Invocation.getter(#loggingService), |
| returnValue: _FakeLogging_12( |
| this, |
| Invocation.getter(#loggingService), |
| ), |
| ) as _i10.Logging); |
| |
| @override |
| _i20.Future<String> get githubPrivateKey => (super.noSuchMethod( |
| Invocation.getter(#githubPrivateKey), |
| returnValue: _i20.Future<String>.value(_i32.dummyValue<String>( |
| this, |
| Invocation.getter(#githubPrivateKey), |
| )), |
| ) as _i20.Future<String>); |
| |
| @override |
| _i20.Future<String> get overrideTreeStatusLabel => (super.noSuchMethod( |
| Invocation.getter(#overrideTreeStatusLabel), |
| returnValue: _i20.Future<String>.value(_i32.dummyValue<String>( |
| this, |
| Invocation.getter(#overrideTreeStatusLabel), |
| )), |
| ) as _i20.Future<String>); |
| |
| @override |
| _i20.Future<String> get githubPublicKey => (super.noSuchMethod( |
| Invocation.getter(#githubPublicKey), |
| returnValue: _i20.Future<String>.value(_i32.dummyValue<String>( |
| this, |
| Invocation.getter(#githubPublicKey), |
| )), |
| ) as _i20.Future<String>); |
| |
| @override |
| _i20.Future<String> get githubAppId => (super.noSuchMethod( |
| Invocation.getter(#githubAppId), |
| returnValue: _i20.Future<String>.value(_i32.dummyValue<String>( |
| this, |
| Invocation.getter(#githubAppId), |
| )), |
| ) as _i20.Future<String>); |
| |
| @override |
| _i20.Future<Map<String, dynamic>> get githubAppInstallations => (super.noSuchMethod( |
| Invocation.getter(#githubAppInstallations), |
| returnValue: _i20.Future<Map<String, dynamic>>.value(<String, dynamic>{}), |
| ) as _i20.Future<Map<String, dynamic>>); |
| |
| @override |
| String get defaultRecipeBundleRef => (super.noSuchMethod( |
| Invocation.getter(#defaultRecipeBundleRef), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#defaultRecipeBundleRef), |
| ), |
| ) as String); |
| |
| @override |
| _i11.DatastoreDB get db => (super.noSuchMethod( |
| Invocation.getter(#db), |
| returnValue: _FakeDatastoreDB_13( |
| this, |
| Invocation.getter(#db), |
| ), |
| ) as _i11.DatastoreDB); |
| |
| @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 backfillerCommitLimit => (super.noSuchMethod( |
| Invocation.getter(#backfillerCommitLimit), |
| returnValue: 0, |
| ) as int); |
| |
| @override |
| int get issueAndPRLimit => (super.noSuchMethod( |
| Invocation.getter(#issueAndPRLimit), |
| returnValue: 0, |
| ) as int); |
| |
| @override |
| _i20.Future<List<String>> get releaseAccounts => (super.noSuchMethod( |
| Invocation.getter(#releaseAccounts), |
| returnValue: _i20.Future<List<String>>.value(<String>[]), |
| ) as _i20.Future<List<String>>); |
| |
| @override |
| _i20.Future<String> get oauthClientId => (super.noSuchMethod( |
| Invocation.getter(#oauthClientId), |
| returnValue: _i20.Future<String>.value(_i32.dummyValue<String>( |
| this, |
| Invocation.getter(#oauthClientId), |
| )), |
| ) as _i20.Future<String>); |
| |
| @override |
| _i20.Future<String> get frobWebhookKey => (super.noSuchMethod( |
| Invocation.getter(#frobWebhookKey), |
| returnValue: _i20.Future<String>.value(_i32.dummyValue<String>( |
| this, |
| Invocation.getter(#frobWebhookKey), |
| )), |
| ) as _i20.Future<String>); |
| |
| @override |
| _i20.Future<String> get githubOAuthToken => (super.noSuchMethod( |
| Invocation.getter(#githubOAuthToken), |
| returnValue: _i20.Future<String>.value(_i32.dummyValue<String>( |
| this, |
| Invocation.getter(#githubOAuthToken), |
| )), |
| ) as _i20.Future<String>); |
| |
| @override |
| String get wrongBaseBranchPullRequestMessage => (super.noSuchMethod( |
| Invocation.getter(#wrongBaseBranchPullRequestMessage), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#wrongBaseBranchPullRequestMessage), |
| ), |
| ) as String); |
| |
| @override |
| String get releaseBranchPullRequestMessage => (super.noSuchMethod( |
| Invocation.getter(#releaseBranchPullRequestMessage), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#releaseBranchPullRequestMessage), |
| ), |
| ) as String); |
| |
| @override |
| _i20.Future<String> get webhookKey => (super.noSuchMethod( |
| Invocation.getter(#webhookKey), |
| returnValue: _i20.Future<String>.value(_i32.dummyValue<String>( |
| this, |
| Invocation.getter(#webhookKey), |
| )), |
| ) as _i20.Future<String>); |
| |
| @override |
| String get mergeConflictPullRequestMessage => (super.noSuchMethod( |
| Invocation.getter(#mergeConflictPullRequestMessage), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#mergeConflictPullRequestMessage), |
| ), |
| ) as String); |
| |
| @override |
| String get missingTestsPullRequestMessage => (super.noSuchMethod( |
| Invocation.getter(#missingTestsPullRequestMessage), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#missingTestsPullRequestMessage), |
| ), |
| ) as String); |
| |
| @override |
| String get flutterGoldPending => (super.noSuchMethod( |
| Invocation.getter(#flutterGoldPending), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#flutterGoldPending), |
| ), |
| ) as String); |
| |
| @override |
| String get flutterGoldSuccess => (super.noSuchMethod( |
| Invocation.getter(#flutterGoldSuccess), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#flutterGoldSuccess), |
| ), |
| ) as String); |
| |
| @override |
| String get flutterGoldChanges => (super.noSuchMethod( |
| Invocation.getter(#flutterGoldChanges), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#flutterGoldChanges), |
| ), |
| ) as String); |
| |
| @override |
| String get flutterGoldStalePR => (super.noSuchMethod( |
| Invocation.getter(#flutterGoldStalePR), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#flutterGoldStalePR), |
| ), |
| ) as String); |
| |
| @override |
| String get flutterGoldDraftChange => (super.noSuchMethod( |
| Invocation.getter(#flutterGoldDraftChange), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#flutterGoldDraftChange), |
| ), |
| ) as String); |
| |
| @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 |
| _i12.KeyHelper get keyHelper => (super.noSuchMethod( |
| Invocation.getter(#keyHelper), |
| returnValue: _FakeKeyHelper_14( |
| this, |
| Invocation.getter(#keyHelper), |
| ), |
| ) as _i12.KeyHelper); |
| |
| @override |
| int get maxRecords => (super.noSuchMethod( |
| Invocation.getter(#maxRecords), |
| returnValue: 0, |
| ) as int); |
| |
| @override |
| Duration get githubRequestDelay => (super.noSuchMethod( |
| Invocation.getter(#githubRequestDelay), |
| returnValue: _FakeDuration_15( |
| this, |
| Invocation.getter(#githubRequestDelay), |
| ), |
| ) as Duration); |
| |
| @override |
| String get flutterBuild => (super.noSuchMethod( |
| Invocation.getter(#flutterBuild), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#flutterBuild), |
| ), |
| ) as String); |
| |
| @override |
| String get flutterBuildDescription => (super.noSuchMethod( |
| Invocation.getter(#flutterBuildDescription), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#flutterBuildDescription), |
| ), |
| ) as String); |
| |
| @override |
| String get waitingForTreeToGoGreenLabelName => (super.noSuchMethod( |
| Invocation.getter(#waitingForTreeToGoGreenLabelName), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#waitingForTreeToGoGreenLabelName), |
| ), |
| ) as String); |
| |
| @override |
| Set<String> get rollerAccounts => (super.noSuchMethod( |
| Invocation.getter(#rollerAccounts), |
| returnValue: <String>{}, |
| ) as Set<String>); |
| |
| @override |
| _i20.Future<Iterable<_i35.Branch>> getBranches(_i13.RepositorySlug? slug) => (super.noSuchMethod( |
| Invocation.method( |
| #getBranches, |
| [slug], |
| ), |
| returnValue: _i20.Future<Iterable<_i35.Branch>>.value(<_i35.Branch>[]), |
| ) as _i20.Future<Iterable<_i35.Branch>>); |
| |
| @override |
| String wrongHeadBranchPullRequestMessage(String? branch) => (super.noSuchMethod( |
| Invocation.method( |
| #wrongHeadBranchPullRequestMessage, |
| [branch], |
| ), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.method( |
| #wrongHeadBranchPullRequestMessage, |
| [branch], |
| ), |
| ), |
| ) as String); |
| |
| @override |
| String flutterGoldInitialAlert(String? url) => (super.noSuchMethod( |
| Invocation.method( |
| #flutterGoldInitialAlert, |
| [url], |
| ), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.method( |
| #flutterGoldInitialAlert, |
| [url], |
| ), |
| ), |
| ) as String); |
| |
| @override |
| String flutterGoldFollowUpAlert(String? url) => (super.noSuchMethod( |
| Invocation.method( |
| #flutterGoldFollowUpAlert, |
| [url], |
| ), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.method( |
| #flutterGoldFollowUpAlert, |
| [url], |
| ), |
| ), |
| ) as String); |
| |
| @override |
| String flutterGoldAlertConstant(_i13.RepositorySlug? slug) => (super.noSuchMethod( |
| Invocation.method( |
| #flutterGoldAlertConstant, |
| [slug], |
| ), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.method( |
| #flutterGoldAlertConstant, |
| [slug], |
| ), |
| ), |
| ) as String); |
| |
| @override |
| String flutterGoldCommentID(_i13.PullRequest? pr) => (super.noSuchMethod( |
| Invocation.method( |
| #flutterGoldCommentID, |
| [pr], |
| ), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.method( |
| #flutterGoldCommentID, |
| [pr], |
| ), |
| ), |
| ) as String); |
| |
| @override |
| _i20.Future<String> generateJsonWebToken() => (super.noSuchMethod( |
| Invocation.method( |
| #generateJsonWebToken, |
| [], |
| ), |
| returnValue: _i20.Future<String>.value(_i32.dummyValue<String>( |
| this, |
| Invocation.method( |
| #generateJsonWebToken, |
| [], |
| ), |
| )), |
| ) as _i20.Future<String>); |
| |
| @override |
| _i20.Future<String> generateGithubToken(_i13.RepositorySlug? slug) => (super.noSuchMethod( |
| Invocation.method( |
| #generateGithubToken, |
| [slug], |
| ), |
| returnValue: _i20.Future<String>.value(_i32.dummyValue<String>( |
| this, |
| Invocation.method( |
| #generateGithubToken, |
| [slug], |
| ), |
| )), |
| ) as _i20.Future<String>); |
| |
| @override |
| _i20.Future<_i13.GitHub> createGitHubClient({ |
| _i13.PullRequest? pullRequest, |
| _i13.RepositorySlug? slug, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createGitHubClient, |
| [], |
| { |
| #pullRequest: pullRequest, |
| #slug: slug, |
| }, |
| ), |
| returnValue: _i20.Future<_i13.GitHub>.value(_FakeGitHub_16( |
| this, |
| Invocation.method( |
| #createGitHubClient, |
| [], |
| { |
| #pullRequest: pullRequest, |
| #slug: slug, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i13.GitHub>); |
| |
| @override |
| _i13.GitHub createGitHubClientWithToken(String? token) => (super.noSuchMethod( |
| Invocation.method( |
| #createGitHubClientWithToken, |
| [token], |
| ), |
| returnValue: _FakeGitHub_16( |
| this, |
| Invocation.method( |
| #createGitHubClientWithToken, |
| [token], |
| ), |
| ), |
| ) as _i13.GitHub); |
| |
| @override |
| _i20.Future<_i14.GraphQLClient> createGitHubGraphQLClient() => (super.noSuchMethod( |
| Invocation.method( |
| #createGitHubGraphQLClient, |
| [], |
| ), |
| returnValue: _i20.Future<_i14.GraphQLClient>.value(_FakeGraphQLClient_17( |
| this, |
| Invocation.method( |
| #createGitHubGraphQLClient, |
| [], |
| ), |
| )), |
| ) as _i20.Future<_i14.GraphQLClient>); |
| |
| @override |
| _i20.Future<_i15.FirestoreService> createFirestoreService() => (super.noSuchMethod( |
| Invocation.method( |
| #createFirestoreService, |
| [], |
| ), |
| returnValue: _i20.Future<_i15.FirestoreService>.value(_FakeFirestoreService_18( |
| this, |
| Invocation.method( |
| #createFirestoreService, |
| [], |
| ), |
| )), |
| ) as _i20.Future<_i15.FirestoreService>); |
| |
| @override |
| _i20.Future<_i16.BigqueryService> createBigQueryService() => (super.noSuchMethod( |
| Invocation.method( |
| #createBigQueryService, |
| [], |
| ), |
| returnValue: _i20.Future<_i16.BigqueryService>.value(_FakeBigqueryService_19( |
| this, |
| Invocation.method( |
| #createBigQueryService, |
| [], |
| ), |
| )), |
| ) as _i20.Future<_i16.BigqueryService>); |
| |
| @override |
| _i20.Future<_i5.TabledataResource> createTabledataResourceApi() => (super.noSuchMethod( |
| Invocation.method( |
| #createTabledataResourceApi, |
| [], |
| ), |
| returnValue: _i20.Future<_i5.TabledataResource>.value(_FakeTabledataResource_3( |
| this, |
| Invocation.method( |
| #createTabledataResourceApi, |
| [], |
| ), |
| )), |
| ) as _i20.Future<_i5.TabledataResource>); |
| |
| @override |
| _i20.Future<_i17.GithubService> createDefaultGitHubService() => (super.noSuchMethod( |
| Invocation.method( |
| #createDefaultGitHubService, |
| [], |
| ), |
| returnValue: _i20.Future<_i17.GithubService>.value(_FakeGithubService_20( |
| this, |
| Invocation.method( |
| #createDefaultGitHubService, |
| [], |
| ), |
| )), |
| ) as _i20.Future<_i17.GithubService>); |
| |
| @override |
| _i20.Future<_i17.GithubService> createGithubService(_i13.RepositorySlug? slug) => (super.noSuchMethod( |
| Invocation.method( |
| #createGithubService, |
| [slug], |
| ), |
| returnValue: _i20.Future<_i17.GithubService>.value(_FakeGithubService_20( |
| this, |
| Invocation.method( |
| #createGithubService, |
| [slug], |
| ), |
| )), |
| ) as _i20.Future<_i17.GithubService>); |
| |
| @override |
| _i17.GithubService createGithubServiceWithToken(String? token) => (super.noSuchMethod( |
| Invocation.method( |
| #createGithubServiceWithToken, |
| [token], |
| ), |
| returnValue: _FakeGithubService_20( |
| this, |
| Invocation.method( |
| #createGithubServiceWithToken, |
| [token], |
| ), |
| ), |
| ) as _i17.GithubService); |
| } |
| |
| /// A class which mocks [DatastoreService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| // ignore: must_be_immutable |
| class MockDatastoreService extends _i1.Mock implements _i9.DatastoreService { |
| MockDatastoreService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| int get maxEntityGroups => (super.noSuchMethod( |
| Invocation.getter(#maxEntityGroups), |
| returnValue: 0, |
| ) as int); |
| |
| @override |
| _i11.DatastoreDB get db => (super.noSuchMethod( |
| Invocation.getter(#db), |
| returnValue: _FakeDatastoreDB_13( |
| this, |
| Invocation.getter(#db), |
| ), |
| ) as _i11.DatastoreDB); |
| |
| @override |
| _i31.RetryOptions get retryOptions => (super.noSuchMethod( |
| Invocation.getter(#retryOptions), |
| returnValue: _i32.dummyValue<_i31.RetryOptions>( |
| this, |
| Invocation.getter(#retryOptions), |
| ), |
| ) as _i31.RetryOptions); |
| |
| @override |
| _i20.Stream<_i36.Commit> queryRecentCommits({ |
| int? limit = 100, |
| int? timestamp, |
| String? branch, |
| required _i13.RepositorySlug? slug, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #queryRecentCommits, |
| [], |
| { |
| #limit: limit, |
| #timestamp: timestamp, |
| #branch: branch, |
| #slug: slug, |
| }, |
| ), |
| returnValue: _i20.Stream<_i36.Commit>.empty(), |
| ) as _i20.Stream<_i36.Commit>); |
| |
| @override |
| _i20.Stream<_i35.Branch> queryBranches() => (super.noSuchMethod( |
| Invocation.method( |
| #queryBranches, |
| [], |
| ), |
| returnValue: _i20.Stream<_i35.Branch>.empty(), |
| ) as _i20.Stream<_i35.Branch>); |
| |
| @override |
| _i20.Stream<_i37.Task> queryRecentTasksByName({ |
| int? limit = 100, |
| required String? name, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #queryRecentTasksByName, |
| [], |
| { |
| #limit: limit, |
| #name: name, |
| }, |
| ), |
| returnValue: _i20.Stream<_i37.Task>.empty(), |
| ) as _i20.Stream<_i37.Task>); |
| |
| @override |
| _i20.Stream<_i37.FullTask> queryRecentTasks({ |
| String? taskName, |
| int? commitLimit = 20, |
| String? branch, |
| required _i13.RepositorySlug? slug, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #queryRecentTasks, |
| [], |
| { |
| #taskName: taskName, |
| #commitLimit: commitLimit, |
| #branch: branch, |
| #slug: slug, |
| }, |
| ), |
| returnValue: _i20.Stream<_i37.FullTask>.empty(), |
| ) as _i20.Stream<_i37.FullTask>); |
| |
| @override |
| _i20.Future<List<_i38.Stage>> queryTasksGroupedByStage(_i36.Commit? commit) => (super.noSuchMethod( |
| Invocation.method( |
| #queryTasksGroupedByStage, |
| [commit], |
| ), |
| returnValue: _i20.Future<List<_i38.Stage>>.value(<_i38.Stage>[]), |
| ) as _i20.Future<List<_i38.Stage>>); |
| |
| @override |
| _i20.Future<_i18.GithubBuildStatusUpdate> queryLastStatusUpdate( |
| _i13.RepositorySlug? slug, |
| _i13.PullRequest? pr, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #queryLastStatusUpdate, |
| [ |
| slug, |
| pr, |
| ], |
| ), |
| returnValue: _i20.Future<_i18.GithubBuildStatusUpdate>.value(_FakeGithubBuildStatusUpdate_21( |
| this, |
| Invocation.method( |
| #queryLastStatusUpdate, |
| [ |
| slug, |
| pr, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i18.GithubBuildStatusUpdate>); |
| |
| @override |
| _i20.Future<_i19.GithubGoldStatusUpdate> queryLastGoldUpdate( |
| _i13.RepositorySlug? slug, |
| _i13.PullRequest? pr, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #queryLastGoldUpdate, |
| [ |
| slug, |
| pr, |
| ], |
| ), |
| returnValue: _i20.Future<_i19.GithubGoldStatusUpdate>.value(_FakeGithubGoldStatusUpdate_22( |
| this, |
| Invocation.method( |
| #queryLastGoldUpdate, |
| [ |
| slug, |
| pr, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i19.GithubGoldStatusUpdate>); |
| |
| @override |
| _i20.Future<List<List<_i11.Model<dynamic>>>> shard(List<_i11.Model<dynamic>>? rows) => (super.noSuchMethod( |
| Invocation.method( |
| #shard, |
| [rows], |
| ), |
| returnValue: _i20.Future<List<List<_i11.Model<dynamic>>>>.value(<List<_i11.Model<dynamic>>>[]), |
| ) as _i20.Future<List<List<_i11.Model<dynamic>>>>); |
| |
| @override |
| _i20.Future<void> insert(List<_i11.Model<dynamic>>? rows) => (super.noSuchMethod( |
| Invocation.method( |
| #insert, |
| [rows], |
| ), |
| returnValue: _i20.Future<void>.value(), |
| returnValueForMissingStub: _i20.Future<void>.value(), |
| ) as _i20.Future<void>); |
| |
| @override |
| _i20.Future<List<T?>> lookupByKey<T extends _i11.Model<dynamic>>(List<_i11.Key<dynamic>>? keys) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #lookupByKey, |
| [keys], |
| ), |
| returnValue: _i20.Future<List<T?>>.value(<T?>[]), |
| ) as _i20.Future<List<T?>>); |
| |
| @override |
| _i20.Future<T> lookupByValue<T extends _i11.Model<dynamic>>( |
| _i11.Key<dynamic>? key, { |
| T Function()? orElse, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #lookupByValue, |
| [key], |
| {#orElse: orElse}, |
| ), |
| returnValue: _i32.ifNotNull( |
| _i32.dummyValueOrNull<T>( |
| this, |
| Invocation.method( |
| #lookupByValue, |
| [key], |
| {#orElse: orElse}, |
| ), |
| ), |
| (T v) => _i20.Future<T>.value(v), |
| ) ?? |
| _FakeFuture_23<T>( |
| this, |
| Invocation.method( |
| #lookupByValue, |
| [key], |
| {#orElse: orElse}, |
| ), |
| ), |
| ) as _i20.Future<T>); |
| |
| @override |
| _i20.Future<T?> withTransaction<T>(_i20.Future<T> Function(_i11.Transaction)? handler) => (super.noSuchMethod( |
| Invocation.method( |
| #withTransaction, |
| [handler], |
| ), |
| returnValue: _i20.Future<T?>.value(), |
| ) as _i20.Future<T?>); |
| |
| @override |
| _i20.Future<_i37.Task?> getTaskFromBuildbucketBuild( |
| _i8.Build? build, { |
| String? customName, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getTaskFromBuildbucketBuild, |
| [build], |
| {#customName: customName}, |
| ), |
| returnValue: _i20.Future<_i37.Task?>.value(), |
| ) as _i20.Future<_i37.Task?>); |
| } |
| |
| /// A class which mocks [FakeEntry]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockFakeEntry extends _i1.Mock implements _i39.FakeEntry { |
| MockFakeEntry() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i40.Uint8List get value => (super.noSuchMethod( |
| Invocation.getter(#value), |
| returnValue: _i40.Uint8List(0), |
| ) as _i40.Uint8List); |
| |
| @override |
| set value(_i40.Uint8List? _value) => super.noSuchMethod( |
| Invocation.setter( |
| #value, |
| _value, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i20.Future<_i40.Uint8List> get([ |
| _i20.Future<_i40.Uint8List?> Function()? create, |
| Duration? ttl, |
| ]) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #get, |
| [ |
| create, |
| ttl, |
| ], |
| ), |
| returnValue: _i20.Future<_i40.Uint8List>.value(_i40.Uint8List(0)), |
| ) as _i20.Future<_i40.Uint8List>); |
| |
| @override |
| _i20.Future<void> purge({int? retries = 0}) => (super.noSuchMethod( |
| Invocation.method( |
| #purge, |
| [], |
| {#retries: retries}, |
| ), |
| returnValue: _i20.Future<void>.value(), |
| returnValueForMissingStub: _i20.Future<void>.value(), |
| ) as _i20.Future<void>); |
| |
| @override |
| _i20.Future<_i40.Uint8List?> set( |
| _i40.Uint8List? value, [ |
| Duration? ttl, |
| ]) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #set, |
| [ |
| value, |
| ttl, |
| ], |
| ), |
| returnValue: _i20.Future<_i40.Uint8List?>.value(), |
| ) as _i20.Future<_i40.Uint8List?>); |
| } |
| |
| /// A class which mocks [FirestoreService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockFirestoreService extends _i1.Mock implements _i15.FirestoreService { |
| MockFirestoreService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i4.AccessClientProvider get accessClientProvider => (super.noSuchMethod( |
| Invocation.getter(#accessClientProvider), |
| returnValue: _FakeAccessClientProvider_2( |
| this, |
| Invocation.getter(#accessClientProvider), |
| ), |
| ) as _i4.AccessClientProvider); |
| |
| @override |
| _i20.Future<_i21.ProjectsDatabasesDocumentsResource> documentResource() => (super.noSuchMethod( |
| Invocation.method( |
| #documentResource, |
| [], |
| ), |
| returnValue: |
| _i20.Future<_i21.ProjectsDatabasesDocumentsResource>.value(_FakeProjectsDatabasesDocumentsResource_24( |
| this, |
| Invocation.method( |
| #documentResource, |
| [], |
| ), |
| )), |
| ) as _i20.Future<_i21.ProjectsDatabasesDocumentsResource>); |
| |
| @override |
| _i20.Future<_i21.Document> getDocument(String? name) => (super.noSuchMethod( |
| Invocation.method( |
| #getDocument, |
| [name], |
| ), |
| returnValue: _i20.Future<_i21.Document>.value(_FakeDocument_25( |
| this, |
| Invocation.method( |
| #getDocument, |
| [name], |
| ), |
| )), |
| ) as _i20.Future<_i21.Document>); |
| |
| @override |
| _i20.Future<_i21.BatchWriteResponse> batchWriteDocuments( |
| _i21.BatchWriteRequest? request, |
| String? database, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #batchWriteDocuments, |
| [ |
| request, |
| database, |
| ], |
| ), |
| returnValue: _i20.Future<_i21.BatchWriteResponse>.value(_FakeBatchWriteResponse_26( |
| this, |
| Invocation.method( |
| #batchWriteDocuments, |
| [ |
| request, |
| database, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i21.BatchWriteResponse>); |
| |
| @override |
| _i20.Future<_i21.CommitResponse> writeViaTransaction(List<_i21.Write>? writes) => (super.noSuchMethod( |
| Invocation.method( |
| #writeViaTransaction, |
| [writes], |
| ), |
| returnValue: _i20.Future<_i21.CommitResponse>.value(_FakeCommitResponse_27( |
| this, |
| Invocation.method( |
| #writeViaTransaction, |
| [writes], |
| ), |
| )), |
| ) as _i20.Future<_i21.CommitResponse>); |
| |
| @override |
| _i20.Future<List<_i41.Commit>> queryRecentCommits({ |
| int? limit = 100, |
| int? timestamp, |
| String? branch, |
| required _i13.RepositorySlug? slug, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #queryRecentCommits, |
| [], |
| { |
| #limit: limit, |
| #timestamp: timestamp, |
| #branch: branch, |
| #slug: slug, |
| }, |
| ), |
| returnValue: _i20.Future<List<_i41.Commit>>.value(<_i41.Commit>[]), |
| ) as _i20.Future<List<_i41.Commit>>); |
| |
| @override |
| _i20.Future<List<_i42.Task>> queryCommitTasks(String? commitSha) => (super.noSuchMethod( |
| Invocation.method( |
| #queryCommitTasks, |
| [commitSha], |
| ), |
| returnValue: _i20.Future<List<_i42.Task>>.value(<_i42.Task>[]), |
| ) as _i20.Future<List<_i42.Task>>); |
| |
| @override |
| _i20.Future<_i22.GithubGoldStatus> queryLastGoldStatus( |
| _i13.RepositorySlug? slug, |
| int? prNumber, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #queryLastGoldStatus, |
| [ |
| slug, |
| prNumber, |
| ], |
| ), |
| returnValue: _i20.Future<_i22.GithubGoldStatus>.value(_FakeGithubGoldStatus_28( |
| this, |
| Invocation.method( |
| #queryLastGoldStatus, |
| [ |
| slug, |
| prNumber, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i22.GithubGoldStatus>); |
| |
| @override |
| _i20.Future<_i23.GithubBuildStatus> queryLastBuildStatus( |
| _i13.RepositorySlug? slug, |
| int? prNumber, |
| String? head, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #queryLastBuildStatus, |
| [ |
| slug, |
| prNumber, |
| head, |
| ], |
| ), |
| returnValue: _i20.Future<_i23.GithubBuildStatus>.value(_FakeGithubBuildStatus_29( |
| this, |
| Invocation.method( |
| #queryLastBuildStatus, |
| [ |
| slug, |
| prNumber, |
| head, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i23.GithubBuildStatus>); |
| |
| @override |
| _i21.Value getValueFromFilter(Object? comparisonOject) => (super.noSuchMethod( |
| Invocation.method( |
| #getValueFromFilter, |
| [comparisonOject], |
| ), |
| returnValue: _FakeValue_30( |
| this, |
| Invocation.method( |
| #getValueFromFilter, |
| [comparisonOject], |
| ), |
| ), |
| ) as _i21.Value); |
| |
| @override |
| _i21.Filter generateFilter( |
| Map<String, Object>? filterMap, |
| String? compositeFilterOp, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #generateFilter, |
| [ |
| filterMap, |
| compositeFilterOp, |
| ], |
| ), |
| returnValue: _FakeFilter_31( |
| this, |
| Invocation.method( |
| #generateFilter, |
| [ |
| filterMap, |
| compositeFilterOp, |
| ], |
| ), |
| ), |
| ) as _i21.Filter); |
| |
| @override |
| _i20.Future<List<_i21.Document>> query( |
| String? collectionId, |
| Map<String, Object>? filterMap, { |
| int? limit, |
| Map<String, String>? orderMap, |
| String? compositeFilterOp = r'AND', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #query, |
| [ |
| collectionId, |
| filterMap, |
| ], |
| { |
| #limit: limit, |
| #orderMap: orderMap, |
| #compositeFilterOp: compositeFilterOp, |
| }, |
| ), |
| returnValue: _i20.Future<List<_i21.Document>>.value(<_i21.Document>[]), |
| ) as _i20.Future<List<_i21.Document>>); |
| |
| @override |
| List<_i21.Document> documentsFromQueryResponse(List<_i21.RunQueryResponseElement>? runQueryResponseElements) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #documentsFromQueryResponse, |
| [runQueryResponseElements], |
| ), |
| returnValue: <_i21.Document>[], |
| ) as List<_i21.Document>); |
| } |
| |
| /// A class which mocks [IssuesService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockIssuesService extends _i1.Mock implements _i13.IssuesService { |
| MockIssuesService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i13.GitHub get github => (super.noSuchMethod( |
| Invocation.getter(#github), |
| returnValue: _FakeGitHub_16( |
| this, |
| Invocation.getter(#github), |
| ), |
| ) as _i13.GitHub); |
| |
| @override |
| _i20.Stream<_i13.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: _i20.Stream<_i13.Issue>.empty(), |
| ) as _i20.Stream<_i13.Issue>); |
| |
| @override |
| _i20.Stream<_i13.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: _i20.Stream<_i13.Issue>.empty(), |
| ) as _i20.Stream<_i13.Issue>); |
| |
| @override |
| _i20.Stream<_i13.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: _i20.Stream<_i13.Issue>.empty(), |
| ) as _i20.Stream<_i13.Issue>); |
| |
| @override |
| _i20.Stream<_i13.Issue> listByRepo( |
| _i13.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: _i20.Stream<_i13.Issue>.empty(), |
| ) as _i20.Stream<_i13.Issue>); |
| |
| @override |
| _i20.Stream<_i13.Reaction> listReactions( |
| _i13.RepositorySlug? slug, |
| int? issueNumber, { |
| _i13.ReactionType? content, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listReactions, |
| [ |
| slug, |
| issueNumber, |
| ], |
| {#content: content}, |
| ), |
| returnValue: _i20.Stream<_i13.Reaction>.empty(), |
| ) as _i20.Stream<_i13.Reaction>); |
| |
| @override |
| _i20.Future<_i13.Issue> edit( |
| _i13.RepositorySlug? slug, |
| int? issueNumber, |
| _i13.IssueRequest? issue, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #edit, |
| [ |
| slug, |
| issueNumber, |
| issue, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.Issue>.value(_FakeIssue_32( |
| this, |
| Invocation.method( |
| #edit, |
| [ |
| slug, |
| issueNumber, |
| issue, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.Issue>); |
| |
| @override |
| _i20.Future<_i13.Issue> get( |
| _i13.RepositorySlug? slug, |
| int? issueNumber, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #get, |
| [ |
| slug, |
| issueNumber, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.Issue>.value(_FakeIssue_32( |
| this, |
| Invocation.method( |
| #get, |
| [ |
| slug, |
| issueNumber, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.Issue>); |
| |
| @override |
| _i20.Future<_i13.Issue> create( |
| _i13.RepositorySlug? slug, |
| _i13.IssueRequest? issue, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #create, |
| [ |
| slug, |
| issue, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.Issue>.value(_FakeIssue_32( |
| this, |
| Invocation.method( |
| #create, |
| [ |
| slug, |
| issue, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.Issue>); |
| |
| @override |
| _i20.Stream<_i13.User> listAssignees(_i13.RepositorySlug? slug) => (super.noSuchMethod( |
| Invocation.method( |
| #listAssignees, |
| [slug], |
| ), |
| returnValue: _i20.Stream<_i13.User>.empty(), |
| ) as _i20.Stream<_i13.User>); |
| |
| @override |
| _i20.Future<bool> isAssignee( |
| _i13.RepositorySlug? slug, |
| String? repoName, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #isAssignee, |
| [ |
| slug, |
| repoName, |
| ], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Stream<_i13.IssueComment> listCommentsByIssue( |
| _i13.RepositorySlug? slug, |
| int? issueNumber, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listCommentsByIssue, |
| [ |
| slug, |
| issueNumber, |
| ], |
| ), |
| returnValue: _i20.Stream<_i13.IssueComment>.empty(), |
| ) as _i20.Stream<_i13.IssueComment>); |
| |
| @override |
| _i20.Stream<_i13.IssueComment> listCommentsByRepo(_i13.RepositorySlug? slug) => (super.noSuchMethod( |
| Invocation.method( |
| #listCommentsByRepo, |
| [slug], |
| ), |
| returnValue: _i20.Stream<_i13.IssueComment>.empty(), |
| ) as _i20.Stream<_i13.IssueComment>); |
| |
| @override |
| _i20.Future<_i13.IssueComment> getComment( |
| _i13.RepositorySlug? slug, |
| int? id, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getComment, |
| [ |
| slug, |
| id, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.IssueComment>.value(_FakeIssueComment_33( |
| this, |
| Invocation.method( |
| #getComment, |
| [ |
| slug, |
| id, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.IssueComment>); |
| |
| @override |
| _i20.Future<_i13.IssueComment> createComment( |
| _i13.RepositorySlug? slug, |
| int? issueNumber, |
| String? body, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createComment, |
| [ |
| slug, |
| issueNumber, |
| body, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.IssueComment>.value(_FakeIssueComment_33( |
| this, |
| Invocation.method( |
| #createComment, |
| [ |
| slug, |
| issueNumber, |
| body, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.IssueComment>); |
| |
| @override |
| _i20.Future<_i13.IssueComment> updateComment( |
| _i13.RepositorySlug? slug, |
| int? id, |
| String? body, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #updateComment, |
| [ |
| slug, |
| id, |
| body, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.IssueComment>.value(_FakeIssueComment_33( |
| this, |
| Invocation.method( |
| #updateComment, |
| [ |
| slug, |
| id, |
| body, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.IssueComment>); |
| |
| @override |
| _i20.Future<bool> deleteComment( |
| _i13.RepositorySlug? slug, |
| int? id, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #deleteComment, |
| [ |
| slug, |
| id, |
| ], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Stream<_i13.IssueLabel> listLabels(_i13.RepositorySlug? slug) => (super.noSuchMethod( |
| Invocation.method( |
| #listLabels, |
| [slug], |
| ), |
| returnValue: _i20.Stream<_i13.IssueLabel>.empty(), |
| ) as _i20.Stream<_i13.IssueLabel>); |
| |
| @override |
| _i20.Future<_i13.IssueLabel> getLabel( |
| _i13.RepositorySlug? slug, |
| String? name, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getLabel, |
| [ |
| slug, |
| name, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.IssueLabel>.value(_FakeIssueLabel_34( |
| this, |
| Invocation.method( |
| #getLabel, |
| [ |
| slug, |
| name, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.IssueLabel>); |
| |
| @override |
| _i20.Future<_i13.IssueLabel> createLabel( |
| _i13.RepositorySlug? slug, |
| String? name, { |
| String? color, |
| String? description, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createLabel, |
| [ |
| slug, |
| name, |
| ], |
| { |
| #color: color, |
| #description: description, |
| }, |
| ), |
| returnValue: _i20.Future<_i13.IssueLabel>.value(_FakeIssueLabel_34( |
| this, |
| Invocation.method( |
| #createLabel, |
| [ |
| slug, |
| name, |
| ], |
| { |
| #color: color, |
| #description: description, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i13.IssueLabel>); |
| |
| @override |
| _i20.Future<_i13.IssueLabel> editLabel( |
| _i13.RepositorySlug? slug, |
| String? name, |
| String? color, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #editLabel, |
| [ |
| slug, |
| name, |
| color, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.IssueLabel>.value(_FakeIssueLabel_34( |
| this, |
| Invocation.method( |
| #editLabel, |
| [ |
| slug, |
| name, |
| color, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.IssueLabel>); |
| |
| @override |
| _i20.Future<_i13.IssueLabel> updateLabel( |
| _i13.RepositorySlug? slug, |
| String? name, { |
| String? newName, |
| String? color, |
| String? description, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #updateLabel, |
| [ |
| slug, |
| name, |
| ], |
| { |
| #newName: newName, |
| #color: color, |
| #description: description, |
| }, |
| ), |
| returnValue: _i20.Future<_i13.IssueLabel>.value(_FakeIssueLabel_34( |
| this, |
| Invocation.method( |
| #updateLabel, |
| [ |
| slug, |
| name, |
| ], |
| { |
| #newName: newName, |
| #color: color, |
| #description: description, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i13.IssueLabel>); |
| |
| @override |
| _i20.Future<bool> deleteLabel( |
| _i13.RepositorySlug? slug, |
| String? name, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #deleteLabel, |
| [ |
| slug, |
| name, |
| ], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Stream<_i13.IssueLabel> listLabelsByIssue( |
| _i13.RepositorySlug? slug, |
| int? issueNumber, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listLabelsByIssue, |
| [ |
| slug, |
| issueNumber, |
| ], |
| ), |
| returnValue: _i20.Stream<_i13.IssueLabel>.empty(), |
| ) as _i20.Stream<_i13.IssueLabel>); |
| |
| @override |
| _i20.Future<List<_i13.IssueLabel>> addLabelsToIssue( |
| _i13.RepositorySlug? slug, |
| int? issueNumber, |
| List<String>? labels, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #addLabelsToIssue, |
| [ |
| slug, |
| issueNumber, |
| labels, |
| ], |
| ), |
| returnValue: _i20.Future<List<_i13.IssueLabel>>.value(<_i13.IssueLabel>[]), |
| ) as _i20.Future<List<_i13.IssueLabel>>); |
| |
| @override |
| _i20.Future<List<_i13.IssueLabel>> replaceLabelsForIssue( |
| _i13.RepositorySlug? slug, |
| int? issueNumber, |
| List<String>? labels, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #replaceLabelsForIssue, |
| [ |
| slug, |
| issueNumber, |
| labels, |
| ], |
| ), |
| returnValue: _i20.Future<List<_i13.IssueLabel>>.value(<_i13.IssueLabel>[]), |
| ) as _i20.Future<List<_i13.IssueLabel>>); |
| |
| @override |
| _i20.Future<bool> removeLabelForIssue( |
| _i13.RepositorySlug? slug, |
| int? issueNumber, |
| String? label, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #removeLabelForIssue, |
| [ |
| slug, |
| issueNumber, |
| label, |
| ], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Future<bool> removeAllLabelsForIssue( |
| _i13.RepositorySlug? slug, |
| int? issueNumber, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #removeAllLabelsForIssue, |
| [ |
| slug, |
| issueNumber, |
| ], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Stream<_i13.Milestone> listMilestones(_i13.RepositorySlug? slug) => (super.noSuchMethod( |
| Invocation.method( |
| #listMilestones, |
| [slug], |
| ), |
| returnValue: _i20.Stream<_i13.Milestone>.empty(), |
| ) as _i20.Stream<_i13.Milestone>); |
| |
| @override |
| _i20.Future<_i13.Milestone> createMilestone( |
| _i13.RepositorySlug? slug, |
| _i13.CreateMilestone? request, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createMilestone, |
| [ |
| slug, |
| request, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.Milestone>.value(_FakeMilestone_35( |
| this, |
| Invocation.method( |
| #createMilestone, |
| [ |
| slug, |
| request, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.Milestone>); |
| |
| @override |
| _i20.Future<bool> deleteMilestone( |
| _i13.RepositorySlug? slug, |
| int? number, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #deleteMilestone, |
| [ |
| slug, |
| number, |
| ], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Stream<_i13.TimelineEvent> listTimeline( |
| _i13.RepositorySlug? slug, |
| int? issueNumber, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listTimeline, |
| [ |
| slug, |
| issueNumber, |
| ], |
| ), |
| returnValue: _i20.Stream<_i13.TimelineEvent>.empty(), |
| ) as _i20.Stream<_i13.TimelineEvent>); |
| |
| @override |
| _i20.Future<void> lock( |
| _i13.RepositorySlug? slug, |
| int? number, { |
| String? lockReason, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #lock, |
| [ |
| slug, |
| number, |
| ], |
| {#lockReason: lockReason}, |
| ), |
| returnValue: _i20.Future<void>.value(), |
| returnValueForMissingStub: _i20.Future<void>.value(), |
| ) as _i20.Future<void>); |
| |
| @override |
| _i20.Future<void> unlock( |
| _i13.RepositorySlug? slug, |
| int? number, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #unlock, |
| [ |
| slug, |
| number, |
| ], |
| ), |
| returnValue: _i20.Future<void>.value(), |
| returnValueForMissingStub: _i20.Future<void>.value(), |
| ) as _i20.Future<void>); |
| } |
| |
| /// A class which mocks [GithubChecksService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockGithubChecksService extends _i1.Mock implements _i15.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 |
| set config(_i2.Config? _config) => super.noSuchMethod( |
| Invocation.setter( |
| #config, |
| _config, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i24.GithubChecksUtil get githubChecksUtil => (super.noSuchMethod( |
| Invocation.getter(#githubChecksUtil), |
| returnValue: _FakeGithubChecksUtil_36( |
| this, |
| Invocation.getter(#githubChecksUtil), |
| ), |
| ) as _i24.GithubChecksUtil); |
| |
| @override |
| set githubChecksUtil(_i24.GithubChecksUtil? _githubChecksUtil) => super.noSuchMethod( |
| Invocation.setter( |
| #githubChecksUtil, |
| _githubChecksUtil, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i20.Future<bool> updateCheckStatus({ |
| required _i8.Build? build, |
| required Map<String, dynamic>? userDataMap, |
| required _i15.LuciBuildService? luciBuildService, |
| required _i13.RepositorySlug? slug, |
| bool? rescheduled = false, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #updateCheckStatus, |
| [], |
| { |
| #build: build, |
| #userDataMap: userDataMap, |
| #luciBuildService: luciBuildService, |
| #slug: slug, |
| #rescheduled: rescheduled, |
| }, |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| bool taskFailed(_i8.Status? status) => (super.noSuchMethod( |
| Invocation.method( |
| #taskFailed, |
| [status], |
| ), |
| returnValue: false, |
| ) as bool); |
| |
| @override |
| int currentAttempt(List<_i8.StringPair>? tags) => (super.noSuchMethod( |
| Invocation.method( |
| #currentAttempt, |
| [tags], |
| ), |
| returnValue: 0, |
| ) as int); |
| |
| @override |
| String getGithubSummary(String? summary) => (super.noSuchMethod( |
| Invocation.method( |
| #getGithubSummary, |
| [summary], |
| ), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.method( |
| #getGithubSummary, |
| [summary], |
| ), |
| ), |
| ) as String); |
| |
| @override |
| _i13.CheckRunConclusion conclusionForResult(_i8.Status? status) => (super.noSuchMethod( |
| Invocation.method( |
| #conclusionForResult, |
| [status], |
| ), |
| returnValue: _FakeCheckRunConclusion_37( |
| this, |
| Invocation.method( |
| #conclusionForResult, |
| [status], |
| ), |
| ), |
| ) as _i13.CheckRunConclusion); |
| |
| @override |
| _i13.CheckRunStatus statusForResult(_i8.Status? status) => (super.noSuchMethod( |
| Invocation.method( |
| #statusForResult, |
| [status], |
| ), |
| returnValue: _FakeCheckRunStatus_38( |
| this, |
| Invocation.method( |
| #statusForResult, |
| [status], |
| ), |
| ), |
| ) as _i13.CheckRunStatus); |
| |
| @override |
| _i20.Future<_i13.PullRequest?> findMatchingPullRequest( |
| _i13.RepositorySlug? slug, |
| String? headSha, |
| int? checkSuiteId, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #findMatchingPullRequest, |
| [ |
| slug, |
| headSha, |
| checkSuiteId, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.PullRequest?>.value(), |
| ) as _i20.Future<_i13.PullRequest?>); |
| } |
| |
| /// A class which mocks [GithubChecksUtil]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockGithubChecksUtil extends _i1.Mock implements _i24.GithubChecksUtil { |
| MockGithubChecksUtil() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i20.Future<Map<String, _i13.CheckRun>> allCheckRuns( |
| _i13.GitHub? gitHubClient, |
| _i34.CheckSuiteEvent? checkSuiteEvent, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #allCheckRuns, |
| [ |
| gitHubClient, |
| checkSuiteEvent, |
| ], |
| ), |
| returnValue: _i20.Future<Map<String, _i13.CheckRun>>.value(<String, _i13.CheckRun>{}), |
| ) as _i20.Future<Map<String, _i13.CheckRun>>); |
| |
| @override |
| _i20.Future<_i13.CheckSuite> getCheckSuite( |
| _i13.GitHub? gitHubClient, |
| _i13.RepositorySlug? slug, |
| int? checkSuiteId, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getCheckSuite, |
| [ |
| gitHubClient, |
| slug, |
| checkSuiteId, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.CheckSuite>.value(_FakeCheckSuite_39( |
| this, |
| Invocation.method( |
| #getCheckSuite, |
| [ |
| gitHubClient, |
| slug, |
| checkSuiteId, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.CheckSuite>); |
| |
| @override |
| _i20.Future<List<_i13.CheckSuite>> listCheckSuitesForRef( |
| _i13.GitHub? gitHubClient, |
| _i13.RepositorySlug? slug, { |
| required String? ref, |
| int? appId, |
| String? checkName, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listCheckSuitesForRef, |
| [ |
| gitHubClient, |
| slug, |
| ], |
| { |
| #ref: ref, |
| #appId: appId, |
| #checkName: checkName, |
| }, |
| ), |
| returnValue: _i20.Future<List<_i13.CheckSuite>>.value(<_i13.CheckSuite>[]), |
| ) as _i20.Future<List<_i13.CheckSuite>>); |
| |
| @override |
| _i20.Future<void> updateCheckRun( |
| _i2.Config? config, |
| _i13.RepositorySlug? slug, |
| _i13.CheckRun? checkRun, { |
| _i13.CheckRunStatus? status = _i13.CheckRunStatus.queued, |
| _i13.CheckRunConclusion? conclusion, |
| String? detailsUrl, |
| _i13.CheckRunOutput? output, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #updateCheckRun, |
| [ |
| config, |
| slug, |
| checkRun, |
| ], |
| { |
| #status: status, |
| #conclusion: conclusion, |
| #detailsUrl: detailsUrl, |
| #output: output, |
| }, |
| ), |
| returnValue: _i20.Future<void>.value(), |
| returnValueForMissingStub: _i20.Future<void>.value(), |
| ) as _i20.Future<void>); |
| |
| @override |
| _i20.Future<_i13.CheckRun> getCheckRun( |
| _i2.Config? config, |
| _i13.RepositorySlug? slug, |
| int? id, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getCheckRun, |
| [ |
| config, |
| slug, |
| id, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.CheckRun>.value(_FakeCheckRun_40( |
| this, |
| Invocation.method( |
| #getCheckRun, |
| [ |
| config, |
| slug, |
| id, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.CheckRun>); |
| |
| @override |
| _i20.Future<_i13.CheckRun> createCheckRun( |
| _i2.Config? config, |
| _i13.RepositorySlug? slug, |
| String? sha, |
| String? name, { |
| _i13.CheckRunOutput? output, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createCheckRun, |
| [ |
| config, |
| slug, |
| sha, |
| name, |
| ], |
| {#output: output}, |
| ), |
| returnValue: _i20.Future<_i13.CheckRun>.value(_FakeCheckRun_40( |
| this, |
| Invocation.method( |
| #createCheckRun, |
| [ |
| config, |
| slug, |
| sha, |
| name, |
| ], |
| {#output: output}, |
| ), |
| )), |
| ) as _i20.Future<_i13.CheckRun>); |
| } |
| |
| /// A class which mocks [GithubService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockGithubService extends _i1.Mock implements _i17.GithubService { |
| MockGithubService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i13.GitHub get github => (super.noSuchMethod( |
| Invocation.getter(#github), |
| returnValue: _FakeGitHub_16( |
| this, |
| Invocation.getter(#github), |
| ), |
| ) as _i13.GitHub); |
| |
| @override |
| _i20.Future<List<_i13.RepositoryCommit>> listBranchedCommits( |
| _i13.RepositorySlug? slug, |
| String? branch, |
| int? lastCommitTimestampMills, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listBranchedCommits, |
| [ |
| slug, |
| branch, |
| lastCommitTimestampMills, |
| ], |
| ), |
| returnValue: _i20.Future<List<_i13.RepositoryCommit>>.value(<_i13.RepositoryCommit>[]), |
| ) as _i20.Future<List<_i13.RepositoryCommit>>); |
| |
| @override |
| _i20.Future<bool> deleteBranch( |
| _i13.RepositorySlug? slug, |
| String? branchName, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #deleteBranch, |
| [ |
| slug, |
| branchName, |
| ], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Future<List<_i13.PullRequest>> listPullRequests( |
| _i13.RepositorySlug? slug, |
| String? branch, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listPullRequests, |
| [ |
| slug, |
| branch, |
| ], |
| ), |
| returnValue: _i20.Future<List<_i13.PullRequest>>.value(<_i13.PullRequest>[]), |
| ) as _i20.Future<List<_i13.PullRequest>>); |
| |
| @override |
| _i20.Future<_i13.PullRequest> createPullRequest( |
| _i13.RepositorySlug? slug, { |
| required String? title, |
| String? body, |
| String? commitMessage, |
| required _i13.GitReference? baseRef, |
| List<_i13.CreateGitTreeEntry>? entries, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createPullRequest, |
| [slug], |
| { |
| #title: title, |
| #body: body, |
| #commitMessage: commitMessage, |
| #baseRef: baseRef, |
| #entries: entries, |
| }, |
| ), |
| returnValue: _i20.Future<_i13.PullRequest>.value(_FakePullRequest_41( |
| this, |
| Invocation.method( |
| #createPullRequest, |
| [slug], |
| { |
| #title: title, |
| #body: body, |
| #commitMessage: commitMessage, |
| #baseRef: baseRef, |
| #entries: entries, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i13.PullRequest>); |
| |
| @override |
| _i20.Future<void> assignReviewer( |
| _i13.RepositorySlug? slug, { |
| int? pullRequestNumber, |
| String? reviewer, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #assignReviewer, |
| [slug], |
| { |
| #pullRequestNumber: pullRequestNumber, |
| #reviewer: reviewer, |
| }, |
| ), |
| returnValue: _i20.Future<void>.value(), |
| returnValueForMissingStub: _i20.Future<void>.value(), |
| ) as _i20.Future<void>); |
| |
| @override |
| _i20.Future<List<_i13.IssueLabel>> getIssueLabels( |
| _i13.RepositorySlug? slug, |
| int? issueNumber, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getIssueLabels, |
| [ |
| slug, |
| issueNumber, |
| ], |
| ), |
| returnValue: _i20.Future<List<_i13.IssueLabel>>.value(<_i13.IssueLabel>[]), |
| ) as _i20.Future<List<_i13.IssueLabel>>); |
| |
| @override |
| _i20.Future<List<_i13.IssueLabel>> addIssueLabels( |
| _i13.RepositorySlug? slug, |
| int? issueNumber, |
| List<String>? labels, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #addIssueLabels, |
| [ |
| slug, |
| issueNumber, |
| labels, |
| ], |
| ), |
| returnValue: _i20.Future<List<_i13.IssueLabel>>.value(<_i13.IssueLabel>[]), |
| ) as _i20.Future<List<_i13.IssueLabel>>); |
| |
| @override |
| _i20.Future<List<_i13.Issue>> listIssues( |
| _i13.RepositorySlug? slug, { |
| List<String>? labels, |
| String? state = r'open', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listIssues, |
| [slug], |
| { |
| #labels: labels, |
| #state: state, |
| }, |
| ), |
| returnValue: _i20.Future<List<_i13.Issue>>.value(<_i13.Issue>[]), |
| ) as _i20.Future<List<_i13.Issue>>); |
| |
| @override |
| _i20.Future<bool> removeLabel( |
| _i13.RepositorySlug? slug, |
| int? issueNumber, |
| String? label, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #removeLabel, |
| [ |
| slug, |
| issueNumber, |
| label, |
| ], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Future<_i13.Issue>? getIssue( |
| _i13.RepositorySlug? slug, { |
| required int? issueNumber, |
| }) => |
| (super.noSuchMethod(Invocation.method( |
| #getIssue, |
| [slug], |
| {#issueNumber: issueNumber}, |
| )) as _i20.Future<_i13.Issue>?); |
| |
| @override |
| _i20.Future<void> assignIssue( |
| _i13.RepositorySlug? slug, { |
| required int? issueNumber, |
| required String? assignee, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #assignIssue, |
| [slug], |
| { |
| #issueNumber: issueNumber, |
| #assignee: assignee, |
| }, |
| ), |
| returnValue: _i20.Future<void>.value(), |
| returnValueForMissingStub: _i20.Future<void>.value(), |
| ) as _i20.Future<void>); |
| |
| @override |
| _i20.Future<_i13.Issue> createIssue( |
| _i13.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: _i20.Future<_i13.Issue>.value(_FakeIssue_32( |
| this, |
| Invocation.method( |
| #createIssue, |
| [slug], |
| { |
| #title: title, |
| #body: body, |
| #labels: labels, |
| #assignee: assignee, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i13.Issue>); |
| |
| @override |
| _i20.Future<_i13.IssueComment?> createComment( |
| _i13.RepositorySlug? slug, { |
| required int? issueNumber, |
| required String? body, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createComment, |
| [slug], |
| { |
| #issueNumber: issueNumber, |
| #body: body, |
| }, |
| ), |
| returnValue: _i20.Future<_i13.IssueComment?>.value(), |
| ) as _i20.Future<_i13.IssueComment?>); |
| |
| @override |
| _i20.Future<List<_i13.IssueLabel>> replaceLabelsForIssue( |
| _i13.RepositorySlug? slug, { |
| required int? issueNumber, |
| required List<String>? labels, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #replaceLabelsForIssue, |
| [slug], |
| { |
| #issueNumber: issueNumber, |
| #labels: labels, |
| }, |
| ), |
| returnValue: _i20.Future<List<_i13.IssueLabel>>.value(<_i13.IssueLabel>[]), |
| ) as _i20.Future<List<_i13.IssueLabel>>); |
| |
| @override |
| _i20.Future<List<String>> listFiles(_i13.PullRequest? pullRequest) => (super.noSuchMethod( |
| Invocation.method( |
| #listFiles, |
| [pullRequest], |
| ), |
| returnValue: _i20.Future<List<String>>.value(<String>[]), |
| ) as _i20.Future<List<String>>); |
| |
| @override |
| _i20.Future<String> getFileContent( |
| _i13.RepositorySlug? slug, |
| String? path, { |
| String? ref, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getFileContent, |
| [ |
| slug, |
| path, |
| ], |
| {#ref: ref}, |
| ), |
| returnValue: _i20.Future<String>.value(_i32.dummyValue<String>( |
| this, |
| Invocation.method( |
| #getFileContent, |
| [ |
| slug, |
| path, |
| ], |
| {#ref: ref}, |
| ), |
| )), |
| ) as _i20.Future<String>); |
| |
| @override |
| _i20.Future<_i13.GitReference> getReference( |
| _i13.RepositorySlug? slug, |
| String? ref, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getReference, |
| [ |
| slug, |
| ref, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.GitReference>.value(_FakeGitReference_42( |
| this, |
| Invocation.method( |
| #getReference, |
| [ |
| slug, |
| ref, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.GitReference>); |
| |
| @override |
| _i20.Future<_i13.RateLimit> getRateLimit() => (super.noSuchMethod( |
| Invocation.method( |
| #getRateLimit, |
| [], |
| ), |
| returnValue: _i20.Future<_i13.RateLimit>.value(_FakeRateLimit_43( |
| this, |
| Invocation.method( |
| #getRateLimit, |
| [], |
| ), |
| )), |
| ) as _i20.Future<_i13.RateLimit>); |
| |
| @override |
| _i20.Future<List<_i13.Issue>> searchIssuesAndPRs( |
| _i13.RepositorySlug? slug, |
| String? query, { |
| String? sort, |
| int? pages = 2, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #searchIssuesAndPRs, |
| [ |
| slug, |
| query, |
| ], |
| { |
| #sort: sort, |
| #pages: pages, |
| }, |
| ), |
| returnValue: _i20.Future<List<_i13.Issue>>.value(<_i13.Issue>[]), |
| ) as _i20.Future<List<_i13.Issue>>); |
| |
| @override |
| _i20.Future<_i13.PullRequest> getPullRequest( |
| _i13.RepositorySlug? slug, |
| int? number, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getPullRequest, |
| [ |
| slug, |
| number, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.PullRequest>.value(_FakePullRequest_41( |
| this, |
| Invocation.method( |
| #getPullRequest, |
| [ |
| slug, |
| number, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.PullRequest>); |
| } |
| |
| /// A class which mocks [GitService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockGitService extends _i1.Mock implements _i13.GitService { |
| MockGitService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i13.GitHub get github => (super.noSuchMethod( |
| Invocation.getter(#github), |
| returnValue: _FakeGitHub_16( |
| this, |
| Invocation.getter(#github), |
| ), |
| ) as _i13.GitHub); |
| |
| @override |
| _i20.Future<_i13.GitBlob> getBlob( |
| _i13.RepositorySlug? slug, |
| String? sha, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getBlob, |
| [ |
| slug, |
| sha, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.GitBlob>.value(_FakeGitBlob_44( |
| this, |
| Invocation.method( |
| #getBlob, |
| [ |
| slug, |
| sha, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.GitBlob>); |
| |
| @override |
| _i20.Future<_i13.GitBlob> createBlob( |
| _i13.RepositorySlug? slug, |
| _i13.CreateGitBlob? blob, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createBlob, |
| [ |
| slug, |
| blob, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.GitBlob>.value(_FakeGitBlob_44( |
| this, |
| Invocation.method( |
| #createBlob, |
| [ |
| slug, |
| blob, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.GitBlob>); |
| |
| @override |
| _i20.Future<_i13.GitCommit> getCommit( |
| _i13.RepositorySlug? slug, |
| String? sha, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getCommit, |
| [ |
| slug, |
| sha, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.GitCommit>.value(_FakeGitCommit_45( |
| this, |
| Invocation.method( |
| #getCommit, |
| [ |
| slug, |
| sha, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.GitCommit>); |
| |
| @override |
| _i20.Future<_i13.GitCommit> createCommit( |
| _i13.RepositorySlug? slug, |
| _i13.CreateGitCommit? commit, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createCommit, |
| [ |
| slug, |
| commit, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.GitCommit>.value(_FakeGitCommit_45( |
| this, |
| Invocation.method( |
| #createCommit, |
| [ |
| slug, |
| commit, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.GitCommit>); |
| |
| @override |
| _i20.Future<_i13.GitReference> getReference( |
| _i13.RepositorySlug? slug, |
| String? ref, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getReference, |
| [ |
| slug, |
| ref, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.GitReference>.value(_FakeGitReference_42( |
| this, |
| Invocation.method( |
| #getReference, |
| [ |
| slug, |
| ref, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.GitReference>); |
| |
| @override |
| _i20.Stream<_i13.GitReference> listReferences( |
| _i13.RepositorySlug? slug, { |
| String? type, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listReferences, |
| [slug], |
| {#type: type}, |
| ), |
| returnValue: _i20.Stream<_i13.GitReference>.empty(), |
| ) as _i20.Stream<_i13.GitReference>); |
| |
| @override |
| _i20.Future<_i13.GitReference> createReference( |
| _i13.RepositorySlug? slug, |
| String? ref, |
| String? sha, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createReference, |
| [ |
| slug, |
| ref, |
| sha, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.GitReference>.value(_FakeGitReference_42( |
| this, |
| Invocation.method( |
| #createReference, |
| [ |
| slug, |
| ref, |
| sha, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.GitReference>); |
| |
| @override |
| _i20.Future<_i13.GitReference> editReference( |
| _i13.RepositorySlug? slug, |
| String? ref, |
| String? sha, { |
| bool? force = false, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #editReference, |
| [ |
| slug, |
| ref, |
| sha, |
| ], |
| {#force: force}, |
| ), |
| returnValue: _i20.Future<_i13.GitReference>.value(_FakeGitReference_42( |
| this, |
| Invocation.method( |
| #editReference, |
| [ |
| slug, |
| ref, |
| sha, |
| ], |
| {#force: force}, |
| ), |
| )), |
| ) as _i20.Future<_i13.GitReference>); |
| |
| @override |
| _i20.Future<bool> deleteReference( |
| _i13.RepositorySlug? slug, |
| String? ref, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #deleteReference, |
| [ |
| slug, |
| ref, |
| ], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Future<_i13.GitTag> getTag( |
| _i13.RepositorySlug? slug, |
| String? sha, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getTag, |
| [ |
| slug, |
| sha, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.GitTag>.value(_FakeGitTag_46( |
| this, |
| Invocation.method( |
| #getTag, |
| [ |
| slug, |
| sha, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.GitTag>); |
| |
| @override |
| _i20.Future<_i13.GitTag> createTag( |
| _i13.RepositorySlug? slug, |
| _i13.CreateGitTag? tag, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createTag, |
| [ |
| slug, |
| tag, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.GitTag>.value(_FakeGitTag_46( |
| this, |
| Invocation.method( |
| #createTag, |
| [ |
| slug, |
| tag, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.GitTag>); |
| |
| @override |
| _i20.Future<_i13.GitTree> getTree( |
| _i13.RepositorySlug? slug, |
| String? sha, { |
| bool? recursive = false, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getTree, |
| [ |
| slug, |
| sha, |
| ], |
| {#recursive: recursive}, |
| ), |
| returnValue: _i20.Future<_i13.GitTree>.value(_FakeGitTree_47( |
| this, |
| Invocation.method( |
| #getTree, |
| [ |
| slug, |
| sha, |
| ], |
| {#recursive: recursive}, |
| ), |
| )), |
| ) as _i20.Future<_i13.GitTree>); |
| |
| @override |
| _i20.Future<_i13.GitTree> createTree( |
| _i13.RepositorySlug? slug, |
| _i13.CreateGitTree? tree, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createTree, |
| [ |
| slug, |
| tree, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.GitTree>.value(_FakeGitTree_47( |
| this, |
| Invocation.method( |
| #createTree, |
| [ |
| slug, |
| tree, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.GitTree>); |
| } |
| |
| /// A class which mocks [GraphQLClient]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockGraphQLClient extends _i1.Mock implements _i14.GraphQLClient { |
| MockGraphQLClient() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i14.DefaultPolicies get defaultPolicies => (super.noSuchMethod( |
| Invocation.getter(#defaultPolicies), |
| returnValue: _FakeDefaultPolicies_48( |
| this, |
| Invocation.getter(#defaultPolicies), |
| ), |
| ) as _i14.DefaultPolicies); |
| |
| @override |
| set defaultPolicies(_i14.DefaultPolicies? _defaultPolicies) => super.noSuchMethod( |
| Invocation.setter( |
| #defaultPolicies, |
| _defaultPolicies, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i14.Link get link => (super.noSuchMethod( |
| Invocation.getter(#link), |
| returnValue: _FakeLink_49( |
| this, |
| Invocation.getter(#link), |
| ), |
| ) as _i14.Link); |
| |
| @override |
| _i14.GraphQLCache get cache => (super.noSuchMethod( |
| Invocation.getter(#cache), |
| returnValue: _FakeGraphQLCache_50( |
| this, |
| Invocation.getter(#cache), |
| ), |
| ) as _i14.GraphQLCache); |
| |
| @override |
| _i14.QueryManager get queryManager => (super.noSuchMethod( |
| Invocation.getter(#queryManager), |
| returnValue: _FakeQueryManager_51( |
| this, |
| Invocation.getter(#queryManager), |
| ), |
| ) as _i14.QueryManager); |
| |
| @override |
| set queryManager(_i14.QueryManager? _queryManager) => super.noSuchMethod( |
| Invocation.setter( |
| #queryManager, |
| _queryManager, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i14.GraphQLClient copyWith({ |
| _i14.Link? link, |
| _i14.GraphQLCache? cache, |
| _i14.DefaultPolicies? defaultPolicies, |
| bool? alwaysRebroadcast, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #copyWith, |
| [], |
| { |
| #link: link, |
| #cache: cache, |
| #defaultPolicies: defaultPolicies, |
| #alwaysRebroadcast: alwaysRebroadcast, |
| }, |
| ), |
| returnValue: _FakeGraphQLClient_17( |
| this, |
| Invocation.method( |
| #copyWith, |
| [], |
| { |
| #link: link, |
| #cache: cache, |
| #defaultPolicies: defaultPolicies, |
| #alwaysRebroadcast: alwaysRebroadcast, |
| }, |
| ), |
| ), |
| ) as _i14.GraphQLClient); |
| |
| @override |
| _i14.ObservableQuery<TParsed> watchQuery<TParsed>(_i14.WatchQueryOptions<TParsed>? options) => (super.noSuchMethod( |
| Invocation.method( |
| #watchQuery, |
| [options], |
| ), |
| returnValue: _FakeObservableQuery_52<TParsed>( |
| this, |
| Invocation.method( |
| #watchQuery, |
| [options], |
| ), |
| ), |
| ) as _i14.ObservableQuery<TParsed>); |
| |
| @override |
| _i14.ObservableQuery<TParsed> watchMutation<TParsed>(_i14.WatchQueryOptions<TParsed>? options) => (super.noSuchMethod( |
| Invocation.method( |
| #watchMutation, |
| [options], |
| ), |
| returnValue: _FakeObservableQuery_52<TParsed>( |
| this, |
| Invocation.method( |
| #watchMutation, |
| [options], |
| ), |
| ), |
| ) as _i14.ObservableQuery<TParsed>); |
| |
| @override |
| _i20.Future<_i14.QueryResult<TParsed>> query<TParsed>(_i14.QueryOptions<TParsed>? options) => (super.noSuchMethod( |
| Invocation.method( |
| #query, |
| [options], |
| ), |
| returnValue: _i20.Future<_i14.QueryResult<TParsed>>.value(_FakeQueryResult_53<TParsed>( |
| this, |
| Invocation.method( |
| #query, |
| [options], |
| ), |
| )), |
| ) as _i20.Future<_i14.QueryResult<TParsed>>); |
| |
| @override |
| _i20.Future<_i14.QueryResult<TParsed>> mutate<TParsed>(_i14.MutationOptions<TParsed>? options) => (super.noSuchMethod( |
| Invocation.method( |
| #mutate, |
| [options], |
| ), |
| returnValue: _i20.Future<_i14.QueryResult<TParsed>>.value(_FakeQueryResult_53<TParsed>( |
| this, |
| Invocation.method( |
| #mutate, |
| [options], |
| ), |
| )), |
| ) as _i20.Future<_i14.QueryResult<TParsed>>); |
| |
| @override |
| _i20.Stream<_i14.QueryResult<TParsed>> subscribe<TParsed>(_i14.SubscriptionOptions<TParsed>? options) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #subscribe, |
| [options], |
| ), |
| returnValue: _i20.Stream<_i14.QueryResult<TParsed>>.empty(), |
| ) as _i20.Stream<_i14.QueryResult<TParsed>>); |
| |
| @override |
| _i20.Future<_i14.QueryResult<TParsed>> fetchMore<TParsed>( |
| _i14.FetchMoreOptions? fetchMoreOptions, { |
| required _i14.QueryOptions<TParsed>? originalOptions, |
| required _i14.QueryResult<TParsed>? previousResult, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #fetchMore, |
| [fetchMoreOptions], |
| { |
| #originalOptions: originalOptions, |
| #previousResult: previousResult, |
| }, |
| ), |
| returnValue: _i20.Future<_i14.QueryResult<TParsed>>.value(_FakeQueryResult_53<TParsed>( |
| this, |
| Invocation.method( |
| #fetchMore, |
| [fetchMoreOptions], |
| { |
| #originalOptions: originalOptions, |
| #previousResult: previousResult, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i14.QueryResult<TParsed>>); |
| |
| @override |
| Map<String, dynamic>? readQuery( |
| _i14.Request? request, { |
| bool? optimistic = true, |
| }) => |
| (super.noSuchMethod(Invocation.method( |
| #readQuery, |
| [request], |
| {#optimistic: optimistic}, |
| )) as Map<String, dynamic>?); |
| |
| @override |
| Map<String, dynamic>? readFragment( |
| _i14.FragmentRequest? fragmentRequest, { |
| bool? optimistic = true, |
| }) => |
| (super.noSuchMethod(Invocation.method( |
| #readFragment, |
| [fragmentRequest], |
| {#optimistic: optimistic}, |
| )) as Map<String, dynamic>?); |
| |
| @override |
| void writeQuery( |
| _i14.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( |
| _i14.FragmentRequest? fragmentRequest, { |
| bool? broadcast = true, |
| required Map<String, dynamic>? data, |
| }) => |
| super.noSuchMethod( |
| Invocation.method( |
| #writeFragment, |
| [fragmentRequest], |
| { |
| #broadcast: broadcast, |
| #data: data, |
| }, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i20.Future<List<_i14.QueryResult<Object?>?>>? resetStore({bool? refetchQueries = true}) => |
| (super.noSuchMethod(Invocation.method( |
| #resetStore, |
| [], |
| {#refetchQueries: refetchQueries}, |
| )) as _i20.Future<List<_i14.QueryResult<Object?>?>>?); |
| } |
| |
| /// A class which mocks [HttpClient]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockHttpClient extends _i1.Mock implements _i25.HttpClient { |
| MockHttpClient() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| Duration get idleTimeout => (super.noSuchMethod( |
| Invocation.getter(#idleTimeout), |
| returnValue: _FakeDuration_15( |
| this, |
| Invocation.getter(#idleTimeout), |
| ), |
| ) as Duration); |
| |
| @override |
| set idleTimeout(Duration? _idleTimeout) => super.noSuchMethod( |
| Invocation.setter( |
| #idleTimeout, |
| _idleTimeout, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set connectionTimeout(Duration? _connectionTimeout) => super.noSuchMethod( |
| Invocation.setter( |
| #connectionTimeout, |
| _connectionTimeout, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set maxConnectionsPerHost(int? _maxConnectionsPerHost) => super.noSuchMethod( |
| Invocation.setter( |
| #maxConnectionsPerHost, |
| _maxConnectionsPerHost, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| bool get autoUncompress => (super.noSuchMethod( |
| Invocation.getter(#autoUncompress), |
| returnValue: false, |
| ) as bool); |
| |
| @override |
| set autoUncompress(bool? _autoUncompress) => super.noSuchMethod( |
| Invocation.setter( |
| #autoUncompress, |
| _autoUncompress, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set userAgent(String? _userAgent) => super.noSuchMethod( |
| Invocation.setter( |
| #userAgent, |
| _userAgent, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set authenticate( |
| _i20.Future<bool> Function( |
| Uri, |
| String, |
| String?, |
| )? f) => |
| super.noSuchMethod( |
| Invocation.setter( |
| #authenticate, |
| f, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set connectionFactory( |
| _i20.Future<_i25.ConnectionTask<_i25.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( |
| _i20.Future<bool> Function( |
| String, |
| int, |
| String, |
| String?, |
| )? f) => |
| super.noSuchMethod( |
| Invocation.setter( |
| #authenticateProxy, |
| f, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| set badCertificateCallback( |
| bool Function( |
| _i25.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 |
| _i20.Future<_i25.HttpClientRequest> open( |
| String? method, |
| String? host, |
| int? port, |
| String? path, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #open, |
| [ |
| method, |
| host, |
| port, |
| path, |
| ], |
| ), |
| returnValue: _i20.Future<_i25.HttpClientRequest>.value(_FakeHttpClientRequest_54( |
| this, |
| Invocation.method( |
| #open, |
| [ |
| method, |
| host, |
| port, |
| path, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i25.HttpClientRequest>); |
| |
| @override |
| _i20.Future<_i25.HttpClientRequest> openUrl( |
| String? method, |
| Uri? url, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #openUrl, |
| [ |
| method, |
| url, |
| ], |
| ), |
| returnValue: _i20.Future<_i25.HttpClientRequest>.value(_FakeHttpClientRequest_54( |
| this, |
| Invocation.method( |
| #openUrl, |
| [ |
| method, |
| url, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i25.HttpClientRequest>); |
| |
| @override |
| _i20.Future<_i25.HttpClientRequest> get( |
| String? host, |
| int? port, |
| String? path, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #get, |
| [ |
| host, |
| port, |
| path, |
| ], |
| ), |
| returnValue: _i20.Future<_i25.HttpClientRequest>.value(_FakeHttpClientRequest_54( |
| this, |
| Invocation.method( |
| #get, |
| [ |
| host, |
| port, |
| path, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i25.HttpClientRequest>); |
| |
| @override |
| _i20.Future<_i25.HttpClientRequest> getUrl(Uri? url) => (super.noSuchMethod( |
| Invocation.method( |
| #getUrl, |
| [url], |
| ), |
| returnValue: _i20.Future<_i25.HttpClientRequest>.value(_FakeHttpClientRequest_54( |
| this, |
| Invocation.method( |
| #getUrl, |
| [url], |
| ), |
| )), |
| ) as _i20.Future<_i25.HttpClientRequest>); |
| |
| @override |
| _i20.Future<_i25.HttpClientRequest> post( |
| String? host, |
| int? port, |
| String? path, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #post, |
| [ |
| host, |
| port, |
| path, |
| ], |
| ), |
| returnValue: _i20.Future<_i25.HttpClientRequest>.value(_FakeHttpClientRequest_54( |
| this, |
| Invocation.method( |
| #post, |
| [ |
| host, |
| port, |
| path, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i25.HttpClientRequest>); |
| |
| @override |
| _i20.Future<_i25.HttpClientRequest> postUrl(Uri? url) => (super.noSuchMethod( |
| Invocation.method( |
| #postUrl, |
| [url], |
| ), |
| returnValue: _i20.Future<_i25.HttpClientRequest>.value(_FakeHttpClientRequest_54( |
| this, |
| Invocation.method( |
| #postUrl, |
| [url], |
| ), |
| )), |
| ) as _i20.Future<_i25.HttpClientRequest>); |
| |
| @override |
| _i20.Future<_i25.HttpClientRequest> put( |
| String? host, |
| int? port, |
| String? path, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #put, |
| [ |
| host, |
| port, |
| path, |
| ], |
| ), |
| returnValue: _i20.Future<_i25.HttpClientRequest>.value(_FakeHttpClientRequest_54( |
| this, |
| Invocation.method( |
| #put, |
| [ |
| host, |
| port, |
| path, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i25.HttpClientRequest>); |
| |
| @override |
| _i20.Future<_i25.HttpClientRequest> putUrl(Uri? url) => (super.noSuchMethod( |
| Invocation.method( |
| #putUrl, |
| [url], |
| ), |
| returnValue: _i20.Future<_i25.HttpClientRequest>.value(_FakeHttpClientRequest_54( |
| this, |
| Invocation.method( |
| #putUrl, |
| [url], |
| ), |
| )), |
| ) as _i20.Future<_i25.HttpClientRequest>); |
| |
| @override |
| _i20.Future<_i25.HttpClientRequest> delete( |
| String? host, |
| int? port, |
| String? path, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #delete, |
| [ |
| host, |
| port, |
| path, |
| ], |
| ), |
| returnValue: _i20.Future<_i25.HttpClientRequest>.value(_FakeHttpClientRequest_54( |
| this, |
| Invocation.method( |
| #delete, |
| [ |
| host, |
| port, |
| path, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i25.HttpClientRequest>); |
| |
| @override |
| _i20.Future<_i25.HttpClientRequest> deleteUrl(Uri? url) => (super.noSuchMethod( |
| Invocation.method( |
| #deleteUrl, |
| [url], |
| ), |
| returnValue: _i20.Future<_i25.HttpClientRequest>.value(_FakeHttpClientRequest_54( |
| this, |
| Invocation.method( |
| #deleteUrl, |
| [url], |
| ), |
| )), |
| ) as _i20.Future<_i25.HttpClientRequest>); |
| |
| @override |
| _i20.Future<_i25.HttpClientRequest> patch( |
| String? host, |
| int? port, |
| String? path, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #patch, |
| [ |
| host, |
| port, |
| path, |
| ], |
| ), |
| returnValue: _i20.Future<_i25.HttpClientRequest>.value(_FakeHttpClientRequest_54( |
| this, |
| Invocation.method( |
| #patch, |
| [ |
| host, |
| port, |
| path, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i25.HttpClientRequest>); |
| |
| @override |
| _i20.Future<_i25.HttpClientRequest> patchUrl(Uri? url) => (super.noSuchMethod( |
| Invocation.method( |
| #patchUrl, |
| [url], |
| ), |
| returnValue: _i20.Future<_i25.HttpClientRequest>.value(_FakeHttpClientRequest_54( |
| this, |
| Invocation.method( |
| #patchUrl, |
| [url], |
| ), |
| )), |
| ) as _i20.Future<_i25.HttpClientRequest>); |
| |
| @override |
| _i20.Future<_i25.HttpClientRequest> head( |
| String? host, |
| int? port, |
| String? path, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #head, |
| [ |
| host, |
| port, |
| path, |
| ], |
| ), |
| returnValue: _i20.Future<_i25.HttpClientRequest>.value(_FakeHttpClientRequest_54( |
| this, |
| Invocation.method( |
| #head, |
| [ |
| host, |
| port, |
| path, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i25.HttpClientRequest>); |
| |
| @override |
| _i20.Future<_i25.HttpClientRequest> headUrl(Uri? url) => (super.noSuchMethod( |
| Invocation.method( |
| #headUrl, |
| [url], |
| ), |
| returnValue: _i20.Future<_i25.HttpClientRequest>.value(_FakeHttpClientRequest_54( |
| this, |
| Invocation.method( |
| #headUrl, |
| [url], |
| ), |
| )), |
| ) as _i20.Future<_i25.HttpClientRequest>); |
| |
| @override |
| void addCredentials( |
| Uri? url, |
| String? realm, |
| _i25.HttpClientCredentials? credentials, |
| ) => |
| super.noSuchMethod( |
| Invocation.method( |
| #addCredentials, |
| [ |
| url, |
| realm, |
| credentials, |
| ], |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| void addProxyCredentials( |
| String? host, |
| int? port, |
| String? realm, |
| _i25.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 _i25.HttpClientRequest { |
| MockHttpClientRequest() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| bool get persistentConnection => (super.noSuchMethod( |
| Invocation.getter(#persistentConnection), |
| returnValue: false, |
| ) as bool); |
| |
| @override |
| set persistentConnection(bool? _persistentConnection) => super.noSuchMethod( |
| Invocation.setter( |
| #persistentConnection, |
| _persistentConnection, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| bool get followRedirects => (super.noSuchMethod( |
| Invocation.getter(#followRedirects), |
| returnValue: false, |
| ) as bool); |
| |
| @override |
| set followRedirects(bool? _followRedirects) => super.noSuchMethod( |
| Invocation.setter( |
| #followRedirects, |
| _followRedirects, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| int get maxRedirects => (super.noSuchMethod( |
| Invocation.getter(#maxRedirects), |
| returnValue: 0, |
| ) as int); |
| |
| @override |
| set maxRedirects(int? _maxRedirects) => super.noSuchMethod( |
| Invocation.setter( |
| #maxRedirects, |
| _maxRedirects, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| int get contentLength => (super.noSuchMethod( |
| Invocation.getter(#contentLength), |
| returnValue: 0, |
| ) as int); |
| |
| @override |
| set contentLength(int? _contentLength) => super.noSuchMethod( |
| Invocation.setter( |
| #contentLength, |
| _contentLength, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| bool get bufferOutput => (super.noSuchMethod( |
| Invocation.getter(#bufferOutput), |
| returnValue: false, |
| ) as bool); |
| |
| @override |
| set bufferOutput(bool? _bufferOutput) => super.noSuchMethod( |
| Invocation.setter( |
| #bufferOutput, |
| _bufferOutput, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| String get method => (super.noSuchMethod( |
| Invocation.getter(#method), |
| returnValue: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#method), |
| ), |
| ) as String); |
| |
| @override |
| Uri get uri => (super.noSuchMethod( |
| Invocation.getter(#uri), |
| returnValue: _FakeUri_55( |
| this, |
| Invocation.getter(#uri), |
| ), |
| ) as Uri); |
| |
| @override |
| _i25.HttpHeaders get headers => (super.noSuchMethod( |
| Invocation.getter(#headers), |
| returnValue: _FakeHttpHeaders_56( |
| this, |
| Invocation.getter(#headers), |
| ), |
| ) as _i25.HttpHeaders); |
| |
| @override |
| List<_i25.Cookie> get cookies => (super.noSuchMethod( |
| Invocation.getter(#cookies), |
| returnValue: <_i25.Cookie>[], |
| ) as List<_i25.Cookie>); |
| |
| @override |
| _i20.Future<_i25.HttpClientResponse> get done => (super.noSuchMethod( |
| Invocation.getter(#done), |
| returnValue: _i20.Future<_i25.HttpClientResponse>.value(_FakeHttpClientResponse_57( |
| this, |
| Invocation.getter(#done), |
| )), |
| ) as _i20.Future<_i25.HttpClientResponse>); |
| |
| @override |
| _i26.Encoding get encoding => (super.noSuchMethod( |
| Invocation.getter(#encoding), |
| returnValue: _FakeEncoding_58( |
| this, |
| Invocation.getter(#encoding), |
| ), |
| ) as _i26.Encoding); |
| |
| @override |
| set encoding(_i26.Encoding? _encoding) => super.noSuchMethod( |
| Invocation.setter( |
| #encoding, |
| _encoding, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i20.Future<_i25.HttpClientResponse> close() => (super.noSuchMethod( |
| Invocation.method( |
| #close, |
| [], |
| ), |
| returnValue: _i20.Future<_i25.HttpClientResponse>.value(_FakeHttpClientResponse_57( |
| this, |
| Invocation.method( |
| #close, |
| [], |
| ), |
| )), |
| ) as _i20.Future<_i25.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 = r'', |
| ]) => |
| super.noSuchMethod( |
| Invocation.method( |
| #writeAll, |
| [ |
| objects, |
| separator, |
| ], |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| void writeln([Object? object = r'']) => 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 |
| _i20.Future<dynamic> addStream(_i20.Stream<List<int>>? stream) => (super.noSuchMethod( |
| Invocation.method( |
| #addStream, |
| [stream], |
| ), |
| returnValue: _i20.Future<dynamic>.value(), |
| ) as _i20.Future<dynamic>); |
| |
| @override |
| _i20.Future<dynamic> flush() => (super.noSuchMethod( |
| Invocation.method( |
| #flush, |
| [], |
| ), |
| returnValue: _i20.Future<dynamic>.value(), |
| ) as _i20.Future<dynamic>); |
| } |
| |
| /// A class which mocks [HttpClientResponse]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockHttpClientResponse extends _i1.Mock implements _i25.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: _i32.dummyValue<String>( |
| this, |
| Invocation.getter(#reasonPhrase), |
| ), |
| ) as String); |
| |
| @override |
| int get contentLength => (super.noSuchMethod( |
| Invocation.getter(#contentLength), |
| returnValue: 0, |
| ) as int); |
| |
| @override |
| _i25.HttpClientResponseCompressionState get compressionState => (super.noSuchMethod( |
| Invocation.getter(#compressionState), |
| returnValue: _i25.HttpClientResponseCompressionState.notCompressed, |
| ) as _i25.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<_i25.RedirectInfo> get redirects => (super.noSuchMethod( |
| Invocation.getter(#redirects), |
| returnValue: <_i25.RedirectInfo>[], |
| ) as List<_i25.RedirectInfo>); |
| |
| @override |
| _i25.HttpHeaders get headers => (super.noSuchMethod( |
| Invocation.getter(#headers), |
| returnValue: _FakeHttpHeaders_56( |
| this, |
| Invocation.getter(#headers), |
| ), |
| ) as _i25.HttpHeaders); |
| |
| @override |
| List<_i25.Cookie> get cookies => (super.noSuchMethod( |
| Invocation.getter(#cookies), |
| returnValue: <_i25.Cookie>[], |
| ) as List<_i25.Cookie>); |
| |
| @override |
| bool get isBroadcast => (super.noSuchMethod( |
| Invocation.getter(#isBroadcast), |
| returnValue: false, |
| ) as bool); |
| |
| @override |
| _i20.Future<int> get length => (super.noSuchMethod( |
| Invocation.getter(#length), |
| returnValue: _i20.Future<int>.value(0), |
| ) as _i20.Future<int>); |
| |
| @override |
| _i20.Future<bool> get isEmpty => (super.noSuchMethod( |
| Invocation.getter(#isEmpty), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Future<List<int>> get first => (super.noSuchMethod( |
| Invocation.getter(#first), |
| returnValue: _i20.Future<List<int>>.value(<int>[]), |
| ) as _i20.Future<List<int>>); |
| |
| @override |
| _i20.Future<List<int>> get last => (super.noSuchMethod( |
| Invocation.getter(#last), |
| returnValue: _i20.Future<List<int>>.value(<int>[]), |
| ) as _i20.Future<List<int>>); |
| |
| @override |
| _i20.Future<List<int>> get single => (super.noSuchMethod( |
| Invocation.getter(#single), |
| returnValue: _i20.Future<List<int>>.value(<int>[]), |
| ) as _i20.Future<List<int>>); |
| |
| @override |
| _i20.Future<_i25.HttpClientResponse> redirect([ |
| String? method, |
| Uri? url, |
| bool? followLoops, |
| ]) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #redirect, |
| [ |
| method, |
| url, |
| followLoops, |
| ], |
| ), |
| returnValue: _i20.Future<_i25.HttpClientResponse>.value(_FakeHttpClientResponse_57( |
| this, |
| Invocation.method( |
| #redirect, |
| [ |
| method, |
| url, |
| followLoops, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i25.HttpClientResponse>); |
| |
| @override |
| _i20.Future<_i25.Socket> detachSocket() => (super.noSuchMethod( |
| Invocation.method( |
| #detachSocket, |
| [], |
| ), |
| returnValue: _i20.Future<_i25.Socket>.value(_FakeSocket_59( |
| this, |
| Invocation.method( |
| #detachSocket, |
| [], |
| ), |
| )), |
| ) as _i20.Future<_i25.Socket>); |
| |
| @override |
| _i20.Stream<List<int>> asBroadcastStream({ |
| void Function(_i20.StreamSubscription<List<int>>)? onListen, |
| void Function(_i20.StreamSubscription<List<int>>)? onCancel, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #asBroadcastStream, |
| [], |
| { |
| #onListen: onListen, |
| #onCancel: onCancel, |
| }, |
| ), |
| returnValue: _i20.Stream<List<int>>.empty(), |
| ) as _i20.Stream<List<int>>); |
| |
| @override |
| _i20.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_60<List<int>>( |
| this, |
| Invocation.method( |
| #listen, |
| [onData], |
| { |
| #onError: onError, |
| #onDone: onDone, |
| #cancelOnError: cancelOnError, |
| }, |
| ), |
| ), |
| ) as _i20.StreamSubscription<List<int>>); |
| |
| @override |
| _i20.Stream<List<int>> where(bool Function(List<int>)? test) => (super.noSuchMethod( |
| Invocation.method( |
| #where, |
| [test], |
| ), |
| returnValue: _i20.Stream<List<int>>.empty(), |
| ) as _i20.Stream<List<int>>); |
| |
| @override |
| _i20.Stream<S> map<S>(S Function(List<int>)? convert) => (super.noSuchMethod( |
| Invocation.method( |
| #map, |
| [convert], |
| ), |
| returnValue: _i20.Stream<S>.empty(), |
| ) as _i20.Stream<S>); |
| |
| @override |
| _i20.Stream<E> asyncMap<E>(_i20.FutureOr<E> Function(List<int>)? convert) => (super.noSuchMethod( |
| Invocation.method( |
| #asyncMap, |
| [convert], |
| ), |
| returnValue: _i20.Stream<E>.empty(), |
| ) as _i20.Stream<E>); |
| |
| @override |
| _i20.Stream<E> asyncExpand<E>(_i20.Stream<E>? Function(List<int>)? convert) => (super.noSuchMethod( |
| Invocation.method( |
| #asyncExpand, |
| [convert], |
| ), |
| returnValue: _i20.Stream<E>.empty(), |
| ) as _i20.Stream<E>); |
| |
| @override |
| _i20.Stream<List<int>> handleError( |
| Function? onError, { |
| bool Function(dynamic)? test, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #handleError, |
| [onError], |
| {#test: test}, |
| ), |
| returnValue: _i20.Stream<List<int>>.empty(), |
| ) as _i20.Stream<List<int>>); |
| |
| @override |
| _i20.Stream<S> expand<S>(Iterable<S> Function(List<int>)? convert) => (super.noSuchMethod( |
| Invocation.method( |
| #expand, |
| [convert], |
| ), |
| returnValue: _i20.Stream<S>.empty(), |
| ) as _i20.Stream<S>); |
| |
| @override |
| _i20.Future<dynamic> pipe(_i20.StreamConsumer<List<int>>? streamConsumer) => (super.noSuchMethod( |
| Invocation.method( |
| #pipe, |
| [streamConsumer], |
| ), |
| returnValue: _i20.Future<dynamic>.value(), |
| ) as _i20.Future<dynamic>); |
| |
| @override |
| _i20.Stream<S> transform<S>(_i20.StreamTransformer<List<int>, S>? streamTransformer) => (super.noSuchMethod( |
| Invocation.method( |
| #transform, |
| [streamTransformer], |
| ), |
| returnValue: _i20.Stream<S>.empty(), |
| ) as _i20.Stream<S>); |
| |
| @override |
| _i20.Future<List<int>> reduce( |
| List<int> Function( |
| List<int>, |
| List<int>, |
| )? combine) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #reduce, |
| [combine], |
| ), |
| returnValue: _i20.Future<List<int>>.value(<int>[]), |
| ) as _i20.Future<List<int>>); |
| |
| @override |
| _i20.Future<S> fold<S>( |
| S? initialValue, |
| S Function( |
| S, |
| List<int>, |
| )? combine, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #fold, |
| [ |
| initialValue, |
| combine, |
| ], |
| ), |
| returnValue: _i32.ifNotNull( |
| _i32.dummyValueOrNull<S>( |
| this, |
| Invocation.method( |
| #fold, |
| [ |
| initialValue, |
| combine, |
| ], |
| ), |
| ), |
| (S v) => _i20.Future<S>.value(v), |
| ) ?? |
| _FakeFuture_23<S>( |
| this, |
| Invocation.method( |
| #fold, |
| [ |
| initialValue, |
| combine, |
| ], |
| ), |
| ), |
| ) as _i20.Future<S>); |
| |
| @override |
| _i20.Future<String> join([String? separator = r'']) => (super.noSuchMethod( |
| Invocation.method( |
| #join, |
| [separator], |
| ), |
| returnValue: _i20.Future<String>.value(_i32.dummyValue<String>( |
| this, |
| Invocation.method( |
| #join, |
| [separator], |
| ), |
| )), |
| ) as _i20.Future<String>); |
| |
| @override |
| _i20.Future<bool> contains(Object? needle) => (super.noSuchMethod( |
| Invocation.method( |
| #contains, |
| [needle], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Future<void> forEach(void Function(List<int>)? action) => (super.noSuchMethod( |
| Invocation.method( |
| #forEach, |
| [action], |
| ), |
| returnValue: _i20.Future<void>.value(), |
| returnValueForMissingStub: _i20.Future<void>.value(), |
| ) as _i20.Future<void>); |
| |
| @override |
| _i20.Future<bool> every(bool Function(List<int>)? test) => (super.noSuchMethod( |
| Invocation.method( |
| #every, |
| [test], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Future<bool> any(bool Function(List<int>)? test) => (super.noSuchMethod( |
| Invocation.method( |
| #any, |
| [test], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Stream<R> cast<R>() => (super.noSuchMethod( |
| Invocation.method( |
| #cast, |
| [], |
| ), |
| returnValue: _i20.Stream<R>.empty(), |
| ) as _i20.Stream<R>); |
| |
| @override |
| _i20.Future<List<List<int>>> toList() => (super.noSuchMethod( |
| Invocation.method( |
| #toList, |
| [], |
| ), |
| returnValue: _i20.Future<List<List<int>>>.value(<List<int>>[]), |
| ) as _i20.Future<List<List<int>>>); |
| |
| @override |
| _i20.Future<Set<List<int>>> toSet() => (super.noSuchMethod( |
| Invocation.method( |
| #toSet, |
| [], |
| ), |
| returnValue: _i20.Future<Set<List<int>>>.value(<List<int>>{}), |
| ) as _i20.Future<Set<List<int>>>); |
| |
| @override |
| _i20.Future<E> drain<E>([E? futureValue]) => (super.noSuchMethod( |
| Invocation.method( |
| #drain, |
| [futureValue], |
| ), |
| returnValue: _i32.ifNotNull( |
| _i32.dummyValueOrNull<E>( |
| this, |
| Invocation.method( |
| #drain, |
| [futureValue], |
| ), |
| ), |
| (E v) => _i20.Future<E>.value(v), |
| ) ?? |
| _FakeFuture_23<E>( |
| this, |
| Invocation.method( |
| #drain, |
| [futureValue], |
| ), |
| ), |
| ) as _i20.Future<E>); |
| |
| @override |
| _i20.Stream<List<int>> take(int? count) => (super.noSuchMethod( |
| Invocation.method( |
| #take, |
| [count], |
| ), |
| returnValue: _i20.Stream<List<int>>.empty(), |
| ) as _i20.Stream<List<int>>); |
| |
| @override |
| _i20.Stream<List<int>> takeWhile(bool Function(List<int>)? test) => (super.noSuchMethod( |
| Invocation.method( |
| #takeWhile, |
| [test], |
| ), |
| returnValue: _i20.Stream<List<int>>.empty(), |
| ) as _i20.Stream<List<int>>); |
| |
| @override |
| _i20.Stream<List<int>> skip(int? count) => (super.noSuchMethod( |
| Invocation.method( |
| #skip, |
| [count], |
| ), |
| returnValue: _i20.Stream<List<int>>.empty(), |
| ) as _i20.Stream<List<int>>); |
| |
| @override |
| _i20.Stream<List<int>> skipWhile(bool Function(List<int>)? test) => (super.noSuchMethod( |
| Invocation.method( |
| #skipWhile, |
| [test], |
| ), |
| returnValue: _i20.Stream<List<int>>.empty(), |
| ) as _i20.Stream<List<int>>); |
| |
| @override |
| _i20.Stream<List<int>> distinct( |
| [bool Function( |
| List<int>, |
| List<int>, |
| )? equals]) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #distinct, |
| [equals], |
| ), |
| returnValue: _i20.Stream<List<int>>.empty(), |
| ) as _i20.Stream<List<int>>); |
| |
| @override |
| _i20.Future<List<int>> firstWhere( |
| bool Function(List<int>)? test, { |
| List<int> Function()? orElse, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #firstWhere, |
| [test], |
| {#orElse: orElse}, |
| ), |
| returnValue: _i20.Future<List<int>>.value(<int>[]), |
| ) as _i20.Future<List<int>>); |
| |
| @override |
| _i20.Future<List<int>> lastWhere( |
| bool Function(List<int>)? test, { |
| List<int> Function()? orElse, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #lastWhere, |
| [test], |
| {#orElse: orElse}, |
| ), |
| returnValue: _i20.Future<List<int>>.value(<int>[]), |
| ) as _i20.Future<List<int>>); |
| |
| @override |
| _i20.Future<List<int>> singleWhere( |
| bool Function(List<int>)? test, { |
| List<int> Function()? orElse, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #singleWhere, |
| [test], |
| {#orElse: orElse}, |
| ), |
| returnValue: _i20.Future<List<int>>.value(<int>[]), |
| ) as _i20.Future<List<int>>); |
| |
| @override |
| _i20.Future<List<int>> elementAt(int? index) => (super.noSuchMethod( |
| Invocation.method( |
| #elementAt, |
| [index], |
| ), |
| returnValue: _i20.Future<List<int>>.value(<int>[]), |
| ) as _i20.Future<List<int>>); |
| |
| @override |
| _i20.Stream<List<int>> timeout( |
| Duration? timeLimit, { |
| void Function(_i20.EventSink<List<int>>)? onTimeout, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #timeout, |
| [timeLimit], |
| {#onTimeout: onTimeout}, |
| ), |
| returnValue: _i20.Stream<List<int>>.empty(), |
| ) as _i20.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 _i15.LuciBuildService { |
| MockLuciBuildService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i15.FusionTester get fusionTester => (super.noSuchMethod( |
| Invocation.getter(#fusionTester), |
| returnValue: _FakeFusionTester_61( |
| this, |
| Invocation.getter(#fusionTester), |
| ), |
| ) as _i15.FusionTester); |
| |
| @override |
| _i15.BuildBucketClient get buildBucketClient => (super.noSuchMethod( |
| Invocation.getter(#buildBucketClient), |
| returnValue: _FakeBuildBucketClient_62( |
| this, |
| Invocation.getter(#buildBucketClient), |
| ), |
| ) as _i15.BuildBucketClient); |
| |
| @override |
| set buildBucketClient(_i15.BuildBucketClient? _buildBucketClient) => super.noSuchMethod( |
| Invocation.setter( |
| #buildBucketClient, |
| _buildBucketClient, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i15.CacheService get cache => (super.noSuchMethod( |
| Invocation.getter(#cache), |
| returnValue: _FakeCacheService_63( |
| this, |
| Invocation.getter(#cache), |
| ), |
| ) as _i15.CacheService); |
| |
| @override |
| _i2.Config get config => (super.noSuchMethod( |
| Invocation.getter(#config), |
| returnValue: _FakeConfig_0( |
| this, |
| Invocation.getter(#config), |
| ), |
| ) as _i2.Config); |
| |
| @override |
| set config(_i2.Config? _config) => super.noSuchMethod( |
| Invocation.setter( |
| #config, |
| _config, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i24.GithubChecksUtil get githubChecksUtil => (super.noSuchMethod( |
| Invocation.getter(#githubChecksUtil), |
| returnValue: _FakeGithubChecksUtil_36( |
| this, |
| Invocation.getter(#githubChecksUtil), |
| ), |
| ) as _i24.GithubChecksUtil); |
| |
| @override |
| set githubChecksUtil(_i24.GithubChecksUtil? _githubChecksUtil) => super.noSuchMethod( |
| Invocation.setter( |
| #githubChecksUtil, |
| _githubChecksUtil, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i6.GerritService get gerritService => (super.noSuchMethod( |
| Invocation.getter(#gerritService), |
| returnValue: _FakeGerritService_5( |
| this, |
| Invocation.getter(#gerritService), |
| ), |
| ) as _i6.GerritService); |
| |
| @override |
| set gerritService(_i6.GerritService? _gerritService) => super.noSuchMethod( |
| Invocation.setter( |
| #gerritService, |
| _gerritService, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| _i15.PubSub get pubsub => (super.noSuchMethod( |
| Invocation.getter(#pubsub), |
| returnValue: _FakePubSub_64( |
| this, |
| Invocation.getter(#pubsub), |
| ), |
| ) as _i15.PubSub); |
| |
| @override |
| _i20.Future<_i21.Document> Function({ |
| required List<_i13.CheckRun> checks, |
| required _i15.FirestoreService firestoreService, |
| required _i13.PullRequest pullRequest, |
| }) get initializePrCheckRuns => (super.noSuchMethod( |
| Invocation.getter(#initializePrCheckRuns), |
| returnValue: ({ |
| required List<_i13.CheckRun> checks, |
| required _i15.FirestoreService firestoreService, |
| required _i13.PullRequest pullRequest, |
| }) => |
| _i20.Future<_i21.Document>.value(_FakeDocument_25( |
| this, |
| Invocation.getter(#initializePrCheckRuns), |
| )), |
| ) as _i20.Future<_i21.Document> Function({ |
| required List<_i13.CheckRun> checks, |
| required _i15.FirestoreService firestoreService, |
| required _i13.PullRequest pullRequest, |
| })); |
| |
| @override |
| _i20.Future<_i13.PullRequest> Function( |
| _i15.FirestoreService, |
| int, |
| String, |
| ) get findPullRequestFor => (super.noSuchMethod( |
| Invocation.getter(#findPullRequestFor), |
| returnValue: ( |
| _i15.FirestoreService firestoreService, |
| int checkRunId, |
| String checkRunName, |
| ) => |
| _i20.Future<_i13.PullRequest>.value(_FakePullRequest_41( |
| this, |
| Invocation.getter(#findPullRequestFor), |
| )), |
| ) as _i20.Future<_i13.PullRequest> Function( |
| _i15.FirestoreService, |
| int, |
| String, |
| )); |
| |
| @override |
| _i20.Future<List<List<_i8.BatchRequest_Request>>> shard({ |
| required List<_i8.BatchRequest_Request>? requests, |
| required int? maxShardSize, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #shard, |
| [], |
| { |
| #requests: requests, |
| #maxShardSize: maxShardSize, |
| }, |
| ), |
| returnValue: _i20.Future<List<List<_i8.BatchRequest_Request>>>.value(<List<_i8.BatchRequest_Request>>[]), |
| ) as _i20.Future<List<List<_i8.BatchRequest_Request>>>); |
| |
| @override |
| _i20.Future<Iterable<_i8.Build>> getTryBuilds({ |
| required String? sha, |
| String? builderName, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getTryBuilds, |
| [], |
| { |
| #sha: sha, |
| #builderName: builderName, |
| }, |
| ), |
| returnValue: _i20.Future<Iterable<_i8.Build>>.value(<_i8.Build>[]), |
| ) as _i20.Future<Iterable<_i8.Build>>); |
| |
| @override |
| _i20.Future<Iterable<_i8.Build>> getTryBuildsByPullRequest({required _i13.PullRequest? pullRequest}) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getTryBuildsByPullRequest, |
| [], |
| {#pullRequest: pullRequest}, |
| ), |
| returnValue: _i20.Future<Iterable<_i8.Build>>.value(<_i8.Build>[]), |
| ) as _i20.Future<Iterable<_i8.Build>>); |
| |
| @override |
| _i20.Future<Iterable<_i8.Build>> getProdBuilds({ |
| String? builderName, |
| String? sha, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getProdBuilds, |
| [], |
| { |
| #builderName: builderName, |
| #sha: sha, |
| }, |
| ), |
| returnValue: _i20.Future<Iterable<_i8.Build>>.value(<_i8.Build>[]), |
| ) as _i20.Future<Iterable<_i8.Build>>); |
| |
| @override |
| _i20.Future<Iterable<_i8.Build>> getBuilds({ |
| required String? builderName, |
| required String? bucket, |
| required List<_i8.StringPair>? tags, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getBuilds, |
| [], |
| { |
| #builderName: builderName, |
| #bucket: bucket, |
| #tags: tags, |
| }, |
| ), |
| returnValue: _i20.Future<Iterable<_i8.Build>>.value(<_i8.Build>[]), |
| ) as _i20.Future<Iterable<_i8.Build>>); |
| |
| @override |
| _i20.Future<List<_i43.Target>> scheduleTryBuilds({ |
| required List<_i43.Target>? targets, |
| required _i13.PullRequest? pullRequest, |
| _i34.CheckSuiteEvent? checkSuiteEvent, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #scheduleTryBuilds, |
| [], |
| { |
| #targets: targets, |
| #pullRequest: pullRequest, |
| #checkSuiteEvent: checkSuiteEvent, |
| }, |
| ), |
| returnValue: _i20.Future<List<_i43.Target>>.value(<_i43.Target>[]), |
| ) as _i20.Future<List<_i43.Target>>); |
| |
| @override |
| _i20.Future<void> cancelBuilds({ |
| required _i13.PullRequest? pullRequest, |
| required String? reason, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #cancelBuilds, |
| [], |
| { |
| #pullRequest: pullRequest, |
| #reason: reason, |
| }, |
| ), |
| returnValue: _i20.Future<void>.value(), |
| returnValueForMissingStub: _i20.Future<void>.value(), |
| ) as _i20.Future<void>); |
| |
| @override |
| _i20.Future<void> cancelBuildsBySha({ |
| required String? sha, |
| required String? reason, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #cancelBuildsBySha, |
| [], |
| { |
| #sha: sha, |
| #reason: reason, |
| }, |
| ), |
| returnValue: _i20.Future<void>.value(), |
| returnValueForMissingStub: _i20.Future<void>.value(), |
| ) as _i20.Future<void>); |
| |
| @override |
| _i20.Future<List<_i8.Build?>> failedBuilds({ |
| required _i13.PullRequest? pullRequest, |
| required List<_i43.Target>? targets, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #failedBuilds, |
| [], |
| { |
| #pullRequest: pullRequest, |
| #targets: targets, |
| }, |
| ), |
| returnValue: _i20.Future<List<_i8.Build?>>.value(<_i8.Build?>[]), |
| ) as _i20.Future<List<_i8.Build?>>); |
| |
| @override |
| _i20.Future<_i8.Build> rescheduleBuild({ |
| required String? builderName, |
| required _i8.Build? build, |
| required int? rescheduleAttempt, |
| required Map<String, dynamic>? userDataMap, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #rescheduleBuild, |
| [], |
| { |
| #builderName: builderName, |
| #build: build, |
| #rescheduleAttempt: rescheduleAttempt, |
| #userDataMap: userDataMap, |
| }, |
| ), |
| returnValue: _i20.Future<_i8.Build>.value(_FakeBuild_7( |
| this, |
| Invocation.method( |
| #rescheduleBuild, |
| [], |
| { |
| #builderName: builderName, |
| #build: build, |
| #rescheduleAttempt: rescheduleAttempt, |
| #userDataMap: userDataMap, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i8.Build>); |
| |
| @override |
| _i20.Future<_i8.Build> reschedulePresubmitBuildUsingCheckRunEvent({required _i44.CheckRunEvent? checkRunEvent}) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #reschedulePresubmitBuildUsingCheckRunEvent, |
| [], |
| {#checkRunEvent: checkRunEvent}, |
| ), |
| returnValue: _i20.Future<_i8.Build>.value(_FakeBuild_7( |
| this, |
| Invocation.method( |
| #reschedulePresubmitBuildUsingCheckRunEvent, |
| [], |
| {#checkRunEvent: checkRunEvent}, |
| ), |
| )), |
| ) as _i20.Future<_i8.Build>); |
| |
| @override |
| List<String>? extractPrefixedLabels({ |
| List<_i13.IssueLabel>? issueLabels, |
| required String? prefix, |
| }) => |
| (super.noSuchMethod(Invocation.method( |
| #extractPrefixedLabels, |
| [], |
| { |
| #issueLabels: issueLabels, |
| #prefix: prefix, |
| }, |
| )) as List<String>?); |
| |
| @override |
| _i20.Future<void> reschedulePostsubmitBuildUsingCheckRunEvent( |
| _i44.CheckRunEvent? checkRunEvent, { |
| required _i36.Commit? commit, |
| required _i37.Task? task, |
| required _i43.Target? target, |
| required _i42.Task? taskDocument, |
| required _i9.DatastoreService? datastore, |
| required _i15.FirestoreService? firestoreService, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #reschedulePostsubmitBuildUsingCheckRunEvent, |
| [checkRunEvent], |
| { |
| #commit: commit, |
| #task: task, |
| #target: target, |
| #taskDocument: taskDocument, |
| #datastore: datastore, |
| #firestoreService: firestoreService, |
| }, |
| ), |
| returnValue: _i20.Future<void>.value(), |
| returnValueForMissingStub: _i20.Future<void>.value(), |
| ) as _i20.Future<void>); |
| |
| @override |
| _i20.Future<_i8.Build> getBuildById( |
| _i45.Int64? id, { |
| _i8.BuildMask? buildMask, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getBuildById, |
| [id], |
| {#buildMask: buildMask}, |
| ), |
| returnValue: _i20.Future<_i8.Build>.value(_FakeBuild_7( |
| this, |
| Invocation.method( |
| #getBuildById, |
| [id], |
| {#buildMask: buildMask}, |
| ), |
| )), |
| ) as _i20.Future<_i8.Build>); |
| |
| @override |
| _i20.Future<Set<String>> getAvailableBuilderSet({ |
| String? project = r'flutter', |
| String? bucket = r'prod', |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getAvailableBuilderSet, |
| [], |
| { |
| #project: project, |
| #bucket: bucket, |
| }, |
| ), |
| returnValue: _i20.Future<Set<String>>.value(<String>{}), |
| ) as _i20.Future<Set<String>>); |
| |
| @override |
| _i20.Future<List<_i15.Tuple<_i43.Target, _i37.Task, int>>> schedulePostsubmitBuilds({ |
| required _i36.Commit? commit, |
| required List<_i15.Tuple<_i43.Target, _i37.Task, int>>? toBeScheduled, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #schedulePostsubmitBuilds, |
| [], |
| { |
| #commit: commit, |
| #toBeScheduled: toBeScheduled, |
| }, |
| ), |
| returnValue: _i20.Future<List<_i15.Tuple<_i43.Target, _i37.Task, int>>>.value( |
| <_i15.Tuple<_i43.Target, _i37.Task, int>>[]), |
| ) as _i20.Future<List<_i15.Tuple<_i43.Target, _i37.Task, int>>>); |
| |
| @override |
| _i20.Future<void> scheduleMergeGroupBuilds({ |
| required _i36.Commit? commit, |
| required List<_i43.Target>? targets, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #scheduleMergeGroupBuilds, |
| [], |
| { |
| #commit: commit, |
| #targets: targets, |
| }, |
| ), |
| returnValue: _i20.Future<void>.value(), |
| returnValueForMissingStub: _i20.Future<void>.value(), |
| ) as _i20.Future<void>); |
| |
| @override |
| _i20.Future<void> createPostsubmitCheckRun( |
| _i36.Commit? commit, |
| _i43.Target? target, |
| Map<String, dynamic>? rawUserData, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #createPostsubmitCheckRun, |
| [ |
| commit, |
| target, |
| rawUserData, |
| ], |
| ), |
| returnValue: _i20.Future<void>.value(), |
| returnValueForMissingStub: _i20.Future<void>.value(), |
| ) as _i20.Future<void>); |
| |
| @override |
| _i20.Future<bool> checkRerunBuilder({ |
| required _i36.Commit? commit, |
| required _i43.Target? target, |
| required _i37.Task? task, |
| required _i9.DatastoreService? datastore, |
| required _i42.Task? taskDocument, |
| required _i15.FirestoreService? firestoreService, |
| List<_i8.StringPair>? tags, |
| bool? ignoreChecks = false, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #checkRerunBuilder, |
| [], |
| { |
| #commit: commit, |
| #target: target, |
| #task: task, |
| #datastore: datastore, |
| #taskDocument: taskDocument, |
| #firestoreService: firestoreService, |
| #tags: tags, |
| #ignoreChecks: ignoreChecks, |
| }, |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| } |
| |
| /// A class which mocks [ProcessManager]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockProcessManager extends _i1.Mock implements _i46.ProcessManager { |
| MockProcessManager() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i20.Future<_i25.Process> start( |
| List<Object>? command, { |
| String? workingDirectory, |
| Map<String, String>? environment, |
| bool? includeParentEnvironment = true, |
| bool? runInShell = false, |
| _i25.ProcessStartMode? mode = _i25.ProcessStartMode.normal, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #start, |
| [command], |
| { |
| #workingDirectory: workingDirectory, |
| #environment: environment, |
| #includeParentEnvironment: includeParentEnvironment, |
| #runInShell: runInShell, |
| #mode: mode, |
| }, |
| ), |
| returnValue: _i20.Future<_i25.Process>.value(_FakeProcess_65( |
| this, |
| Invocation.method( |
| #start, |
| [command], |
| { |
| #workingDirectory: workingDirectory, |
| #environment: environment, |
| #includeParentEnvironment: includeParentEnvironment, |
| #runInShell: runInShell, |
| #mode: mode, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i25.Process>); |
| |
| @override |
| _i20.Future<_i25.ProcessResult> run( |
| List<Object>? command, { |
| String? workingDirectory, |
| Map<String, String>? environment, |
| bool? includeParentEnvironment = true, |
| bool? runInShell = false, |
| _i26.Encoding? stdoutEncoding = const _i25.SystemEncoding(), |
| _i26.Encoding? stderrEncoding = const _i25.SystemEncoding(), |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #run, |
| [command], |
| { |
| #workingDirectory: workingDirectory, |
| #environment: environment, |
| #includeParentEnvironment: includeParentEnvironment, |
| #runInShell: runInShell, |
| #stdoutEncoding: stdoutEncoding, |
| #stderrEncoding: stderrEncoding, |
| }, |
| ), |
| returnValue: _i20.Future<_i25.ProcessResult>.value(_i32.dummyValue<_i25.ProcessResult>( |
| this, |
| Invocation.method( |
| #run, |
| [command], |
| { |
| #workingDirectory: workingDirectory, |
| #environment: environment, |
| #includeParentEnvironment: includeParentEnvironment, |
| #runInShell: runInShell, |
| #stdoutEncoding: stdoutEncoding, |
| #stderrEncoding: stderrEncoding, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i25.ProcessResult>); |
| |
| @override |
| _i25.ProcessResult runSync( |
| List<Object>? command, { |
| String? workingDirectory, |
| Map<String, String>? environment, |
| bool? includeParentEnvironment = true, |
| bool? runInShell = false, |
| _i26.Encoding? stdoutEncoding = const _i25.SystemEncoding(), |
| _i26.Encoding? stderrEncoding = const _i25.SystemEncoding(), |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #runSync, |
| [command], |
| { |
| #workingDirectory: workingDirectory, |
| #environment: environment, |
| #includeParentEnvironment: includeParentEnvironment, |
| #runInShell: runInShell, |
| #stdoutEncoding: stdoutEncoding, |
| #stderrEncoding: stderrEncoding, |
| }, |
| ), |
| returnValue: _i32.dummyValue<_i25.ProcessResult>( |
| this, |
| Invocation.method( |
| #runSync, |
| [command], |
| { |
| #workingDirectory: workingDirectory, |
| #environment: environment, |
| #includeParentEnvironment: includeParentEnvironment, |
| #runInShell: runInShell, |
| #stdoutEncoding: stdoutEncoding, |
| #stderrEncoding: stderrEncoding, |
| }, |
| ), |
| ), |
| ) as _i25.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, [ |
| _i25.ProcessSignal? signal = _i25.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 _i13.SearchService { |
| MockSearchService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i13.GitHub get github => (super.noSuchMethod( |
| Invocation.getter(#github), |
| returnValue: _FakeGitHub_16( |
| this, |
| Invocation.getter(#github), |
| ), |
| ) as _i13.GitHub); |
| |
| @override |
| _i20.Stream<_i13.Repository> repositories( |
| String? query, { |
| String? sort, |
| int? pages = 2, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #repositories, |
| [query], |
| { |
| #sort: sort, |
| #pages: pages, |
| }, |
| ), |
| returnValue: _i20.Stream<_i13.Repository>.empty(), |
| ) as _i20.Stream<_i13.Repository>); |
| |
| @override |
| _i20.Stream<_i13.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: _i20.Stream<_i13.CodeSearchResults>.empty(), |
| ) as _i20.Stream<_i13.CodeSearchResults>); |
| |
| @override |
| _i20.Stream<_i13.Issue> issues( |
| String? query, { |
| String? sort, |
| int? pages = 2, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #issues, |
| [query], |
| { |
| #sort: sort, |
| #pages: pages, |
| }, |
| ), |
| returnValue: _i20.Stream<_i13.Issue>.empty(), |
| ) as _i20.Stream<_i13.Issue>); |
| |
| @override |
| _i20.Stream<_i13.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: _i20.Stream<_i13.User>.empty(), |
| ) as _i20.Stream<_i13.User>); |
| } |
| |
| /// A class which mocks [TabledataResource]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockTabledataResource extends _i1.Mock implements _i5.TabledataResource { |
| MockTabledataResource() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i20.Future<_i5.TableDataInsertAllResponse> insertAll( |
| _i5.TableDataInsertAllRequest? request, |
| String? projectId, |
| String? datasetId, |
| String? tableId, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #insertAll, |
| [ |
| request, |
| projectId, |
| datasetId, |
| tableId, |
| ], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i20.Future<_i5.TableDataInsertAllResponse>.value(_FakeTableDataInsertAllResponse_66( |
| this, |
| Invocation.method( |
| #insertAll, |
| [ |
| request, |
| projectId, |
| datasetId, |
| tableId, |
| ], |
| {#$fields: $fields}, |
| ), |
| )), |
| ) as _i20.Future<_i5.TableDataInsertAllResponse>); |
| |
| @override |
| _i20.Future<_i5.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: _i20.Future<_i5.TableDataList>.value(_FakeTableDataList_67( |
| this, |
| Invocation.method( |
| #list, |
| [ |
| projectId, |
| datasetId, |
| tableId, |
| ], |
| { |
| #formatOptions_useInt64Timestamp: formatOptions_useInt64Timestamp, |
| #maxResults: maxResults, |
| #pageToken: pageToken, |
| #selectedFields: selectedFields, |
| #startIndex: startIndex, |
| #$fields: $fields, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i5.TableDataList>); |
| } |
| |
| /// A class which mocks [UsersService]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockUsersService extends _i1.Mock implements _i13.UsersService { |
| MockUsersService() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i13.GitHub get github => (super.noSuchMethod( |
| Invocation.getter(#github), |
| returnValue: _FakeGitHub_16( |
| this, |
| Invocation.getter(#github), |
| ), |
| ) as _i13.GitHub); |
| |
| @override |
| _i20.Future<_i13.User> getUser(String? name) => (super.noSuchMethod( |
| Invocation.method( |
| #getUser, |
| [name], |
| ), |
| returnValue: _i20.Future<_i13.User>.value(_FakeUser_68( |
| this, |
| Invocation.method( |
| #getUser, |
| [name], |
| ), |
| )), |
| ) as _i20.Future<_i13.User>); |
| |
| @override |
| _i20.Future<_i13.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: _i20.Future<_i13.CurrentUser>.value(_FakeCurrentUser_69( |
| this, |
| Invocation.method( |
| #editCurrentUser, |
| [], |
| { |
| #name: name, |
| #email: email, |
| #blog: blog, |
| #company: company, |
| #location: location, |
| #hireable: hireable, |
| #bio: bio, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i13.CurrentUser>); |
| |
| @override |
| _i20.Stream<_i13.User> getUsers( |
| List<String>? names, { |
| int? pages, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #getUsers, |
| [names], |
| {#pages: pages}, |
| ), |
| returnValue: _i20.Stream<_i13.User>.empty(), |
| ) as _i20.Stream<_i13.User>); |
| |
| @override |
| _i20.Future<_i13.CurrentUser> getCurrentUser() => (super.noSuchMethod( |
| Invocation.method( |
| #getCurrentUser, |
| [], |
| ), |
| returnValue: _i20.Future<_i13.CurrentUser>.value(_FakeCurrentUser_69( |
| this, |
| Invocation.method( |
| #getCurrentUser, |
| [], |
| ), |
| )), |
| ) as _i20.Future<_i13.CurrentUser>); |
| |
| @override |
| _i20.Future<bool> isUser(String? name) => (super.noSuchMethod( |
| Invocation.method( |
| #isUser, |
| [name], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Stream<_i13.User> listUsers({ |
| int? pages, |
| int? since, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listUsers, |
| [], |
| { |
| #pages: pages, |
| #since: since, |
| }, |
| ), |
| returnValue: _i20.Stream<_i13.User>.empty(), |
| ) as _i20.Stream<_i13.User>); |
| |
| @override |
| _i20.Stream<_i13.UserEmail> listEmails() => (super.noSuchMethod( |
| Invocation.method( |
| #listEmails, |
| [], |
| ), |
| returnValue: _i20.Stream<_i13.UserEmail>.empty(), |
| ) as _i20.Stream<_i13.UserEmail>); |
| |
| @override |
| _i20.Stream<_i13.UserEmail> addEmails(List<String>? emails) => (super.noSuchMethod( |
| Invocation.method( |
| #addEmails, |
| [emails], |
| ), |
| returnValue: _i20.Stream<_i13.UserEmail>.empty(), |
| ) as _i20.Stream<_i13.UserEmail>); |
| |
| @override |
| _i20.Future<bool> deleteEmails(List<String>? emails) => (super.noSuchMethod( |
| Invocation.method( |
| #deleteEmails, |
| [emails], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Stream<_i13.User> listUserFollowers(String? user) => (super.noSuchMethod( |
| Invocation.method( |
| #listUserFollowers, |
| [user], |
| ), |
| returnValue: _i20.Stream<_i13.User>.empty(), |
| ) as _i20.Stream<_i13.User>); |
| |
| @override |
| _i20.Future<bool> isFollowingUser(String? user) => (super.noSuchMethod( |
| Invocation.method( |
| #isFollowingUser, |
| [user], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Future<bool> isUserFollowing( |
| String? user, |
| String? target, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #isUserFollowing, |
| [ |
| user, |
| target, |
| ], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Future<bool> followUser(String? user) => (super.noSuchMethod( |
| Invocation.method( |
| #followUser, |
| [user], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Future<bool> unfollowUser(String? user) => (super.noSuchMethod( |
| Invocation.method( |
| #unfollowUser, |
| [user], |
| ), |
| returnValue: _i20.Future<bool>.value(false), |
| ) as _i20.Future<bool>); |
| |
| @override |
| _i20.Stream<_i13.User> listCurrentUserFollowers() => (super.noSuchMethod( |
| Invocation.method( |
| #listCurrentUserFollowers, |
| [], |
| ), |
| returnValue: _i20.Stream<_i13.User>.empty(), |
| ) as _i20.Stream<_i13.User>); |
| |
| @override |
| _i20.Stream<_i13.User> listCurrentUserFollowing() => (super.noSuchMethod( |
| Invocation.method( |
| #listCurrentUserFollowing, |
| [], |
| ), |
| returnValue: _i20.Stream<_i13.User>.empty(), |
| ) as _i20.Stream<_i13.User>); |
| |
| @override |
| _i20.Stream<_i13.PublicKey> listPublicKeys([String? userLogin]) => (super.noSuchMethod( |
| Invocation.method( |
| #listPublicKeys, |
| [userLogin], |
| ), |
| returnValue: _i20.Stream<_i13.PublicKey>.empty(), |
| ) as _i20.Stream<_i13.PublicKey>); |
| |
| @override |
| _i20.Future<_i13.PublicKey> createPublicKey(_i13.CreatePublicKey? key) => (super.noSuchMethod( |
| Invocation.method( |
| #createPublicKey, |
| [key], |
| ), |
| returnValue: _i20.Future<_i13.PublicKey>.value(_FakePublicKey_70( |
| this, |
| Invocation.method( |
| #createPublicKey, |
| [key], |
| ), |
| )), |
| ) as _i20.Future<_i13.PublicKey>); |
| } |
| |
| /// A class which mocks [ProjectsDatabasesDocumentsResource]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockProjectsDatabasesDocumentsResource extends _i1.Mock implements _i21.ProjectsDatabasesDocumentsResource { |
| MockProjectsDatabasesDocumentsResource() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i20.Future<List<_i21.BatchGetDocumentsResponseElement>> batchGet( |
| _i21.BatchGetDocumentsRequest? request, |
| String? database, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #batchGet, |
| [ |
| request, |
| database, |
| ], |
| {#$fields: $fields}, |
| ), |
| returnValue: |
| _i20.Future<List<_i21.BatchGetDocumentsResponseElement>>.value(<_i21.BatchGetDocumentsResponseElement>[]), |
| ) as _i20.Future<List<_i21.BatchGetDocumentsResponseElement>>); |
| |
| @override |
| _i20.Future<_i21.BatchWriteResponse> batchWrite( |
| _i21.BatchWriteRequest? request, |
| String? database, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #batchWrite, |
| [ |
| request, |
| database, |
| ], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i20.Future<_i21.BatchWriteResponse>.value(_FakeBatchWriteResponse_26( |
| this, |
| Invocation.method( |
| #batchWrite, |
| [ |
| request, |
| database, |
| ], |
| {#$fields: $fields}, |
| ), |
| )), |
| ) as _i20.Future<_i21.BatchWriteResponse>); |
| |
| @override |
| _i20.Future<_i21.BeginTransactionResponse> beginTransaction( |
| _i21.BeginTransactionRequest? request, |
| String? database, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #beginTransaction, |
| [ |
| request, |
| database, |
| ], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i20.Future<_i21.BeginTransactionResponse>.value(_FakeBeginTransactionResponse_71( |
| this, |
| Invocation.method( |
| #beginTransaction, |
| [ |
| request, |
| database, |
| ], |
| {#$fields: $fields}, |
| ), |
| )), |
| ) as _i20.Future<_i21.BeginTransactionResponse>); |
| |
| @override |
| _i20.Future<_i21.CommitResponse> commit( |
| _i21.CommitRequest? request, |
| String? database, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #commit, |
| [ |
| request, |
| database, |
| ], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i20.Future<_i21.CommitResponse>.value(_FakeCommitResponse_27( |
| this, |
| Invocation.method( |
| #commit, |
| [ |
| request, |
| database, |
| ], |
| {#$fields: $fields}, |
| ), |
| )), |
| ) as _i20.Future<_i21.CommitResponse>); |
| |
| @override |
| _i20.Future<_i21.Document> createDocument( |
| _i21.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: _i20.Future<_i21.Document>.value(_FakeDocument_25( |
| this, |
| Invocation.method( |
| #createDocument, |
| [ |
| request, |
| parent, |
| collectionId, |
| ], |
| { |
| #documentId: documentId, |
| #mask_fieldPaths: mask_fieldPaths, |
| #$fields: $fields, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i21.Document>); |
| |
| @override |
| _i20.Future<_i27.$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: _i20.Future<_i27.$Empty>.value(_Fake$Empty_72( |
| this, |
| Invocation.method( |
| #delete, |
| [name], |
| { |
| #currentDocument_exists: currentDocument_exists, |
| #currentDocument_updateTime: currentDocument_updateTime, |
| #$fields: $fields, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i27.$Empty>); |
| |
| @override |
| _i20.Future<_i21.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: _i20.Future<_i21.Document>.value(_FakeDocument_25( |
| this, |
| Invocation.method( |
| #get, |
| [name], |
| { |
| #mask_fieldPaths: mask_fieldPaths, |
| #readTime: readTime, |
| #transaction: transaction, |
| #$fields: $fields, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i21.Document>); |
| |
| @override |
| _i20.Future<_i21.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: _i20.Future<_i21.ListDocumentsResponse>.value(_FakeListDocumentsResponse_73( |
| 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 _i20.Future<_i21.ListDocumentsResponse>); |
| |
| @override |
| _i20.Future<_i21.ListCollectionIdsResponse> listCollectionIds( |
| _i21.ListCollectionIdsRequest? request, |
| String? parent, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #listCollectionIds, |
| [ |
| request, |
| parent, |
| ], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i20.Future<_i21.ListCollectionIdsResponse>.value(_FakeListCollectionIdsResponse_74( |
| this, |
| Invocation.method( |
| #listCollectionIds, |
| [ |
| request, |
| parent, |
| ], |
| {#$fields: $fields}, |
| ), |
| )), |
| ) as _i20.Future<_i21.ListCollectionIdsResponse>); |
| |
| @override |
| _i20.Future<_i21.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: _i20.Future<_i21.ListDocumentsResponse>.value(_FakeListDocumentsResponse_73( |
| 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 _i20.Future<_i21.ListDocumentsResponse>); |
| |
| @override |
| _i20.Future<_i21.PartitionQueryResponse> partitionQuery( |
| _i21.PartitionQueryRequest? request, |
| String? parent, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #partitionQuery, |
| [ |
| request, |
| parent, |
| ], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i20.Future<_i21.PartitionQueryResponse>.value(_FakePartitionQueryResponse_75( |
| this, |
| Invocation.method( |
| #partitionQuery, |
| [ |
| request, |
| parent, |
| ], |
| {#$fields: $fields}, |
| ), |
| )), |
| ) as _i20.Future<_i21.PartitionQueryResponse>); |
| |
| @override |
| _i20.Future<_i21.Document> patch( |
| _i21.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: _i20.Future<_i21.Document>.value(_FakeDocument_25( |
| 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 _i20.Future<_i21.Document>); |
| |
| @override |
| _i20.Future<_i27.$Empty> rollback( |
| _i21.RollbackRequest? request, |
| String? database, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #rollback, |
| [ |
| request, |
| database, |
| ], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i20.Future<_i27.$Empty>.value(_Fake$Empty_72( |
| this, |
| Invocation.method( |
| #rollback, |
| [ |
| request, |
| database, |
| ], |
| {#$fields: $fields}, |
| ), |
| )), |
| ) as _i20.Future<_i27.$Empty>); |
| |
| @override |
| _i20.Future<List<_i21.RunAggregationQueryResponseElement>> runAggregationQuery( |
| _i21.RunAggregationQueryRequest? request, |
| String? parent, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #runAggregationQuery, |
| [ |
| request, |
| parent, |
| ], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i20.Future<List<_i21.RunAggregationQueryResponseElement>>.value( |
| <_i21.RunAggregationQueryResponseElement>[]), |
| ) as _i20.Future<List<_i21.RunAggregationQueryResponseElement>>); |
| |
| @override |
| _i20.Future<List<_i21.RunQueryResponseElement>> runQuery( |
| _i21.RunQueryRequest? request, |
| String? parent, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #runQuery, |
| [ |
| request, |
| parent, |
| ], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i20.Future<List<_i21.RunQueryResponseElement>>.value(<_i21.RunQueryResponseElement>[]), |
| ) as _i20.Future<List<_i21.RunQueryResponseElement>>); |
| |
| @override |
| _i20.Future<_i21.WriteResponse> write( |
| _i21.WriteRequest? request, |
| String? database, { |
| String? $fields, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #write, |
| [ |
| request, |
| database, |
| ], |
| {#$fields: $fields}, |
| ), |
| returnValue: _i20.Future<_i21.WriteResponse>.value(_FakeWriteResponse_76( |
| this, |
| Invocation.method( |
| #write, |
| [ |
| request, |
| database, |
| ], |
| {#$fields: $fields}, |
| ), |
| )), |
| ) as _i20.Future<_i21.WriteResponse>); |
| } |
| |
| /// A class which mocks [BeginTransactionResponse]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockBeginTransactionResponse extends _i1.Mock implements _i21.BeginTransactionResponse { |
| MockBeginTransactionResponse() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| set transaction(String? _transaction) => super.noSuchMethod( |
| Invocation.setter( |
| #transaction, |
| _transaction, |
| ), |
| returnValueForMissingStub: null, |
| ); |
| |
| @override |
| List<int> get transactionAsBytes => (super.noSuchMethod( |
| Invocation.getter(#transactionAsBytes), |
| returnValue: <int>[], |
| ) as List<int>); |
| |
| @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 [Callbacks]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockCallbacks extends _i1.Mock implements _i47.Callbacks { |
| MockCallbacks() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i20.Future<_i28.StagingConclusion> markCheckRunConclusion({ |
| required _i15.FirestoreService? firestoreService, |
| required _i13.RepositorySlug? slug, |
| required String? sha, |
| required _i28.CiStage? stage, |
| required String? checkRun, |
| required String? conclusion, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #markCheckRunConclusion, |
| [], |
| { |
| #firestoreService: firestoreService, |
| #slug: slug, |
| #sha: sha, |
| #stage: stage, |
| #checkRun: checkRun, |
| #conclusion: conclusion, |
| }, |
| ), |
| returnValue: _i20.Future<_i28.StagingConclusion>.value(_FakeStagingConclusion_77( |
| this, |
| Invocation.method( |
| #markCheckRunConclusion, |
| [], |
| { |
| #firestoreService: firestoreService, |
| #slug: slug, |
| #sha: sha, |
| #stage: stage, |
| #checkRun: checkRun, |
| #conclusion: conclusion, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i28.StagingConclusion>); |
| |
| @override |
| _i20.Future<_i21.Document> initializeDocument({ |
| required _i15.FirestoreService? firestoreService, |
| required _i13.RepositorySlug? slug, |
| required String? sha, |
| required _i28.CiStage? stage, |
| required List<String>? tasks, |
| required String? checkRunGuard, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #initializeDocument, |
| [], |
| { |
| #firestoreService: firestoreService, |
| #slug: slug, |
| #sha: sha, |
| #stage: stage, |
| #tasks: tasks, |
| #checkRunGuard: checkRunGuard, |
| }, |
| ), |
| returnValue: _i20.Future<_i21.Document>.value(_FakeDocument_25( |
| this, |
| Invocation.method( |
| #initializeDocument, |
| [], |
| { |
| #firestoreService: firestoreService, |
| #slug: slug, |
| #sha: sha, |
| #stage: stage, |
| #tasks: tasks, |
| #checkRunGuard: checkRunGuard, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i21.Document>); |
| |
| @override |
| _i20.Future<_i21.Document> initializePrCheckRuns({ |
| required _i15.FirestoreService? firestoreService, |
| required _i13.PullRequest? pullRequest, |
| required List<_i13.CheckRun>? checks, |
| }) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #initializePrCheckRuns, |
| [], |
| { |
| #firestoreService: firestoreService, |
| #pullRequest: pullRequest, |
| #checks: checks, |
| }, |
| ), |
| returnValue: _i20.Future<_i21.Document>.value(_FakeDocument_25( |
| this, |
| Invocation.method( |
| #initializePrCheckRuns, |
| [], |
| { |
| #firestoreService: firestoreService, |
| #pullRequest: pullRequest, |
| #checks: checks, |
| }, |
| ), |
| )), |
| ) as _i20.Future<_i21.Document>); |
| |
| @override |
| _i20.Future<_i13.PullRequest> findPullRequestFor( |
| _i15.FirestoreService? firestoreService, |
| int? checkRunId, |
| String? checkRunName, |
| ) => |
| (super.noSuchMethod( |
| Invocation.method( |
| #findPullRequestFor, |
| [ |
| firestoreService, |
| checkRunId, |
| checkRunName, |
| ], |
| ), |
| returnValue: _i20.Future<_i13.PullRequest>.value(_FakePullRequest_41( |
| this, |
| Invocation.method( |
| #findPullRequestFor, |
| [ |
| firestoreService, |
| checkRunId, |
| checkRunName, |
| ], |
| ), |
| )), |
| ) as _i20.Future<_i13.PullRequest>); |
| } |
| |
| /// A class which mocks [Cache]. |
| /// |
| /// See the documentation for Mockito's code generation for more information. |
| class MockCache extends _i1.Mock implements _i29.Cache<_i40.Uint8List> { |
| MockCache() { |
| _i1.throwOnMissingStub(this); |
| } |
| |
| @override |
| _i29.Entry<_i40.Uint8List> operator [](String? key) => (super.noSuchMethod( |
| Invocation.method( |
| #[], |
| [key], |
| ), |
| returnValue: _FakeEntry_78<_i40.Uint8List>( |
| this, |
| Invocation.method( |
| #[], |
| [key], |
| ), |
| ), |
| ) as _i29.Entry<_i40.Uint8List>); |
| |
| @override |
| _i29.Cache<_i40.Uint8List> withPrefix(String? prefix) => (super.noSuchMethod( |
| Invocation.method( |
| #withPrefix, |
| [prefix], |
| ), |
| returnValue: _FakeCache_79<_i40.Uint8List>( |
| this, |
| Invocation.method( |
| #withPrefix, |
| [prefix], |
| ), |
| ), |
| ) as _i29.Cache<_i40.Uint8List>); |
| |
| @override |
| _i29.Cache<S> withCodec<S>(_i26.Codec<S, _i40.Uint8List>? codec) => (super.noSuchMethod( |
| Invocation.method( |
| #withCodec, |
| [codec], |
| ), |
| returnValue: _FakeCache_79<S>( |
| this, |
| Invocation.method( |
| #withCodec, |
| [codec], |
| ), |
| ), |
| ) as _i29.Cache<S>); |
| |
| @override |
| _i29.Cache<_i40.Uint8List> withTTL(Duration? ttl) => (super.noSuchMethod( |
| Invocation.method( |
| #withTTL, |
| [ttl], |
| ), |
| returnValue: _FakeCache_79<_i40.Uint8List>( |
| this, |
| Invocation.method( |
| #withTTL, |
| [ttl], |
| ), |
| ), |
| ) as _i29.Cache<_i40.Uint8List>); |
| } |