blob: a9f101f12438c2c24a444ba45993e12bc03088ae [file] [log] [blame]
// Mocks generated by Mockito 5.4.2 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 _i19;
import 'dart:convert' as _i22;
import 'dart:io' as _i21;
import 'dart:typed_data' as _i35;
import 'package:appengine/appengine.dart' as _i10;
import 'package:cocoon_service/cocoon_service.dart' as _i23;
import 'package:cocoon_service/src/foundation/github_checks_util.dart' as _i20;
import 'package:cocoon_service/src/model/appengine/branch.dart' as _i30;
import 'package:cocoon_service/src/model/appengine/commit.dart' as _i31;
import 'package:cocoon_service/src/model/appengine/github_build_status_update.dart' as _i17;
import 'package:cocoon_service/src/model/appengine/github_gold_status_update.dart' as _i18;
import 'package:cocoon_service/src/model/appengine/key_helper.dart' as _i12;
import 'package:cocoon_service/src/model/appengine/stage.dart' as _i33;
import 'package:cocoon_service/src/model/appengine/task.dart' as _i32;
import 'package:cocoon_service/src/model/ci_yaml/target.dart' as _i37;
import 'package:cocoon_service/src/model/github/checks.dart' as _i38;
import 'package:cocoon_service/src/model/luci/buildbucket.dart' as _i8;
import 'package:cocoon_service/src/model/luci/push_message.dart' as _i36;
import 'package:cocoon_service/src/service/access_client_provider.dart' as _i5;
import 'package:cocoon_service/src/service/access_token_provider.dart' as _i25;
import 'package:cocoon_service/src/service/bigquery.dart' as _i15;
import 'package:cocoon_service/src/service/commit_service.dart' as _i28;
import 'package:cocoon_service/src/service/config.dart' as _i3;
import 'package:cocoon_service/src/service/datastore.dart' as _i9;
import 'package:cocoon_service/src/service/gerrit_service.dart' as _i7;
import 'package:cocoon_service/src/service/github_service.dart' as _i16;
import 'package:gcloud/db.dart' as _i11;
import 'package:github/github.dart' as _i13;
import 'package:github/hooks.dart' as _i29;
import 'package:googleapis/bigquery/v2.dart' as _i6;
import 'package:googleapis_auth/auth_io.dart' as _i4;
import 'package:graphql/client.dart' as _i14;
import 'package:http/http.dart' as _i2;
import 'package:mockito/mockito.dart' as _i1;
import 'package:mockito/src/dummies.dart' as _i27;
import 'package:neat_cache/neat_cache.dart' as _i24;
import 'package:process/src/interface/process_manager.dart' as _i39;
import 'package:retry/retry.dart' as _i26;
import '../../service/cache_service_test.dart' as _i34;
import 'mocks.dart' as _i40;
// 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: 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 _FakeClient_0 extends _i1.SmartFake implements _i2.Client {
_FakeClient_0(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeConfig_1 extends _i1.SmartFake implements _i3.Config {
_FakeConfig_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeAccessToken_2 extends _i1.SmartFake implements _i4.AccessToken {
_FakeAccessToken_2(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeAccessClientProvider_3 extends _i1.SmartFake implements _i5.AccessClientProvider {
_FakeAccessClientProvider_3(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeTabledataResource_4 extends _i1.SmartFake implements _i6.TabledataResource {
_FakeTabledataResource_4(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeJobsResource_5 extends _i1.SmartFake implements _i6.JobsResource {
_FakeJobsResource_5(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGerritService_6 extends _i1.SmartFake implements _i7.GerritService {
_FakeGerritService_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 _FakeBigqueryService_18 extends _i1.SmartFake implements _i15.BigqueryService {
_FakeBigqueryService_18(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGithubService_19 extends _i1.SmartFake implements _i16.GithubService {
_FakeGithubService_19(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGithubBuildStatusUpdate_20 extends _i1.SmartFake implements _i17.GithubBuildStatusUpdate {
_FakeGithubBuildStatusUpdate_20(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGithubGoldStatusUpdate_21 extends _i1.SmartFake implements _i18.GithubGoldStatusUpdate {
_FakeGithubGoldStatusUpdate_21(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeFuture_22<T1> extends _i1.SmartFake implements _i19.Future<T1> {
_FakeFuture_22(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeIssue_23 extends _i1.SmartFake implements _i13.Issue {
_FakeIssue_23(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeIssueComment_24 extends _i1.SmartFake implements _i13.IssueComment {
_FakeIssueComment_24(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeIssueLabel_25 extends _i1.SmartFake implements _i13.IssueLabel {
_FakeIssueLabel_25(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeMilestone_26 extends _i1.SmartFake implements _i13.Milestone {
_FakeMilestone_26(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGithubChecksUtil_27 extends _i1.SmartFake implements _i20.GithubChecksUtil {
_FakeGithubChecksUtil_27(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeCheckRunConclusion_28 extends _i1.SmartFake implements _i13.CheckRunConclusion {
_FakeCheckRunConclusion_28(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeCheckRunStatus_29 extends _i1.SmartFake implements _i13.CheckRunStatus {
_FakeCheckRunStatus_29(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeCheckSuite_30 extends _i1.SmartFake implements _i13.CheckSuite {
_FakeCheckSuite_30(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeCheckRun_31 extends _i1.SmartFake implements _i13.CheckRun {
_FakeCheckRun_31(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakePullRequest_32 extends _i1.SmartFake implements _i13.PullRequest {
_FakePullRequest_32(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGitReference_33 extends _i1.SmartFake implements _i13.GitReference {
_FakeGitReference_33(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeRateLimit_34 extends _i1.SmartFake implements _i13.RateLimit {
_FakeRateLimit_34(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGitBlob_35 extends _i1.SmartFake implements _i13.GitBlob {
_FakeGitBlob_35(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGitCommit_36 extends _i1.SmartFake implements _i13.GitCommit {
_FakeGitCommit_36(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGitTag_37 extends _i1.SmartFake implements _i13.GitTag {
_FakeGitTag_37(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGitTree_38 extends _i1.SmartFake implements _i13.GitTree {
_FakeGitTree_38(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeDefaultPolicies_39 extends _i1.SmartFake implements _i14.DefaultPolicies {
_FakeDefaultPolicies_39(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeLink_40 extends _i1.SmartFake implements _i14.Link {
_FakeLink_40(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGraphQLCache_41 extends _i1.SmartFake implements _i14.GraphQLCache {
_FakeGraphQLCache_41(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeQueryManager_42 extends _i1.SmartFake implements _i14.QueryManager {
_FakeQueryManager_42(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeObservableQuery_43<TParsed1> extends _i1.SmartFake implements _i14.ObservableQuery<TParsed1> {
_FakeObservableQuery_43(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeQueryResult_44<TParsed1 extends Object?> extends _i1.SmartFake implements _i14.QueryResult<TParsed1> {
_FakeQueryResult_44(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeHttpClientRequest_45 extends _i1.SmartFake implements _i21.HttpClientRequest {
_FakeHttpClientRequest_45(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeUri_46 extends _i1.SmartFake implements Uri {
_FakeUri_46(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeHttpHeaders_47 extends _i1.SmartFake implements _i21.HttpHeaders {
_FakeHttpHeaders_47(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeHttpClientResponse_48 extends _i1.SmartFake implements _i21.HttpClientResponse {
_FakeHttpClientResponse_48(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeEncoding_49 extends _i1.SmartFake implements _i22.Encoding {
_FakeEncoding_49(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeSocket_50 extends _i1.SmartFake implements _i21.Socket {
_FakeSocket_50(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeStreamSubscription_51<T> extends _i1.SmartFake implements _i19.StreamSubscription<T> {
_FakeStreamSubscription_51(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeJobCancelResponse_52 extends _i1.SmartFake implements _i6.JobCancelResponse {
_FakeJobCancelResponse_52(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeJob_53 extends _i1.SmartFake implements _i6.Job {
_FakeJob_53(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGetQueryResultsResponse_54 extends _i1.SmartFake implements _i6.GetQueryResultsResponse {
_FakeGetQueryResultsResponse_54(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeJobList_55 extends _i1.SmartFake implements _i6.JobList {
_FakeJobList_55(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeQueryResponse_56 extends _i1.SmartFake implements _i6.QueryResponse {
_FakeQueryResponse_56(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeBuildBucketClient_57 extends _i1.SmartFake implements _i23.BuildBucketClient {
_FakeBuildBucketClient_57(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeCacheService_58 extends _i1.SmartFake implements _i23.CacheService {
_FakeCacheService_58(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakePubSub_59 extends _i1.SmartFake implements _i23.PubSub {
_FakePubSub_59(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeProcess_60 extends _i1.SmartFake implements _i21.Process {
_FakeProcess_60(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakePullRequestMerge_61 extends _i1.SmartFake implements _i13.PullRequestMerge {
_FakePullRequestMerge_61(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakePullRequestComment_62 extends _i1.SmartFake implements _i13.PullRequestComment {
_FakePullRequestComment_62(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakePullRequestReview_63 extends _i1.SmartFake implements _i13.PullRequestReview {
_FakePullRequestReview_63(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeRepository_64 extends _i1.SmartFake implements _i13.Repository {
_FakeRepository_64(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeLicenseDetails_65 extends _i1.SmartFake implements _i13.LicenseDetails {
_FakeLicenseDetails_65(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeLanguageBreakdown_66 extends _i1.SmartFake implements _i13.LanguageBreakdown {
_FakeLanguageBreakdown_66(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeBranch_67 extends _i1.SmartFake implements _i13.Branch {
_FakeBranch_67(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeCommitComment_68 extends _i1.SmartFake implements _i13.CommitComment {
_FakeCommitComment_68(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeRepositoryCommit_69 extends _i1.SmartFake implements _i13.RepositoryCommit {
_FakeRepositoryCommit_69(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGitHubComparison_70 extends _i1.SmartFake implements _i13.GitHubComparison {
_FakeGitHubComparison_70(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGitHubFile_71 extends _i1.SmartFake implements _i13.GitHubFile {
_FakeGitHubFile_71(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeRepositoryContents_72 extends _i1.SmartFake implements _i13.RepositoryContents {
_FakeRepositoryContents_72(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeContentCreation_73 extends _i1.SmartFake implements _i13.ContentCreation {
_FakeContentCreation_73(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeHook_74 extends _i1.SmartFake implements _i13.Hook {
_FakeHook_74(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakePublicKey_75 extends _i1.SmartFake implements _i13.PublicKey {
_FakePublicKey_75(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeRepositoryPages_76 extends _i1.SmartFake implements _i13.RepositoryPages {
_FakeRepositoryPages_76(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakePageBuild_77 extends _i1.SmartFake implements _i13.PageBuild {
_FakePageBuild_77(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeRelease_78 extends _i1.SmartFake implements _i13.Release {
_FakeRelease_78(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeReleaseAsset_79 extends _i1.SmartFake implements _i13.ReleaseAsset {
_FakeReleaseAsset_79(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeContributorParticipation_80 extends _i1.SmartFake implements _i13.ContributorParticipation {
_FakeContributorParticipation_80(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeRepositoryStatus_81 extends _i1.SmartFake implements _i13.RepositoryStatus {
_FakeRepositoryStatus_81(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeCombinedRepositoryStatus_82 extends _i1.SmartFake implements _i13.CombinedRepositoryStatus {
_FakeCombinedRepositoryStatus_82(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeReleaseNotes_83 extends _i1.SmartFake implements _i13.ReleaseNotes {
_FakeReleaseNotes_83(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeTableDataInsertAllResponse_84 extends _i1.SmartFake implements _i6.TableDataInsertAllResponse {
_FakeTableDataInsertAllResponse_84(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeTableDataList_85 extends _i1.SmartFake implements _i6.TableDataList {
_FakeTableDataList_85(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeUser_86 extends _i1.SmartFake implements _i13.User {
_FakeUser_86(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeCurrentUser_87 extends _i1.SmartFake implements _i13.CurrentUser {
_FakeCurrentUser_87(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeEntry_88<T> extends _i1.SmartFake implements _i24.Entry<T> {
_FakeEntry_88(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeCache_89<T> extends _i1.SmartFake implements _i24.Cache<T> {
_FakeCache_89(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeAuthentication_90 extends _i1.SmartFake implements _i13.Authentication {
_FakeAuthentication_90(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeActivityService_91 extends _i1.SmartFake implements _i13.ActivityService {
_FakeActivityService_91(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeAuthorizationsService_92 extends _i1.SmartFake implements _i13.AuthorizationsService {
_FakeAuthorizationsService_92(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGistsService_93 extends _i1.SmartFake implements _i13.GistsService {
_FakeGistsService_93(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeGitService_94 extends _i1.SmartFake implements _i13.GitService {
_FakeGitService_94(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeIssuesService_95 extends _i1.SmartFake implements _i13.IssuesService {
_FakeIssuesService_95(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeMiscService_96 extends _i1.SmartFake implements _i13.MiscService {
_FakeMiscService_96(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeOrganizationsService_97 extends _i1.SmartFake implements _i13.OrganizationsService {
_FakeOrganizationsService_97(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakePullRequestsService_98 extends _i1.SmartFake implements _i13.PullRequestsService {
_FakePullRequestsService_98(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeRepositoriesService_99 extends _i1.SmartFake implements _i13.RepositoriesService {
_FakeRepositoriesService_99(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeSearchService_100 extends _i1.SmartFake implements _i13.SearchService {
_FakeSearchService_100(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeUrlShortenerService_101 extends _i1.SmartFake implements _i13.UrlShortenerService {
_FakeUrlShortenerService_101(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeUsersService_102 extends _i1.SmartFake implements _i13.UsersService {
_FakeUsersService_102(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeChecksService_103 extends _i1.SmartFake implements _i13.ChecksService {
_FakeChecksService_103(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeResponse_104 extends _i1.SmartFake implements _i2.Response {
_FakeResponse_104(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
/// A class which mocks [AccessClientProvider].
///
/// See the documentation for Mockito's code generation for more information.
class MockAccessClientProvider extends _i1.Mock implements _i5.AccessClientProvider {
MockAccessClientProvider() {
_i1.throwOnMissingStub(this);
}
@override
_i19.Future<_i2.Client> createAccessClient(
{List<String>? scopes = const [r'https://www.googleapis.com/auth/cloud-platform']}) =>
(super.noSuchMethod(
Invocation.method(
#createAccessClient,
[],
{#scopes: scopes},
),
returnValue: _i19.Future<_i2.Client>.value(_FakeClient_0(
this,
Invocation.method(
#createAccessClient,
[],
{#scopes: scopes},
),
)),
) as _i19.Future<_i2.Client>);
}
/// A class which mocks [AccessTokenService].
///
/// See the documentation for Mockito's code generation for more information.
class MockAccessTokenService extends _i1.Mock implements _i25.AccessTokenService {
MockAccessTokenService() {
_i1.throwOnMissingStub(this);
}
@override
_i3.Config get config => (super.noSuchMethod(
Invocation.getter(#config),
returnValue: _FakeConfig_1(
this,
Invocation.getter(#config),
),
) as _i3.Config);
@override
_i19.Future<_i4.AccessToken> createAccessToken() => (super.noSuchMethod(
Invocation.method(
#createAccessToken,
[],
),
returnValue: _i19.Future<_i4.AccessToken>.value(_FakeAccessToken_2(
this,
Invocation.method(
#createAccessToken,
[],
),
)),
) as _i19.Future<_i4.AccessToken>);
}
/// A class which mocks [BigqueryService].
///
/// See the documentation for Mockito's code generation for more information.
class MockBigqueryService extends _i1.Mock implements _i15.BigqueryService {
MockBigqueryService() {
_i1.throwOnMissingStub(this);
}
@override
_i5.AccessClientProvider get accessClientProvider => (super.noSuchMethod(
Invocation.getter(#accessClientProvider),
returnValue: _FakeAccessClientProvider_3(
this,
Invocation.getter(#accessClientProvider),
),
) as _i5.AccessClientProvider);
@override
_i19.Future<_i6.TabledataResource> defaultTabledata() => (super.noSuchMethod(
Invocation.method(
#defaultTabledata,
[],
),
returnValue: _i19.Future<_i6.TabledataResource>.value(_FakeTabledataResource_4(
this,
Invocation.method(
#defaultTabledata,
[],
),
)),
) as _i19.Future<_i6.TabledataResource>);
@override
_i19.Future<_i6.JobsResource> defaultJobs() => (super.noSuchMethod(
Invocation.method(
#defaultJobs,
[],
),
returnValue: _i19.Future<_i6.JobsResource>.value(_FakeJobsResource_5(
this,
Invocation.method(
#defaultJobs,
[],
),
)),
) as _i19.Future<_i6.JobsResource>);
@override
_i19.Future<List<_i15.BuilderStatistic>> listBuilderStatistic(
String? projectId, {
int? limit = 100,
String? bucket = r'prod',
}) =>
(super.noSuchMethod(
Invocation.method(
#listBuilderStatistic,
[projectId],
{
#limit: limit,
#bucket: bucket,
},
),
returnValue: _i19.Future<List<_i15.BuilderStatistic>>.value(<_i15.BuilderStatistic>[]),
) as _i19.Future<List<_i15.BuilderStatistic>>);
@override
_i19.Future<List<_i15.BuilderRecord>> listRecentBuildRecordsForBuilder(
String? projectId, {
String? builder,
int? limit,
}) =>
(super.noSuchMethod(
Invocation.method(
#listRecentBuildRecordsForBuilder,
[projectId],
{
#builder: builder,
#limit: limit,
},
),
returnValue: _i19.Future<List<_i15.BuilderRecord>>.value(<_i15.BuilderRecord>[]),
) as _i19.Future<List<_i15.BuilderRecord>>);
}
/// A class which mocks [BranchService].
///
/// See the documentation for Mockito's code generation for more information.
class MockBranchService extends _i1.Mock implements _i23.BranchService {
MockBranchService() {
_i1.throwOnMissingStub(this);
}
@override
_i3.Config get config => (super.noSuchMethod(
Invocation.getter(#config),
returnValue: _FakeConfig_1(
this,
Invocation.getter(#config),
),
) as _i3.Config);
@override
_i7.GerritService get gerritService => (super.noSuchMethod(
Invocation.getter(#gerritService),
returnValue: _FakeGerritService_6(
this,
Invocation.getter(#gerritService),
),
) as _i7.GerritService);
@override
_i26.RetryOptions get retryOptions => (super.noSuchMethod(
Invocation.getter(#retryOptions),
returnValue: _i27.dummyValue<_i26.RetryOptions>(
this,
Invocation.getter(#retryOptions),
),
) as _i26.RetryOptions);
@override
_i19.Future<void> branchFlutterRecipes(
String? branch,
String? engineSha,
) =>
(super.noSuchMethod(
Invocation.method(
#branchFlutterRecipes,
[
branch,
engineSha,
],
),
returnValue: _i19.Future<void>.value(),
returnValueForMissingStub: _i19.Future<void>.value(),
) as _i19.Future<void>);
@override
_i19.Future<List<Map<String, String>>> getReleaseBranches({
required _i16.GithubService? githubService,
required _i13.RepositorySlug? slug,
}) =>
(super.noSuchMethod(
Invocation.method(
#getReleaseBranches,
[],
{
#githubService: githubService,
#slug: slug,
},
),
returnValue: _i19.Future<List<Map<String, String>>>.value(<Map<String, String>>[]),
) as _i19.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 _i23.BuildBucketClient {
MockBuildBucketClient() {
_i1.throwOnMissingStub(this);
}
@override
String get buildBucketBuildUri => (super.noSuchMethod(
Invocation.getter(#buildBucketBuildUri),
returnValue: '',
) as String);
@override
String get buildBucketBuilderUri => (super.noSuchMethod(
Invocation.getter(#buildBucketBuilderUri),
returnValue: '',
) as String);
@override
_i2.Client get httpClient => (super.noSuchMethod(
Invocation.getter(#httpClient),
returnValue: _FakeClient_0(
this,
Invocation.getter(#httpClient),
),
) as _i2.Client);
@override
_i19.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: _i19.Future<_i8.Build>.value(_FakeBuild_7(
this,
Invocation.method(
#scheduleBuild,
[request],
{#buildBucketUri: buildBucketUri},
),
)),
) as _i19.Future<_i8.Build>);
@override
_i19.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: _i19.Future<_i8.SearchBuildsResponse>.value(_FakeSearchBuildsResponse_8(
this,
Invocation.method(
#searchBuilds,
[request],
{#buildBucketUri: buildBucketUri},
),
)),
) as _i19.Future<_i8.SearchBuildsResponse>);
@override
_i19.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: _i19.Future<_i8.BatchResponse>.value(_FakeBatchResponse_9(
this,
Invocation.method(
#batch,
[request],
{#buildBucketUri: buildBucketUri},
),
)),
) as _i19.Future<_i8.BatchResponse>);
@override
_i19.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: _i19.Future<_i8.Build>.value(_FakeBuild_7(
this,
Invocation.method(
#cancelBuild,
[request],
{#buildBucketUri: buildBucketUri},
),
)),
) as _i19.Future<_i8.Build>);
@override
_i19.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: _i19.Future<_i8.Build>.value(_FakeBuild_7(
this,
Invocation.method(
#getBuild,
[request],
{#buildBucketUri: buildBucketUri},
),
)),
) as _i19.Future<_i8.Build>);
@override
_i19.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: _i19.Future<_i8.ListBuildersResponse>.value(_FakeListBuildersResponse_10(
this,
Invocation.method(
#listBuilders,
[request],
{#buildBucketUri: buildBucketUri},
),
)),
) as _i19.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 _i28.CommitService {
MockCommitService() {
_i1.throwOnMissingStub(this);
}
@override
_i3.Config get config => (super.noSuchMethod(
Invocation.getter(#config),
returnValue: _FakeConfig_1(
this,
Invocation.getter(#config),
),
) as _i3.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
_i19.Future<void> handleCreateGithubRequest(_i29.CreateEvent? createEvent) => (super.noSuchMethod(
Invocation.method(
#handleCreateGithubRequest,
[createEvent],
),
returnValue: _i19.Future<void>.value(),
returnValueForMissingStub: _i19.Future<void>.value(),
) as _i19.Future<void>);
@override
_i19.Future<void> handlePushGithubRequest(Map<String, dynamic>? pushEvent) => (super.noSuchMethod(
Invocation.method(
#handlePushGithubRequest,
[pushEvent],
),
returnValue: _i19.Future<void>.value(),
returnValueForMissingStub: _i19.Future<void>.value(),
) as _i19.Future<void>);
}
/// A class which mocks [Config].
///
/// See the documentation for Mockito's code generation for more information.
class MockConfig extends _i1.Mock implements _i3.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: '',
) as String);
@override
_i10.Logging get loggingService => (super.noSuchMethod(
Invocation.getter(#loggingService),
returnValue: _FakeLogging_12(
this,
Invocation.getter(#loggingService),
),
) as _i10.Logging);
@override
_i19.Future<String> get githubPrivateKey => (super.noSuchMethod(
Invocation.getter(#githubPrivateKey),
returnValue: _i19.Future<String>.value(''),
) as _i19.Future<String>);
@override
_i19.Future<String> get overrideTreeStatusLabel => (super.noSuchMethod(
Invocation.getter(#overrideTreeStatusLabel),
returnValue: _i19.Future<String>.value(''),
) as _i19.Future<String>);
@override
_i19.Future<String> get githubPublicKey => (super.noSuchMethod(
Invocation.getter(#githubPublicKey),
returnValue: _i19.Future<String>.value(''),
) as _i19.Future<String>);
@override
_i19.Future<String> get githubAppId => (super.noSuchMethod(
Invocation.getter(#githubAppId),
returnValue: _i19.Future<String>.value(''),
) as _i19.Future<String>);
@override
_i19.Future<Map<String, dynamic>> get githubAppInstallations => (super.noSuchMethod(
Invocation.getter(#githubAppInstallations),
returnValue: _i19.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
) as _i19.Future<Map<String, dynamic>>);
@override
String get defaultRecipeBundleRef => (super.noSuchMethod(
Invocation.getter(#defaultRecipeBundleRef),
returnValue: '',
) 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
_i19.Future<List<String>> get releaseAccounts => (super.noSuchMethod(
Invocation.getter(#releaseAccounts),
returnValue: _i19.Future<List<String>>.value(<String>[]),
) as _i19.Future<List<String>>);
@override
_i19.Future<String> get oauthClientId => (super.noSuchMethod(
Invocation.getter(#oauthClientId),
returnValue: _i19.Future<String>.value(''),
) as _i19.Future<String>);
@override
_i19.Future<String> get frobWebhookKey => (super.noSuchMethod(
Invocation.getter(#frobWebhookKey),
returnValue: _i19.Future<String>.value(''),
) as _i19.Future<String>);
@override
_i19.Future<String> get githubOAuthToken => (super.noSuchMethod(
Invocation.getter(#githubOAuthToken),
returnValue: _i19.Future<String>.value(''),
) as _i19.Future<String>);
@override
String get wrongBaseBranchPullRequestMessage => (super.noSuchMethod(
Invocation.getter(#wrongBaseBranchPullRequestMessage),
returnValue: '',
) as String);
@override
String get releaseBranchPullRequestMessage => (super.noSuchMethod(
Invocation.getter(#releaseBranchPullRequestMessage),
returnValue: '',
) as String);
@override
_i19.Future<String> get webhookKey => (super.noSuchMethod(
Invocation.getter(#webhookKey),
returnValue: _i19.Future<String>.value(''),
) as _i19.Future<String>);
@override
String get mergeConflictPullRequestMessage => (super.noSuchMethod(
Invocation.getter(#mergeConflictPullRequestMessage),
returnValue: '',
) as String);
@override
String get missingTestsPullRequestMessage => (super.noSuchMethod(
Invocation.getter(#missingTestsPullRequestMessage),
returnValue: '',
) as String);
@override
String get flutterGoldPending => (super.noSuchMethod(
Invocation.getter(#flutterGoldPending),
returnValue: '',
) as String);
@override
String get flutterGoldSuccess => (super.noSuchMethod(
Invocation.getter(#flutterGoldSuccess),
returnValue: '',
) as String);
@override
String get flutterGoldChanges => (super.noSuchMethod(
Invocation.getter(#flutterGoldChanges),
returnValue: '',
) as String);
@override
String get flutterGoldStalePR => (super.noSuchMethod(
Invocation.getter(#flutterGoldStalePR),
returnValue: '',
) as String);
@override
String get flutterGoldDraftChange => (super.noSuchMethod(
Invocation.getter(#flutterGoldDraftChange),
returnValue: '',
) as String);
@override
int get maxTaskRetries => (super.noSuchMethod(
Invocation.getter(#maxTaskRetries),
returnValue: 0,
) as int);
@override
int get maxLuciTaskRetries => (super.noSuchMethod(
Invocation.getter(#maxLuciTaskRetries),
returnValue: 0,
) as int);
@override
int get commitNumber => (super.noSuchMethod(
Invocation.getter(#commitNumber),
returnValue: 0,
) as int);
@override
_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: '',
) as String);
@override
String get flutterBuildDescription => (super.noSuchMethod(
Invocation.getter(#flutterBuildDescription),
returnValue: '',
) as String);
@override
String get waitingForTreeToGoGreenLabelName => (super.noSuchMethod(
Invocation.getter(#waitingForTreeToGoGreenLabelName),
returnValue: '',
) as String);
@override
Set<String> get rollerAccounts => (super.noSuchMethod(
Invocation.getter(#rollerAccounts),
returnValue: <String>{},
) as Set<String>);
@override
_i19.Future<Iterable<_i30.Branch>> getBranches(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#getBranches,
[slug],
),
returnValue: _i19.Future<Iterable<_i30.Branch>>.value(<_i30.Branch>[]),
) as _i19.Future<Iterable<_i30.Branch>>);
@override
String wrongHeadBranchPullRequestMessage(String? branch) => (super.noSuchMethod(
Invocation.method(
#wrongHeadBranchPullRequestMessage,
[branch],
),
returnValue: '',
) as String);
@override
String flutterGoldInitialAlert(String? url) => (super.noSuchMethod(
Invocation.method(
#flutterGoldInitialAlert,
[url],
),
returnValue: '',
) as String);
@override
String flutterGoldFollowUpAlert(String? url) => (super.noSuchMethod(
Invocation.method(
#flutterGoldFollowUpAlert,
[url],
),
returnValue: '',
) as String);
@override
String flutterGoldAlertConstant(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#flutterGoldAlertConstant,
[slug],
),
returnValue: '',
) as String);
@override
String flutterGoldCommentID(_i13.PullRequest? pr) => (super.noSuchMethod(
Invocation.method(
#flutterGoldCommentID,
[pr],
),
returnValue: '',
) as String);
@override
_i19.Future<String> generateJsonWebToken() => (super.noSuchMethod(
Invocation.method(
#generateJsonWebToken,
[],
),
returnValue: _i19.Future<String>.value(''),
) as _i19.Future<String>);
@override
_i19.Future<String> generateGithubToken(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#generateGithubToken,
[slug],
),
returnValue: _i19.Future<String>.value(''),
) as _i19.Future<String>);
@override
_i19.Future<_i13.GitHub> createGitHubClient({
_i13.PullRequest? pullRequest,
_i13.RepositorySlug? slug,
}) =>
(super.noSuchMethod(
Invocation.method(
#createGitHubClient,
[],
{
#pullRequest: pullRequest,
#slug: slug,
},
),
returnValue: _i19.Future<_i13.GitHub>.value(_FakeGitHub_16(
this,
Invocation.method(
#createGitHubClient,
[],
{
#pullRequest: pullRequest,
#slug: slug,
},
),
)),
) as _i19.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
_i19.Future<_i14.GraphQLClient> createGitHubGraphQLClient() => (super.noSuchMethod(
Invocation.method(
#createGitHubGraphQLClient,
[],
),
returnValue: _i19.Future<_i14.GraphQLClient>.value(_FakeGraphQLClient_17(
this,
Invocation.method(
#createGitHubGraphQLClient,
[],
),
)),
) as _i19.Future<_i14.GraphQLClient>);
@override
_i19.Future<_i15.BigqueryService> createBigQueryService() => (super.noSuchMethod(
Invocation.method(
#createBigQueryService,
[],
),
returnValue: _i19.Future<_i15.BigqueryService>.value(_FakeBigqueryService_18(
this,
Invocation.method(
#createBigQueryService,
[],
),
)),
) as _i19.Future<_i15.BigqueryService>);
@override
_i19.Future<_i6.TabledataResource> createTabledataResourceApi() => (super.noSuchMethod(
Invocation.method(
#createTabledataResourceApi,
[],
),
returnValue: _i19.Future<_i6.TabledataResource>.value(_FakeTabledataResource_4(
this,
Invocation.method(
#createTabledataResourceApi,
[],
),
)),
) as _i19.Future<_i6.TabledataResource>);
@override
_i19.Future<_i16.GithubService> createDefaultGitHubService() => (super.noSuchMethod(
Invocation.method(
#createDefaultGitHubService,
[],
),
returnValue: _i19.Future<_i16.GithubService>.value(_FakeGithubService_19(
this,
Invocation.method(
#createDefaultGitHubService,
[],
),
)),
) as _i19.Future<_i16.GithubService>);
@override
_i19.Future<_i16.GithubService> createGithubService(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#createGithubService,
[slug],
),
returnValue: _i19.Future<_i16.GithubService>.value(_FakeGithubService_19(
this,
Invocation.method(
#createGithubService,
[slug],
),
)),
) as _i19.Future<_i16.GithubService>);
@override
_i16.GithubService createGithubServiceWithToken(String? token) => (super.noSuchMethod(
Invocation.method(
#createGithubServiceWithToken,
[token],
),
returnValue: _FakeGithubService_19(
this,
Invocation.method(
#createGithubServiceWithToken,
[token],
),
),
) as _i16.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
_i26.RetryOptions get retryOptions => (super.noSuchMethod(
Invocation.getter(#retryOptions),
returnValue: _i27.dummyValue<_i26.RetryOptions>(
this,
Invocation.getter(#retryOptions),
),
) as _i26.RetryOptions);
@override
_i19.Stream<_i31.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: _i19.Stream<_i31.Commit>.empty(),
) as _i19.Stream<_i31.Commit>);
@override
_i19.Stream<_i30.Branch> queryBranches() => (super.noSuchMethod(
Invocation.method(
#queryBranches,
[],
),
returnValue: _i19.Stream<_i30.Branch>.empty(),
) as _i19.Stream<_i30.Branch>);
@override
_i19.Stream<_i32.Task> queryRecentTasksByName({
int? limit = 100,
required String? name,
}) =>
(super.noSuchMethod(
Invocation.method(
#queryRecentTasksByName,
[],
{
#limit: limit,
#name: name,
},
),
returnValue: _i19.Stream<_i32.Task>.empty(),
) as _i19.Stream<_i32.Task>);
@override
_i19.Stream<_i32.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: _i19.Stream<_i32.FullTask>.empty(),
) as _i19.Stream<_i32.FullTask>);
@override
_i19.Future<List<_i33.Stage>> queryTasksGroupedByStage(_i31.Commit? commit) => (super.noSuchMethod(
Invocation.method(
#queryTasksGroupedByStage,
[commit],
),
returnValue: _i19.Future<List<_i33.Stage>>.value(<_i33.Stage>[]),
) as _i19.Future<List<_i33.Stage>>);
@override
_i19.Future<_i17.GithubBuildStatusUpdate> queryLastStatusUpdate(
_i13.RepositorySlug? slug,
_i13.PullRequest? pr,
) =>
(super.noSuchMethod(
Invocation.method(
#queryLastStatusUpdate,
[
slug,
pr,
],
),
returnValue: _i19.Future<_i17.GithubBuildStatusUpdate>.value(_FakeGithubBuildStatusUpdate_20(
this,
Invocation.method(
#queryLastStatusUpdate,
[
slug,
pr,
],
),
)),
) as _i19.Future<_i17.GithubBuildStatusUpdate>);
@override
_i19.Future<_i18.GithubGoldStatusUpdate> queryLastGoldUpdate(
_i13.RepositorySlug? slug,
_i13.PullRequest? pr,
) =>
(super.noSuchMethod(
Invocation.method(
#queryLastGoldUpdate,
[
slug,
pr,
],
),
returnValue: _i19.Future<_i18.GithubGoldStatusUpdate>.value(_FakeGithubGoldStatusUpdate_21(
this,
Invocation.method(
#queryLastGoldUpdate,
[
slug,
pr,
],
),
)),
) as _i19.Future<_i18.GithubGoldStatusUpdate>);
@override
_i19.Future<List<List<_i11.Model<dynamic>>>> shard(List<_i11.Model<dynamic>>? rows) => (super.noSuchMethod(
Invocation.method(
#shard,
[rows],
),
returnValue: _i19.Future<List<List<_i11.Model<dynamic>>>>.value(<List<_i11.Model<dynamic>>>[]),
) as _i19.Future<List<List<_i11.Model<dynamic>>>>);
@override
_i19.Future<void> insert(List<_i11.Model<dynamic>>? rows) => (super.noSuchMethod(
Invocation.method(
#insert,
[rows],
),
returnValue: _i19.Future<void>.value(),
returnValueForMissingStub: _i19.Future<void>.value(),
) as _i19.Future<void>);
@override
_i19.Future<List<T?>> lookupByKey<T extends _i11.Model<dynamic>>(List<_i11.Key<dynamic>>? keys) =>
(super.noSuchMethod(
Invocation.method(
#lookupByKey,
[keys],
),
returnValue: _i19.Future<List<T?>>.value(<T?>[]),
) as _i19.Future<List<T?>>);
@override
_i19.Future<T> lookupByValue<T extends _i11.Model<dynamic>>(
_i11.Key<dynamic>? key, {
T Function()? orElse,
}) =>
(super.noSuchMethod(
Invocation.method(
#lookupByValue,
[key],
{#orElse: orElse},
),
returnValue: _i27.ifNotNull(
_i27.dummyValueOrNull<T>(
this,
Invocation.method(
#lookupByValue,
[key],
{#orElse: orElse},
),
),
(T v) => _i19.Future<T>.value(v),
) ??
_FakeFuture_22<T>(
this,
Invocation.method(
#lookupByValue,
[key],
{#orElse: orElse},
),
),
) as _i19.Future<T>);
@override
_i19.Future<T?> withTransaction<T>(_i19.Future<T> Function(_i11.Transaction)? handler) => (super.noSuchMethod(
Invocation.method(
#withTransaction,
[handler],
),
returnValue: _i19.Future<T?>.value(),
) as _i19.Future<T?>);
@override
_i19.Future<_i32.Task?> getTaskFromBuildbucketBuild(
_i8.Build? build, {
String? customName,
}) =>
(super.noSuchMethod(
Invocation.method(
#getTaskFromBuildbucketBuild,
[build],
{#customName: customName},
),
returnValue: _i19.Future<_i32.Task?>.value(),
) as _i19.Future<_i32.Task?>);
}
/// A class which mocks [FakeEntry].
///
/// See the documentation for Mockito's code generation for more information.
class MockFakeEntry extends _i1.Mock implements _i34.FakeEntry {
MockFakeEntry() {
_i1.throwOnMissingStub(this);
}
@override
_i35.Uint8List get value => (super.noSuchMethod(
Invocation.getter(#value),
returnValue: _i35.Uint8List(0),
) as _i35.Uint8List);
@override
set value(_i35.Uint8List? _value) => super.noSuchMethod(
Invocation.setter(
#value,
_value,
),
returnValueForMissingStub: null,
);
@override
_i19.Future<_i35.Uint8List> get([
_i19.Future<_i35.Uint8List?> Function()? create,
Duration? ttl,
]) =>
(super.noSuchMethod(
Invocation.method(
#get,
[
create,
ttl,
],
),
returnValue: _i19.Future<_i35.Uint8List>.value(_i35.Uint8List(0)),
) as _i19.Future<_i35.Uint8List>);
@override
_i19.Future<void> purge({int? retries = 0}) => (super.noSuchMethod(
Invocation.method(
#purge,
[],
{#retries: retries},
),
returnValue: _i19.Future<void>.value(),
returnValueForMissingStub: _i19.Future<void>.value(),
) as _i19.Future<void>);
@override
_i19.Future<_i35.Uint8List?> set(
_i35.Uint8List? value, [
Duration? ttl,
]) =>
(super.noSuchMethod(
Invocation.method(
#set,
[
value,
ttl,
],
),
returnValue: _i19.Future<_i35.Uint8List?>.value(),
) as _i19.Future<_i35.Uint8List?>);
}
/// 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
_i19.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: _i19.Stream<_i13.Issue>.empty(),
) as _i19.Stream<_i13.Issue>);
@override
_i19.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: _i19.Stream<_i13.Issue>.empty(),
) as _i19.Stream<_i13.Issue>);
@override
_i19.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: _i19.Stream<_i13.Issue>.empty(),
) as _i19.Stream<_i13.Issue>);
@override
_i19.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: _i19.Stream<_i13.Issue>.empty(),
) as _i19.Stream<_i13.Issue>);
@override
_i19.Stream<_i13.Reaction> listReactions(
_i13.RepositorySlug? slug,
int? issueNumber, {
_i13.ReactionType? content,
}) =>
(super.noSuchMethod(
Invocation.method(
#listReactions,
[
slug,
issueNumber,
],
{#content: content},
),
returnValue: _i19.Stream<_i13.Reaction>.empty(),
) as _i19.Stream<_i13.Reaction>);
@override
_i19.Future<_i13.Issue> edit(
_i13.RepositorySlug? slug,
int? issueNumber,
_i13.IssueRequest? issue,
) =>
(super.noSuchMethod(
Invocation.method(
#edit,
[
slug,
issueNumber,
issue,
],
),
returnValue: _i19.Future<_i13.Issue>.value(_FakeIssue_23(
this,
Invocation.method(
#edit,
[
slug,
issueNumber,
issue,
],
),
)),
) as _i19.Future<_i13.Issue>);
@override
_i19.Future<_i13.Issue> get(
_i13.RepositorySlug? slug,
int? issueNumber,
) =>
(super.noSuchMethod(
Invocation.method(
#get,
[
slug,
issueNumber,
],
),
returnValue: _i19.Future<_i13.Issue>.value(_FakeIssue_23(
this,
Invocation.method(
#get,
[
slug,
issueNumber,
],
),
)),
) as _i19.Future<_i13.Issue>);
@override
_i19.Future<_i13.Issue> create(
_i13.RepositorySlug? slug,
_i13.IssueRequest? issue,
) =>
(super.noSuchMethod(
Invocation.method(
#create,
[
slug,
issue,
],
),
returnValue: _i19.Future<_i13.Issue>.value(_FakeIssue_23(
this,
Invocation.method(
#create,
[
slug,
issue,
],
),
)),
) as _i19.Future<_i13.Issue>);
@override
_i19.Stream<_i13.User> listAssignees(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listAssignees,
[slug],
),
returnValue: _i19.Stream<_i13.User>.empty(),
) as _i19.Stream<_i13.User>);
@override
_i19.Future<bool> isAssignee(
_i13.RepositorySlug? slug,
String? repoName,
) =>
(super.noSuchMethod(
Invocation.method(
#isAssignee,
[
slug,
repoName,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Stream<_i13.IssueComment> listCommentsByIssue(
_i13.RepositorySlug? slug,
int? issueNumber,
) =>
(super.noSuchMethod(
Invocation.method(
#listCommentsByIssue,
[
slug,
issueNumber,
],
),
returnValue: _i19.Stream<_i13.IssueComment>.empty(),
) as _i19.Stream<_i13.IssueComment>);
@override
_i19.Stream<_i13.IssueComment> listCommentsByRepo(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listCommentsByRepo,
[slug],
),
returnValue: _i19.Stream<_i13.IssueComment>.empty(),
) as _i19.Stream<_i13.IssueComment>);
@override
_i19.Future<_i13.IssueComment> getComment(
_i13.RepositorySlug? slug,
int? id,
) =>
(super.noSuchMethod(
Invocation.method(
#getComment,
[
slug,
id,
],
),
returnValue: _i19.Future<_i13.IssueComment>.value(_FakeIssueComment_24(
this,
Invocation.method(
#getComment,
[
slug,
id,
],
),
)),
) as _i19.Future<_i13.IssueComment>);
@override
_i19.Future<_i13.IssueComment> createComment(
_i13.RepositorySlug? slug,
int? issueNumber,
String? body,
) =>
(super.noSuchMethod(
Invocation.method(
#createComment,
[
slug,
issueNumber,
body,
],
),
returnValue: _i19.Future<_i13.IssueComment>.value(_FakeIssueComment_24(
this,
Invocation.method(
#createComment,
[
slug,
issueNumber,
body,
],
),
)),
) as _i19.Future<_i13.IssueComment>);
@override
_i19.Future<_i13.IssueComment> updateComment(
_i13.RepositorySlug? slug,
int? id,
String? body,
) =>
(super.noSuchMethod(
Invocation.method(
#updateComment,
[
slug,
id,
body,
],
),
returnValue: _i19.Future<_i13.IssueComment>.value(_FakeIssueComment_24(
this,
Invocation.method(
#updateComment,
[
slug,
id,
body,
],
),
)),
) as _i19.Future<_i13.IssueComment>);
@override
_i19.Future<bool> deleteComment(
_i13.RepositorySlug? slug,
int? id,
) =>
(super.noSuchMethod(
Invocation.method(
#deleteComment,
[
slug,
id,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Stream<_i13.IssueLabel> listLabels(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listLabels,
[slug],
),
returnValue: _i19.Stream<_i13.IssueLabel>.empty(),
) as _i19.Stream<_i13.IssueLabel>);
@override
_i19.Future<_i13.IssueLabel> getLabel(
_i13.RepositorySlug? slug,
String? name,
) =>
(super.noSuchMethod(
Invocation.method(
#getLabel,
[
slug,
name,
],
),
returnValue: _i19.Future<_i13.IssueLabel>.value(_FakeIssueLabel_25(
this,
Invocation.method(
#getLabel,
[
slug,
name,
],
),
)),
) as _i19.Future<_i13.IssueLabel>);
@override
_i19.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: _i19.Future<_i13.IssueLabel>.value(_FakeIssueLabel_25(
this,
Invocation.method(
#createLabel,
[
slug,
name,
],
{
#color: color,
#description: description,
},
),
)),
) as _i19.Future<_i13.IssueLabel>);
@override
_i19.Future<_i13.IssueLabel> editLabel(
_i13.RepositorySlug? slug,
String? name,
String? color,
) =>
(super.noSuchMethod(
Invocation.method(
#editLabel,
[
slug,
name,
color,
],
),
returnValue: _i19.Future<_i13.IssueLabel>.value(_FakeIssueLabel_25(
this,
Invocation.method(
#editLabel,
[
slug,
name,
color,
],
),
)),
) as _i19.Future<_i13.IssueLabel>);
@override
_i19.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: _i19.Future<_i13.IssueLabel>.value(_FakeIssueLabel_25(
this,
Invocation.method(
#updateLabel,
[
slug,
name,
],
{
#newName: newName,
#color: color,
#description: description,
},
),
)),
) as _i19.Future<_i13.IssueLabel>);
@override
_i19.Future<bool> deleteLabel(
_i13.RepositorySlug? slug,
String? name,
) =>
(super.noSuchMethod(
Invocation.method(
#deleteLabel,
[
slug,
name,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Stream<_i13.IssueLabel> listLabelsByIssue(
_i13.RepositorySlug? slug,
int? issueNumber,
) =>
(super.noSuchMethod(
Invocation.method(
#listLabelsByIssue,
[
slug,
issueNumber,
],
),
returnValue: _i19.Stream<_i13.IssueLabel>.empty(),
) as _i19.Stream<_i13.IssueLabel>);
@override
_i19.Future<List<_i13.IssueLabel>> addLabelsToIssue(
_i13.RepositorySlug? slug,
int? issueNumber,
List<String>? labels,
) =>
(super.noSuchMethod(
Invocation.method(
#addLabelsToIssue,
[
slug,
issueNumber,
labels,
],
),
returnValue: _i19.Future<List<_i13.IssueLabel>>.value(<_i13.IssueLabel>[]),
) as _i19.Future<List<_i13.IssueLabel>>);
@override
_i19.Future<List<_i13.IssueLabel>> replaceLabelsForIssue(
_i13.RepositorySlug? slug,
int? issueNumber,
List<String>? labels,
) =>
(super.noSuchMethod(
Invocation.method(
#replaceLabelsForIssue,
[
slug,
issueNumber,
labels,
],
),
returnValue: _i19.Future<List<_i13.IssueLabel>>.value(<_i13.IssueLabel>[]),
) as _i19.Future<List<_i13.IssueLabel>>);
@override
_i19.Future<bool> removeLabelForIssue(
_i13.RepositorySlug? slug,
int? issueNumber,
String? label,
) =>
(super.noSuchMethod(
Invocation.method(
#removeLabelForIssue,
[
slug,
issueNumber,
label,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Future<bool> removeAllLabelsForIssue(
_i13.RepositorySlug? slug,
int? issueNumber,
) =>
(super.noSuchMethod(
Invocation.method(
#removeAllLabelsForIssue,
[
slug,
issueNumber,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Stream<_i13.Milestone> listMilestones(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listMilestones,
[slug],
),
returnValue: _i19.Stream<_i13.Milestone>.empty(),
) as _i19.Stream<_i13.Milestone>);
@override
_i19.Future<_i13.Milestone> createMilestone(
_i13.RepositorySlug? slug,
_i13.CreateMilestone? request,
) =>
(super.noSuchMethod(
Invocation.method(
#createMilestone,
[
slug,
request,
],
),
returnValue: _i19.Future<_i13.Milestone>.value(_FakeMilestone_26(
this,
Invocation.method(
#createMilestone,
[
slug,
request,
],
),
)),
) as _i19.Future<_i13.Milestone>);
@override
_i19.Future<bool> deleteMilestone(
_i13.RepositorySlug? slug,
int? number,
) =>
(super.noSuchMethod(
Invocation.method(
#deleteMilestone,
[
slug,
number,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Stream<_i13.TimelineEvent> listTimeline(
_i13.RepositorySlug? slug,
int? issueNumber,
) =>
(super.noSuchMethod(
Invocation.method(
#listTimeline,
[
slug,
issueNumber,
],
),
returnValue: _i19.Stream<_i13.TimelineEvent>.empty(),
) as _i19.Stream<_i13.TimelineEvent>);
@override
_i19.Future<void> lock(
_i13.RepositorySlug? slug,
int? number, {
String? lockReason,
}) =>
(super.noSuchMethod(
Invocation.method(
#lock,
[
slug,
number,
],
{#lockReason: lockReason},
),
returnValue: _i19.Future<void>.value(),
returnValueForMissingStub: _i19.Future<void>.value(),
) as _i19.Future<void>);
@override
_i19.Future<void> unlock(
_i13.RepositorySlug? slug,
int? number,
) =>
(super.noSuchMethod(
Invocation.method(
#unlock,
[
slug,
number,
],
),
returnValue: _i19.Future<void>.value(),
returnValueForMissingStub: _i19.Future<void>.value(),
) as _i19.Future<void>);
}
/// A class which mocks [GithubChecksService].
///
/// See the documentation for Mockito's code generation for more information.
class MockGithubChecksService extends _i1.Mock implements _i23.GithubChecksService {
MockGithubChecksService() {
_i1.throwOnMissingStub(this);
}
@override
_i3.Config get config => (super.noSuchMethod(
Invocation.getter(#config),
returnValue: _FakeConfig_1(
this,
Invocation.getter(#config),
),
) as _i3.Config);
@override
set config(_i3.Config? _config) => super.noSuchMethod(
Invocation.setter(
#config,
_config,
),
returnValueForMissingStub: null,
);
@override
_i20.GithubChecksUtil get githubChecksUtil => (super.noSuchMethod(
Invocation.getter(#githubChecksUtil),
returnValue: _FakeGithubChecksUtil_27(
this,
Invocation.getter(#githubChecksUtil),
),
) as _i20.GithubChecksUtil);
@override
set githubChecksUtil(_i20.GithubChecksUtil? _githubChecksUtil) => super.noSuchMethod(
Invocation.setter(
#githubChecksUtil,
_githubChecksUtil,
),
returnValueForMissingStub: null,
);
@override
_i19.Future<void> handleCheckSuite(
_i13.PullRequest? pullRequest,
_i29.CheckSuiteEvent? checkSuiteEvent,
_i23.Scheduler? scheduler,
) =>
(super.noSuchMethod(
Invocation.method(
#handleCheckSuite,
[
pullRequest,
checkSuiteEvent,
scheduler,
],
),
returnValue: _i19.Future<void>.value(),
returnValueForMissingStub: _i19.Future<void>.value(),
) as _i19.Future<void>);
@override
_i19.Future<bool> updateCheckStatus(
_i36.BuildPushMessage? buildPushMessage,
_i23.LuciBuildService? luciBuildService,
_i13.RepositorySlug? slug, {
bool? rescheduled = false,
}) =>
(super.noSuchMethod(
Invocation.method(
#updateCheckStatus,
[
buildPushMessage,
luciBuildService,
slug,
],
{#rescheduled: rescheduled},
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
bool taskFailed(_i36.BuildPushMessage? buildPushMessage) => (super.noSuchMethod(
Invocation.method(
#taskFailed,
[buildPushMessage],
),
returnValue: false,
) as bool);
@override
int currentAttempt(_i36.BuildPushMessage? buildPushMessage) => (super.noSuchMethod(
Invocation.method(
#currentAttempt,
[buildPushMessage],
),
returnValue: 0,
) as int);
@override
String getGithubSummary(String? summary) => (super.noSuchMethod(
Invocation.method(
#getGithubSummary,
[summary],
),
returnValue: '',
) as String);
@override
_i13.CheckRunConclusion conclusionForResult(_i36.Result? result) => (super.noSuchMethod(
Invocation.method(
#conclusionForResult,
[result],
),
returnValue: _FakeCheckRunConclusion_28(
this,
Invocation.method(
#conclusionForResult,
[result],
),
),
) as _i13.CheckRunConclusion);
@override
_i13.CheckRunStatus statusForResult(_i36.Status? status) => (super.noSuchMethod(
Invocation.method(
#statusForResult,
[status],
),
returnValue: _FakeCheckRunStatus_29(
this,
Invocation.method(
#statusForResult,
[status],
),
),
) as _i13.CheckRunStatus);
@override
_i19.Future<_i13.PullRequest?> findMatchingPullRequest(
_i13.RepositorySlug? slug,
String? headSha,
int? checkSuiteId,
) =>
(super.noSuchMethod(
Invocation.method(
#findMatchingPullRequest,
[
slug,
headSha,
checkSuiteId,
],
),
returnValue: _i19.Future<_i13.PullRequest?>.value(),
) as _i19.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 _i20.GithubChecksUtil {
MockGithubChecksUtil() {
_i1.throwOnMissingStub(this);
}
@override
_i19.Future<Map<String, _i13.CheckRun>> allCheckRuns(
_i13.GitHub? gitHubClient,
_i29.CheckSuiteEvent? checkSuiteEvent,
) =>
(super.noSuchMethod(
Invocation.method(
#allCheckRuns,
[
gitHubClient,
checkSuiteEvent,
],
),
returnValue: _i19.Future<Map<String, _i13.CheckRun>>.value(<String, _i13.CheckRun>{}),
) as _i19.Future<Map<String, _i13.CheckRun>>);
@override
_i19.Future<_i13.CheckSuite> getCheckSuite(
_i13.GitHub? gitHubClient,
_i13.RepositorySlug? slug,
int? checkSuiteId,
) =>
(super.noSuchMethod(
Invocation.method(
#getCheckSuite,
[
gitHubClient,
slug,
checkSuiteId,
],
),
returnValue: _i19.Future<_i13.CheckSuite>.value(_FakeCheckSuite_30(
this,
Invocation.method(
#getCheckSuite,
[
gitHubClient,
slug,
checkSuiteId,
],
),
)),
) as _i19.Future<_i13.CheckSuite>);
@override
_i19.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: _i19.Future<List<_i13.CheckSuite>>.value(<_i13.CheckSuite>[]),
) as _i19.Future<List<_i13.CheckSuite>>);
@override
_i19.Future<void> updateCheckRun(
_i3.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: _i19.Future<void>.value(),
returnValueForMissingStub: _i19.Future<void>.value(),
) as _i19.Future<void>);
@override
_i19.Future<_i13.CheckRun> getCheckRun(
_i3.Config? config,
_i13.RepositorySlug? slug,
int? id,
) =>
(super.noSuchMethod(
Invocation.method(
#getCheckRun,
[
config,
slug,
id,
],
),
returnValue: _i19.Future<_i13.CheckRun>.value(_FakeCheckRun_31(
this,
Invocation.method(
#getCheckRun,
[
config,
slug,
id,
],
),
)),
) as _i19.Future<_i13.CheckRun>);
@override
_i19.Future<_i13.CheckRun> createCheckRun(
_i3.Config? config,
_i13.RepositorySlug? slug,
String? sha,
String? name, {
_i13.CheckRunOutput? output,
}) =>
(super.noSuchMethod(
Invocation.method(
#createCheckRun,
[
config,
slug,
sha,
name,
],
{#output: output},
),
returnValue: _i19.Future<_i13.CheckRun>.value(_FakeCheckRun_31(
this,
Invocation.method(
#createCheckRun,
[
config,
slug,
sha,
name,
],
{#output: output},
),
)),
) as _i19.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 _i16.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
_i19.Future<List<_i13.RepositoryCommit>> listBranchedCommits(
_i13.RepositorySlug? slug,
String? branch,
int? lastCommitTimestampMills,
) =>
(super.noSuchMethod(
Invocation.method(
#listBranchedCommits,
[
slug,
branch,
lastCommitTimestampMills,
],
),
returnValue: _i19.Future<List<_i13.RepositoryCommit>>.value(<_i13.RepositoryCommit>[]),
) as _i19.Future<List<_i13.RepositoryCommit>>);
@override
_i19.Future<List<_i13.PullRequest>> listPullRequests(
_i13.RepositorySlug? slug,
String? branch,
) =>
(super.noSuchMethod(
Invocation.method(
#listPullRequests,
[
slug,
branch,
],
),
returnValue: _i19.Future<List<_i13.PullRequest>>.value(<_i13.PullRequest>[]),
) as _i19.Future<List<_i13.PullRequest>>);
@override
_i19.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: _i19.Future<_i13.PullRequest>.value(_FakePullRequest_32(
this,
Invocation.method(
#createPullRequest,
[slug],
{
#title: title,
#body: body,
#commitMessage: commitMessage,
#baseRef: baseRef,
#entries: entries,
},
),
)),
) as _i19.Future<_i13.PullRequest>);
@override
_i19.Future<void> assignReviewer(
_i13.RepositorySlug? slug, {
int? pullRequestNumber,
String? reviewer,
}) =>
(super.noSuchMethod(
Invocation.method(
#assignReviewer,
[slug],
{
#pullRequestNumber: pullRequestNumber,
#reviewer: reviewer,
},
),
returnValue: _i19.Future<void>.value(),
returnValueForMissingStub: _i19.Future<void>.value(),
) as _i19.Future<void>);
@override
_i19.Future<List<_i13.IssueLabel>> addIssueLabels(
_i13.RepositorySlug? slug,
int? issueNumber,
List<String>? labels,
) =>
(super.noSuchMethod(
Invocation.method(
#addIssueLabels,
[
slug,
issueNumber,
labels,
],
),
returnValue: _i19.Future<List<_i13.IssueLabel>>.value(<_i13.IssueLabel>[]),
) as _i19.Future<List<_i13.IssueLabel>>);
@override
_i19.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: _i19.Future<List<_i13.Issue>>.value(<_i13.Issue>[]),
) as _i19.Future<List<_i13.Issue>>);
@override
_i19.Future<_i13.Issue>? getIssue(
_i13.RepositorySlug? slug, {
required int? issueNumber,
}) =>
(super.noSuchMethod(Invocation.method(
#getIssue,
[slug],
{#issueNumber: issueNumber},
)) as _i19.Future<_i13.Issue>?);
@override
_i19.Future<void> assignIssue(
_i13.RepositorySlug? slug, {
required int? issueNumber,
required String? assignee,
}) =>
(super.noSuchMethod(
Invocation.method(
#assignIssue,
[slug],
{
#issueNumber: issueNumber,
#assignee: assignee,
},
),
returnValue: _i19.Future<void>.value(),
returnValueForMissingStub: _i19.Future<void>.value(),
) as _i19.Future<void>);
@override
_i19.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: _i19.Future<_i13.Issue>.value(_FakeIssue_23(
this,
Invocation.method(
#createIssue,
[slug],
{
#title: title,
#body: body,
#labels: labels,
#assignee: assignee,
},
),
)),
) as _i19.Future<_i13.Issue>);
@override
_i19.Future<_i13.IssueComment?> createComment(
_i13.RepositorySlug? slug, {
required int? issueNumber,
required String? body,
}) =>
(super.noSuchMethod(
Invocation.method(
#createComment,
[slug],
{
#issueNumber: issueNumber,
#body: body,
},
),
returnValue: _i19.Future<_i13.IssueComment?>.value(),
) as _i19.Future<_i13.IssueComment?>);
@override
_i19.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: _i19.Future<List<_i13.IssueLabel>>.value(<_i13.IssueLabel>[]),
) as _i19.Future<List<_i13.IssueLabel>>);
@override
_i19.Future<List<String>> listFiles(_i13.PullRequest? pullRequest) => (super.noSuchMethod(
Invocation.method(
#listFiles,
[pullRequest],
),
returnValue: _i19.Future<List<String>>.value(<String>[]),
) as _i19.Future<List<String>>);
@override
_i19.Future<String> getFileContent(
_i13.RepositorySlug? slug,
String? path, {
String? ref,
}) =>
(super.noSuchMethod(
Invocation.method(
#getFileContent,
[
slug,
path,
],
{#ref: ref},
),
returnValue: _i19.Future<String>.value(''),
) as _i19.Future<String>);
@override
_i19.Future<_i13.GitReference> getReference(
_i13.RepositorySlug? slug,
String? ref,
) =>
(super.noSuchMethod(
Invocation.method(
#getReference,
[
slug,
ref,
],
),
returnValue: _i19.Future<_i13.GitReference>.value(_FakeGitReference_33(
this,
Invocation.method(
#getReference,
[
slug,
ref,
],
),
)),
) as _i19.Future<_i13.GitReference>);
@override
_i19.Future<_i13.RateLimit> getRateLimit() => (super.noSuchMethod(
Invocation.method(
#getRateLimit,
[],
),
returnValue: _i19.Future<_i13.RateLimit>.value(_FakeRateLimit_34(
this,
Invocation.method(
#getRateLimit,
[],
),
)),
) as _i19.Future<_i13.RateLimit>);
@override
_i19.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: _i19.Future<List<_i13.Issue>>.value(<_i13.Issue>[]),
) as _i19.Future<List<_i13.Issue>>);
@override
_i19.Future<_i13.PullRequest> getPullRequest(
_i13.RepositorySlug? slug,
int? number,
) =>
(super.noSuchMethod(
Invocation.method(
#getPullRequest,
[
slug,
number,
],
),
returnValue: _i19.Future<_i13.PullRequest>.value(_FakePullRequest_32(
this,
Invocation.method(
#getPullRequest,
[
slug,
number,
],
),
)),
) as _i19.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
_i19.Future<_i13.GitBlob> getBlob(
_i13.RepositorySlug? slug,
String? sha,
) =>
(super.noSuchMethod(
Invocation.method(
#getBlob,
[
slug,
sha,
],
),
returnValue: _i19.Future<_i13.GitBlob>.value(_FakeGitBlob_35(
this,
Invocation.method(
#getBlob,
[
slug,
sha,
],
),
)),
) as _i19.Future<_i13.GitBlob>);
@override
_i19.Future<_i13.GitBlob> createBlob(
_i13.RepositorySlug? slug,
_i13.CreateGitBlob? blob,
) =>
(super.noSuchMethod(
Invocation.method(
#createBlob,
[
slug,
blob,
],
),
returnValue: _i19.Future<_i13.GitBlob>.value(_FakeGitBlob_35(
this,
Invocation.method(
#createBlob,
[
slug,
blob,
],
),
)),
) as _i19.Future<_i13.GitBlob>);
@override
_i19.Future<_i13.GitCommit> getCommit(
_i13.RepositorySlug? slug,
String? sha,
) =>
(super.noSuchMethod(
Invocation.method(
#getCommit,
[
slug,
sha,
],
),
returnValue: _i19.Future<_i13.GitCommit>.value(_FakeGitCommit_36(
this,
Invocation.method(
#getCommit,
[
slug,
sha,
],
),
)),
) as _i19.Future<_i13.GitCommit>);
@override
_i19.Future<_i13.GitCommit> createCommit(
_i13.RepositorySlug? slug,
_i13.CreateGitCommit? commit,
) =>
(super.noSuchMethod(
Invocation.method(
#createCommit,
[
slug,
commit,
],
),
returnValue: _i19.Future<_i13.GitCommit>.value(_FakeGitCommit_36(
this,
Invocation.method(
#createCommit,
[
slug,
commit,
],
),
)),
) as _i19.Future<_i13.GitCommit>);
@override
_i19.Future<_i13.GitReference> getReference(
_i13.RepositorySlug? slug,
String? ref,
) =>
(super.noSuchMethod(
Invocation.method(
#getReference,
[
slug,
ref,
],
),
returnValue: _i19.Future<_i13.GitReference>.value(_FakeGitReference_33(
this,
Invocation.method(
#getReference,
[
slug,
ref,
],
),
)),
) as _i19.Future<_i13.GitReference>);
@override
_i19.Stream<_i13.GitReference> listReferences(
_i13.RepositorySlug? slug, {
String? type,
}) =>
(super.noSuchMethod(
Invocation.method(
#listReferences,
[slug],
{#type: type},
),
returnValue: _i19.Stream<_i13.GitReference>.empty(),
) as _i19.Stream<_i13.GitReference>);
@override
_i19.Future<_i13.GitReference> createReference(
_i13.RepositorySlug? slug,
String? ref,
String? sha,
) =>
(super.noSuchMethod(
Invocation.method(
#createReference,
[
slug,
ref,
sha,
],
),
returnValue: _i19.Future<_i13.GitReference>.value(_FakeGitReference_33(
this,
Invocation.method(
#createReference,
[
slug,
ref,
sha,
],
),
)),
) as _i19.Future<_i13.GitReference>);
@override
_i19.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: _i19.Future<_i13.GitReference>.value(_FakeGitReference_33(
this,
Invocation.method(
#editReference,
[
slug,
ref,
sha,
],
{#force: force},
),
)),
) as _i19.Future<_i13.GitReference>);
@override
_i19.Future<bool> deleteReference(
_i13.RepositorySlug? slug,
String? ref,
) =>
(super.noSuchMethod(
Invocation.method(
#deleteReference,
[
slug,
ref,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Future<_i13.GitTag> getTag(
_i13.RepositorySlug? slug,
String? sha,
) =>
(super.noSuchMethod(
Invocation.method(
#getTag,
[
slug,
sha,
],
),
returnValue: _i19.Future<_i13.GitTag>.value(_FakeGitTag_37(
this,
Invocation.method(
#getTag,
[
slug,
sha,
],
),
)),
) as _i19.Future<_i13.GitTag>);
@override
_i19.Future<_i13.GitTag> createTag(
_i13.RepositorySlug? slug,
_i13.CreateGitTag? tag,
) =>
(super.noSuchMethod(
Invocation.method(
#createTag,
[
slug,
tag,
],
),
returnValue: _i19.Future<_i13.GitTag>.value(_FakeGitTag_37(
this,
Invocation.method(
#createTag,
[
slug,
tag,
],
),
)),
) as _i19.Future<_i13.GitTag>);
@override
_i19.Future<_i13.GitTree> getTree(
_i13.RepositorySlug? slug,
String? sha, {
bool? recursive = false,
}) =>
(super.noSuchMethod(
Invocation.method(
#getTree,
[
slug,
sha,
],
{#recursive: recursive},
),
returnValue: _i19.Future<_i13.GitTree>.value(_FakeGitTree_38(
this,
Invocation.method(
#getTree,
[
slug,
sha,
],
{#recursive: recursive},
),
)),
) as _i19.Future<_i13.GitTree>);
@override
_i19.Future<_i13.GitTree> createTree(
_i13.RepositorySlug? slug,
_i13.CreateGitTree? tree,
) =>
(super.noSuchMethod(
Invocation.method(
#createTree,
[
slug,
tree,
],
),
returnValue: _i19.Future<_i13.GitTree>.value(_FakeGitTree_38(
this,
Invocation.method(
#createTree,
[
slug,
tree,
],
),
)),
) as _i19.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_39(
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_40(
this,
Invocation.getter(#link),
),
) as _i14.Link);
@override
_i14.GraphQLCache get cache => (super.noSuchMethod(
Invocation.getter(#cache),
returnValue: _FakeGraphQLCache_41(
this,
Invocation.getter(#cache),
),
) as _i14.GraphQLCache);
@override
_i14.QueryManager get queryManager => (super.noSuchMethod(
Invocation.getter(#queryManager),
returnValue: _FakeQueryManager_42(
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_43<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_43<TParsed>(
this,
Invocation.method(
#watchMutation,
[options],
),
),
) as _i14.ObservableQuery<TParsed>);
@override
_i19.Future<_i14.QueryResult<TParsed>> query<TParsed>(_i14.QueryOptions<TParsed>? options) => (super.noSuchMethod(
Invocation.method(
#query,
[options],
),
returnValue: _i19.Future<_i14.QueryResult<TParsed>>.value(_FakeQueryResult_44<TParsed>(
this,
Invocation.method(
#query,
[options],
),
)),
) as _i19.Future<_i14.QueryResult<TParsed>>);
@override
_i19.Future<_i14.QueryResult<TParsed>> mutate<TParsed>(_i14.MutationOptions<TParsed>? options) => (super.noSuchMethod(
Invocation.method(
#mutate,
[options],
),
returnValue: _i19.Future<_i14.QueryResult<TParsed>>.value(_FakeQueryResult_44<TParsed>(
this,
Invocation.method(
#mutate,
[options],
),
)),
) as _i19.Future<_i14.QueryResult<TParsed>>);
@override
_i19.Stream<_i14.QueryResult<TParsed>> subscribe<TParsed>(_i14.SubscriptionOptions<TParsed>? options) =>
(super.noSuchMethod(
Invocation.method(
#subscribe,
[options],
),
returnValue: _i19.Stream<_i14.QueryResult<TParsed>>.empty(),
) as _i19.Stream<_i14.QueryResult<TParsed>>);
@override
_i19.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: _i19.Future<_i14.QueryResult<TParsed>>.value(_FakeQueryResult_44<TParsed>(
this,
Invocation.method(
#fetchMore,
[fetchMoreOptions],
{
#originalOptions: originalOptions,
#previousResult: previousResult,
},
),
)),
) as _i19.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
_i19.Future<List<_i14.QueryResult<Object?>?>>? resetStore({bool? refetchQueries = true}) =>
(super.noSuchMethod(Invocation.method(
#resetStore,
[],
{#refetchQueries: refetchQueries},
)) as _i19.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 _i21.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(
_i19.Future<bool> Function(
Uri,
String,
String?,
)? f) =>
super.noSuchMethod(
Invocation.setter(
#authenticate,
f,
),
returnValueForMissingStub: null,
);
@override
set connectionFactory(
_i19.Future<_i21.ConnectionTask<_i21.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(
_i19.Future<bool> Function(
String,
int,
String,
String?,
)? f) =>
super.noSuchMethod(
Invocation.setter(
#authenticateProxy,
f,
),
returnValueForMissingStub: null,
);
@override
set badCertificateCallback(
bool Function(
_i21.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
_i19.Future<_i21.HttpClientRequest> open(
String? method,
String? host,
int? port,
String? path,
) =>
(super.noSuchMethod(
Invocation.method(
#open,
[
method,
host,
port,
path,
],
),
returnValue: _i19.Future<_i21.HttpClientRequest>.value(_FakeHttpClientRequest_45(
this,
Invocation.method(
#open,
[
method,
host,
port,
path,
],
),
)),
) as _i19.Future<_i21.HttpClientRequest>);
@override
_i19.Future<_i21.HttpClientRequest> openUrl(
String? method,
Uri? url,
) =>
(super.noSuchMethod(
Invocation.method(
#openUrl,
[
method,
url,
],
),
returnValue: _i19.Future<_i21.HttpClientRequest>.value(_FakeHttpClientRequest_45(
this,
Invocation.method(
#openUrl,
[
method,
url,
],
),
)),
) as _i19.Future<_i21.HttpClientRequest>);
@override
_i19.Future<_i21.HttpClientRequest> get(
String? host,
int? port,
String? path,
) =>
(super.noSuchMethod(
Invocation.method(
#get,
[
host,
port,
path,
],
),
returnValue: _i19.Future<_i21.HttpClientRequest>.value(_FakeHttpClientRequest_45(
this,
Invocation.method(
#get,
[
host,
port,
path,
],
),
)),
) as _i19.Future<_i21.HttpClientRequest>);
@override
_i19.Future<_i21.HttpClientRequest> getUrl(Uri? url) => (super.noSuchMethod(
Invocation.method(
#getUrl,
[url],
),
returnValue: _i19.Future<_i21.HttpClientRequest>.value(_FakeHttpClientRequest_45(
this,
Invocation.method(
#getUrl,
[url],
),
)),
) as _i19.Future<_i21.HttpClientRequest>);
@override
_i19.Future<_i21.HttpClientRequest> post(
String? host,
int? port,
String? path,
) =>
(super.noSuchMethod(
Invocation.method(
#post,
[
host,
port,
path,
],
),
returnValue: _i19.Future<_i21.HttpClientRequest>.value(_FakeHttpClientRequest_45(
this,
Invocation.method(
#post,
[
host,
port,
path,
],
),
)),
) as _i19.Future<_i21.HttpClientRequest>);
@override
_i19.Future<_i21.HttpClientRequest> postUrl(Uri? url) => (super.noSuchMethod(
Invocation.method(
#postUrl,
[url],
),
returnValue: _i19.Future<_i21.HttpClientRequest>.value(_FakeHttpClientRequest_45(
this,
Invocation.method(
#postUrl,
[url],
),
)),
) as _i19.Future<_i21.HttpClientRequest>);
@override
_i19.Future<_i21.HttpClientRequest> put(
String? host,
int? port,
String? path,
) =>
(super.noSuchMethod(
Invocation.method(
#put,
[
host,
port,
path,
],
),
returnValue: _i19.Future<_i21.HttpClientRequest>.value(_FakeHttpClientRequest_45(
this,
Invocation.method(
#put,
[
host,
port,
path,
],
),
)),
) as _i19.Future<_i21.HttpClientRequest>);
@override
_i19.Future<_i21.HttpClientRequest> putUrl(Uri? url) => (super.noSuchMethod(
Invocation.method(
#putUrl,
[url],
),
returnValue: _i19.Future<_i21.HttpClientRequest>.value(_FakeHttpClientRequest_45(
this,
Invocation.method(
#putUrl,
[url],
),
)),
) as _i19.Future<_i21.HttpClientRequest>);
@override
_i19.Future<_i21.HttpClientRequest> delete(
String? host,
int? port,
String? path,
) =>
(super.noSuchMethod(
Invocation.method(
#delete,
[
host,
port,
path,
],
),
returnValue: _i19.Future<_i21.HttpClientRequest>.value(_FakeHttpClientRequest_45(
this,
Invocation.method(
#delete,
[
host,
port,
path,
],
),
)),
) as _i19.Future<_i21.HttpClientRequest>);
@override
_i19.Future<_i21.HttpClientRequest> deleteUrl(Uri? url) => (super.noSuchMethod(
Invocation.method(
#deleteUrl,
[url],
),
returnValue: _i19.Future<_i21.HttpClientRequest>.value(_FakeHttpClientRequest_45(
this,
Invocation.method(
#deleteUrl,
[url],
),
)),
) as _i19.Future<_i21.HttpClientRequest>);
@override
_i19.Future<_i21.HttpClientRequest> patch(
String? host,
int? port,
String? path,
) =>
(super.noSuchMethod(
Invocation.method(
#patch,
[
host,
port,
path,
],
),
returnValue: _i19.Future<_i21.HttpClientRequest>.value(_FakeHttpClientRequest_45(
this,
Invocation.method(
#patch,
[
host,
port,
path,
],
),
)),
) as _i19.Future<_i21.HttpClientRequest>);
@override
_i19.Future<_i21.HttpClientRequest> patchUrl(Uri? url) => (super.noSuchMethod(
Invocation.method(
#patchUrl,
[url],
),
returnValue: _i19.Future<_i21.HttpClientRequest>.value(_FakeHttpClientRequest_45(
this,
Invocation.method(
#patchUrl,
[url],
),
)),
) as _i19.Future<_i21.HttpClientRequest>);
@override
_i19.Future<_i21.HttpClientRequest> head(
String? host,
int? port,
String? path,
) =>
(super.noSuchMethod(
Invocation.method(
#head,
[
host,
port,
path,
],
),
returnValue: _i19.Future<_i21.HttpClientRequest>.value(_FakeHttpClientRequest_45(
this,
Invocation.method(
#head,
[
host,
port,
path,
],
),
)),
) as _i19.Future<_i21.HttpClientRequest>);
@override
_i19.Future<_i21.HttpClientRequest> headUrl(Uri? url) => (super.noSuchMethod(
Invocation.method(
#headUrl,
[url],
),
returnValue: _i19.Future<_i21.HttpClientRequest>.value(_FakeHttpClientRequest_45(
this,
Invocation.method(
#headUrl,
[url],
),
)),
) as _i19.Future<_i21.HttpClientRequest>);
@override
void addCredentials(
Uri? url,
String? realm,
_i21.HttpClientCredentials? credentials,
) =>
super.noSuchMethod(
Invocation.method(
#addCredentials,
[
url,
realm,
credentials,
],
),
returnValueForMissingStub: null,
);
@override
void addProxyCredentials(
String? host,
int? port,
String? realm,
_i21.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 _i21.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: '',
) as String);
@override
Uri get uri => (super.noSuchMethod(
Invocation.getter(#uri),
returnValue: _FakeUri_46(
this,
Invocation.getter(#uri),
),
) as Uri);
@override
_i21.HttpHeaders get headers => (super.noSuchMethod(
Invocation.getter(#headers),
returnValue: _FakeHttpHeaders_47(
this,
Invocation.getter(#headers),
),
) as _i21.HttpHeaders);
@override
List<_i21.Cookie> get cookies => (super.noSuchMethod(
Invocation.getter(#cookies),
returnValue: <_i21.Cookie>[],
) as List<_i21.Cookie>);
@override
_i19.Future<_i21.HttpClientResponse> get done => (super.noSuchMethod(
Invocation.getter(#done),
returnValue: _i19.Future<_i21.HttpClientResponse>.value(_FakeHttpClientResponse_48(
this,
Invocation.getter(#done),
)),
) as _i19.Future<_i21.HttpClientResponse>);
@override
_i22.Encoding get encoding => (super.noSuchMethod(
Invocation.getter(#encoding),
returnValue: _FakeEncoding_49(
this,
Invocation.getter(#encoding),
),
) as _i22.Encoding);
@override
set encoding(_i22.Encoding? _encoding) => super.noSuchMethod(
Invocation.setter(
#encoding,
_encoding,
),
returnValueForMissingStub: null,
);
@override
_i19.Future<_i21.HttpClientResponse> close() => (super.noSuchMethod(
Invocation.method(
#close,
[],
),
returnValue: _i19.Future<_i21.HttpClientResponse>.value(_FakeHttpClientResponse_48(
this,
Invocation.method(
#close,
[],
),
)),
) as _i19.Future<_i21.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
_i19.Future<dynamic> addStream(_i19.Stream<List<int>>? stream) => (super.noSuchMethod(
Invocation.method(
#addStream,
[stream],
),
returnValue: _i19.Future<dynamic>.value(),
) as _i19.Future<dynamic>);
@override
_i19.Future<dynamic> flush() => (super.noSuchMethod(
Invocation.method(
#flush,
[],
),
returnValue: _i19.Future<dynamic>.value(),
) as _i19.Future<dynamic>);
}
/// A class which mocks [HttpClientResponse].
///
/// See the documentation for Mockito's code generation for more information.
class MockHttpClientResponse extends _i1.Mock implements _i21.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: '',
) as String);
@override
int get contentLength => (super.noSuchMethod(
Invocation.getter(#contentLength),
returnValue: 0,
) as int);
@override
_i21.HttpClientResponseCompressionState get compressionState => (super.noSuchMethod(
Invocation.getter(#compressionState),
returnValue: _i21.HttpClientResponseCompressionState.notCompressed,
) as _i21.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<_i21.RedirectInfo> get redirects => (super.noSuchMethod(
Invocation.getter(#redirects),
returnValue: <_i21.RedirectInfo>[],
) as List<_i21.RedirectInfo>);
@override
_i21.HttpHeaders get headers => (super.noSuchMethod(
Invocation.getter(#headers),
returnValue: _FakeHttpHeaders_47(
this,
Invocation.getter(#headers),
),
) as _i21.HttpHeaders);
@override
List<_i21.Cookie> get cookies => (super.noSuchMethod(
Invocation.getter(#cookies),
returnValue: <_i21.Cookie>[],
) as List<_i21.Cookie>);
@override
bool get isBroadcast => (super.noSuchMethod(
Invocation.getter(#isBroadcast),
returnValue: false,
) as bool);
@override
_i19.Future<int> get length => (super.noSuchMethod(
Invocation.getter(#length),
returnValue: _i19.Future<int>.value(0),
) as _i19.Future<int>);
@override
_i19.Future<bool> get isEmpty => (super.noSuchMethod(
Invocation.getter(#isEmpty),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Future<List<int>> get first => (super.noSuchMethod(
Invocation.getter(#first),
returnValue: _i19.Future<List<int>>.value(<int>[]),
) as _i19.Future<List<int>>);
@override
_i19.Future<List<int>> get last => (super.noSuchMethod(
Invocation.getter(#last),
returnValue: _i19.Future<List<int>>.value(<int>[]),
) as _i19.Future<List<int>>);
@override
_i19.Future<List<int>> get single => (super.noSuchMethod(
Invocation.getter(#single),
returnValue: _i19.Future<List<int>>.value(<int>[]),
) as _i19.Future<List<int>>);
@override
_i19.Future<_i21.HttpClientResponse> redirect([
String? method,
Uri? url,
bool? followLoops,
]) =>
(super.noSuchMethod(
Invocation.method(
#redirect,
[
method,
url,
followLoops,
],
),
returnValue: _i19.Future<_i21.HttpClientResponse>.value(_FakeHttpClientResponse_48(
this,
Invocation.method(
#redirect,
[
method,
url,
followLoops,
],
),
)),
) as _i19.Future<_i21.HttpClientResponse>);
@override
_i19.Future<_i21.Socket> detachSocket() => (super.noSuchMethod(
Invocation.method(
#detachSocket,
[],
),
returnValue: _i19.Future<_i21.Socket>.value(_FakeSocket_50(
this,
Invocation.method(
#detachSocket,
[],
),
)),
) as _i19.Future<_i21.Socket>);
@override
_i19.Stream<List<int>> asBroadcastStream({
void Function(_i19.StreamSubscription<List<int>>)? onListen,
void Function(_i19.StreamSubscription<List<int>>)? onCancel,
}) =>
(super.noSuchMethod(
Invocation.method(
#asBroadcastStream,
[],
{
#onListen: onListen,
#onCancel: onCancel,
},
),
returnValue: _i19.Stream<List<int>>.empty(),
) as _i19.Stream<List<int>>);
@override
_i19.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_51<List<int>>(
this,
Invocation.method(
#listen,
[onData],
{
#onError: onError,
#onDone: onDone,
#cancelOnError: cancelOnError,
},
),
),
) as _i19.StreamSubscription<List<int>>);
@override
_i19.Stream<List<int>> where(bool Function(List<int>)? test) => (super.noSuchMethod(
Invocation.method(
#where,
[test],
),
returnValue: _i19.Stream<List<int>>.empty(),
) as _i19.Stream<List<int>>);
@override
_i19.Stream<S> map<S>(S Function(List<int>)? convert) => (super.noSuchMethod(
Invocation.method(
#map,
[convert],
),
returnValue: _i19.Stream<S>.empty(),
) as _i19.Stream<S>);
@override
_i19.Stream<E> asyncMap<E>(_i19.FutureOr<E> Function(List<int>)? convert) => (super.noSuchMethod(
Invocation.method(
#asyncMap,
[convert],
),
returnValue: _i19.Stream<E>.empty(),
) as _i19.Stream<E>);
@override
_i19.Stream<E> asyncExpand<E>(_i19.Stream<E>? Function(List<int>)? convert) => (super.noSuchMethod(
Invocation.method(
#asyncExpand,
[convert],
),
returnValue: _i19.Stream<E>.empty(),
) as _i19.Stream<E>);
@override
_i19.Stream<List<int>> handleError(
Function? onError, {
bool Function(dynamic)? test,
}) =>
(super.noSuchMethod(
Invocation.method(
#handleError,
[onError],
{#test: test},
),
returnValue: _i19.Stream<List<int>>.empty(),
) as _i19.Stream<List<int>>);
@override
_i19.Stream<S> expand<S>(Iterable<S> Function(List<int>)? convert) => (super.noSuchMethod(
Invocation.method(
#expand,
[convert],
),
returnValue: _i19.Stream<S>.empty(),
) as _i19.Stream<S>);
@override
_i19.Future<dynamic> pipe(_i19.StreamConsumer<List<int>>? streamConsumer) => (super.noSuchMethod(
Invocation.method(
#pipe,
[streamConsumer],
),
returnValue: _i19.Future<dynamic>.value(),
) as _i19.Future<dynamic>);
@override
_i19.Stream<S> transform<S>(_i19.StreamTransformer<List<int>, S>? streamTransformer) => (super.noSuchMethod(
Invocation.method(
#transform,
[streamTransformer],
),
returnValue: _i19.Stream<S>.empty(),
) as _i19.Stream<S>);
@override
_i19.Future<List<int>> reduce(
List<int> Function(
List<int>,
List<int>,
)? combine) =>
(super.noSuchMethod(
Invocation.method(
#reduce,
[combine],
),
returnValue: _i19.Future<List<int>>.value(<int>[]),
) as _i19.Future<List<int>>);
@override
_i19.Future<S> fold<S>(
S? initialValue,
S Function(
S,
List<int>,
)? combine,
) =>
(super.noSuchMethod(
Invocation.method(
#fold,
[
initialValue,
combine,
],
),
returnValue: _i27.ifNotNull(
_i27.dummyValueOrNull<S>(
this,
Invocation.method(
#fold,
[
initialValue,
combine,
],
),
),
(S v) => _i19.Future<S>.value(v),
) ??
_FakeFuture_22<S>(
this,
Invocation.method(
#fold,
[
initialValue,
combine,
],
),
),
) as _i19.Future<S>);
@override
_i19.Future<String> join([String? separator = r'']) => (super.noSuchMethod(
Invocation.method(
#join,
[separator],
),
returnValue: _i19.Future<String>.value(''),
) as _i19.Future<String>);
@override
_i19.Future<bool> contains(Object? needle) => (super.noSuchMethod(
Invocation.method(
#contains,
[needle],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Future<void> forEach(void Function(List<int>)? action) => (super.noSuchMethod(
Invocation.method(
#forEach,
[action],
),
returnValue: _i19.Future<void>.value(),
returnValueForMissingStub: _i19.Future<void>.value(),
) as _i19.Future<void>);
@override
_i19.Future<bool> every(bool Function(List<int>)? test) => (super.noSuchMethod(
Invocation.method(
#every,
[test],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Future<bool> any(bool Function(List<int>)? test) => (super.noSuchMethod(
Invocation.method(
#any,
[test],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Stream<R> cast<R>() => (super.noSuchMethod(
Invocation.method(
#cast,
[],
),
returnValue: _i19.Stream<R>.empty(),
) as _i19.Stream<R>);
@override
_i19.Future<List<List<int>>> toList() => (super.noSuchMethod(
Invocation.method(
#toList,
[],
),
returnValue: _i19.Future<List<List<int>>>.value(<List<int>>[]),
) as _i19.Future<List<List<int>>>);
@override
_i19.Future<Set<List<int>>> toSet() => (super.noSuchMethod(
Invocation.method(
#toSet,
[],
),
returnValue: _i19.Future<Set<List<int>>>.value(<List<int>>{}),
) as _i19.Future<Set<List<int>>>);
@override
_i19.Future<E> drain<E>([E? futureValue]) => (super.noSuchMethod(
Invocation.method(
#drain,
[futureValue],
),
returnValue: _i27.ifNotNull(
_i27.dummyValueOrNull<E>(
this,
Invocation.method(
#drain,
[futureValue],
),
),
(E v) => _i19.Future<E>.value(v),
) ??
_FakeFuture_22<E>(
this,
Invocation.method(
#drain,
[futureValue],
),
),
) as _i19.Future<E>);
@override
_i19.Stream<List<int>> take(int? count) => (super.noSuchMethod(
Invocation.method(
#take,
[count],
),
returnValue: _i19.Stream<List<int>>.empty(),
) as _i19.Stream<List<int>>);
@override
_i19.Stream<List<int>> takeWhile(bool Function(List<int>)? test) => (super.noSuchMethod(
Invocation.method(
#takeWhile,
[test],
),
returnValue: _i19.Stream<List<int>>.empty(),
) as _i19.Stream<List<int>>);
@override
_i19.Stream<List<int>> skip(int? count) => (super.noSuchMethod(
Invocation.method(
#skip,
[count],
),
returnValue: _i19.Stream<List<int>>.empty(),
) as _i19.Stream<List<int>>);
@override
_i19.Stream<List<int>> skipWhile(bool Function(List<int>)? test) => (super.noSuchMethod(
Invocation.method(
#skipWhile,
[test],
),
returnValue: _i19.Stream<List<int>>.empty(),
) as _i19.Stream<List<int>>);
@override
_i19.Stream<List<int>> distinct(
[bool Function(
List<int>,
List<int>,
)? equals]) =>
(super.noSuchMethod(
Invocation.method(
#distinct,
[equals],
),
returnValue: _i19.Stream<List<int>>.empty(),
) as _i19.Stream<List<int>>);
@override
_i19.Future<List<int>> firstWhere(
bool Function(List<int>)? test, {
List<int> Function()? orElse,
}) =>
(super.noSuchMethod(
Invocation.method(
#firstWhere,
[test],
{#orElse: orElse},
),
returnValue: _i19.Future<List<int>>.value(<int>[]),
) as _i19.Future<List<int>>);
@override
_i19.Future<List<int>> lastWhere(
bool Function(List<int>)? test, {
List<int> Function()? orElse,
}) =>
(super.noSuchMethod(
Invocation.method(
#lastWhere,
[test],
{#orElse: orElse},
),
returnValue: _i19.Future<List<int>>.value(<int>[]),
) as _i19.Future<List<int>>);
@override
_i19.Future<List<int>> singleWhere(
bool Function(List<int>)? test, {
List<int> Function()? orElse,
}) =>
(super.noSuchMethod(
Invocation.method(
#singleWhere,
[test],
{#orElse: orElse},
),
returnValue: _i19.Future<List<int>>.value(<int>[]),
) as _i19.Future<List<int>>);
@override
_i19.Future<List<int>> elementAt(int? index) => (super.noSuchMethod(
Invocation.method(
#elementAt,
[index],
),
returnValue: _i19.Future<List<int>>.value(<int>[]),
) as _i19.Future<List<int>>);
@override
_i19.Stream<List<int>> timeout(
Duration? timeLimit, {
void Function(_i19.EventSink<List<int>>)? onTimeout,
}) =>
(super.noSuchMethod(
Invocation.method(
#timeout,
[timeLimit],
{#onTimeout: onTimeout},
),
returnValue: _i19.Stream<List<int>>.empty(),
) as _i19.Stream<List<int>>);
}
/// A class which mocks [JobsResource].
///
/// See the documentation for Mockito's code generation for more information.
class MockJobsResource extends _i1.Mock implements _i6.JobsResource {
MockJobsResource() {
_i1.throwOnMissingStub(this);
}
@override
_i19.Future<_i6.JobCancelResponse> cancel(
String? projectId,
String? jobId, {
String? location,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#cancel,
[
projectId,
jobId,
],
{
#location: location,
#$fields: $fields,
},
),
returnValue: _i19.Future<_i6.JobCancelResponse>.value(_FakeJobCancelResponse_52(
this,
Invocation.method(
#cancel,
[
projectId,
jobId,
],
{
#location: location,
#$fields: $fields,
},
),
)),
) as _i19.Future<_i6.JobCancelResponse>);
@override
_i19.Future<void> delete(
String? projectId,
String? jobId, {
String? location,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#delete,
[
projectId,
jobId,
],
{
#location: location,
#$fields: $fields,
},
),
returnValue: _i19.Future<void>.value(),
returnValueForMissingStub: _i19.Future<void>.value(),
) as _i19.Future<void>);
@override
_i19.Future<_i6.Job> get(
String? projectId,
String? jobId, {
String? location,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#get,
[
projectId,
jobId,
],
{
#location: location,
#$fields: $fields,
},
),
returnValue: _i19.Future<_i6.Job>.value(_FakeJob_53(
this,
Invocation.method(
#get,
[
projectId,
jobId,
],
{
#location: location,
#$fields: $fields,
},
),
)),
) as _i19.Future<_i6.Job>);
@override
_i19.Future<_i6.GetQueryResultsResponse> getQueryResults(
String? projectId,
String? jobId, {
String? location,
int? maxResults,
String? pageToken,
String? startIndex,
int? timeoutMs,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#getQueryResults,
[
projectId,
jobId,
],
{
#location: location,
#maxResults: maxResults,
#pageToken: pageToken,
#startIndex: startIndex,
#timeoutMs: timeoutMs,
#$fields: $fields,
},
),
returnValue: _i19.Future<_i6.GetQueryResultsResponse>.value(_FakeGetQueryResultsResponse_54(
this,
Invocation.method(
#getQueryResults,
[
projectId,
jobId,
],
{
#location: location,
#maxResults: maxResults,
#pageToken: pageToken,
#startIndex: startIndex,
#timeoutMs: timeoutMs,
#$fields: $fields,
},
),
)),
) as _i19.Future<_i6.GetQueryResultsResponse>);
@override
_i19.Future<_i6.Job> insert(
_i6.Job? request,
String? projectId, {
String? $fields,
_i6.UploadOptions? uploadOptions = _i6.UploadOptions.defaultOptions,
_i6.Media? uploadMedia,
}) =>
(super.noSuchMethod(
Invocation.method(
#insert,
[
request,
projectId,
],
{
#$fields: $fields,
#uploadOptions: uploadOptions,
#uploadMedia: uploadMedia,
},
),
returnValue: _i19.Future<_i6.Job>.value(_FakeJob_53(
this,
Invocation.method(
#insert,
[
request,
projectId,
],
{
#$fields: $fields,
#uploadOptions: uploadOptions,
#uploadMedia: uploadMedia,
},
),
)),
) as _i19.Future<_i6.Job>);
@override
_i19.Future<_i6.JobList> list(
String? projectId, {
bool? allUsers,
String? maxCreationTime,
int? maxResults,
String? minCreationTime,
String? pageToken,
String? parentJobId,
String? projection,
List<String>? stateFilter,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#list,
[projectId],
{
#allUsers: allUsers,
#maxCreationTime: maxCreationTime,
#maxResults: maxResults,
#minCreationTime: minCreationTime,
#pageToken: pageToken,
#parentJobId: parentJobId,
#projection: projection,
#stateFilter: stateFilter,
#$fields: $fields,
},
),
returnValue: _i19.Future<_i6.JobList>.value(_FakeJobList_55(
this,
Invocation.method(
#list,
[projectId],
{
#allUsers: allUsers,
#maxCreationTime: maxCreationTime,
#maxResults: maxResults,
#minCreationTime: minCreationTime,
#pageToken: pageToken,
#parentJobId: parentJobId,
#projection: projection,
#stateFilter: stateFilter,
#$fields: $fields,
},
),
)),
) as _i19.Future<_i6.JobList>);
@override
_i19.Future<_i6.QueryResponse> query(
_i6.QueryRequest? request,
String? projectId, {
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#query,
[
request,
projectId,
],
{#$fields: $fields},
),
returnValue: _i19.Future<_i6.QueryResponse>.value(_FakeQueryResponse_56(
this,
Invocation.method(
#query,
[
request,
projectId,
],
{#$fields: $fields},
),
)),
) as _i19.Future<_i6.QueryResponse>);
}
/// A class which mocks [LuciBuildService].
///
/// See the documentation for Mockito's code generation for more information.
class MockLuciBuildService extends _i1.Mock implements _i23.LuciBuildService {
MockLuciBuildService() {
_i1.throwOnMissingStub(this);
}
@override
_i23.BuildBucketClient get buildBucketClient => (super.noSuchMethod(
Invocation.getter(#buildBucketClient),
returnValue: _FakeBuildBucketClient_57(
this,
Invocation.getter(#buildBucketClient),
),
) as _i23.BuildBucketClient);
@override
set buildBucketClient(_i23.BuildBucketClient? _buildBucketClient) => super.noSuchMethod(
Invocation.setter(
#buildBucketClient,
_buildBucketClient,
),
returnValueForMissingStub: null,
);
@override
_i23.CacheService get cache => (super.noSuchMethod(
Invocation.getter(#cache),
returnValue: _FakeCacheService_58(
this,
Invocation.getter(#cache),
),
) as _i23.CacheService);
@override
_i3.Config get config => (super.noSuchMethod(
Invocation.getter(#config),
returnValue: _FakeConfig_1(
this,
Invocation.getter(#config),
),
) as _i3.Config);
@override
set config(_i3.Config? _config) => super.noSuchMethod(
Invocation.setter(
#config,
_config,
),
returnValueForMissingStub: null,
);
@override
_i20.GithubChecksUtil get githubChecksUtil => (super.noSuchMethod(
Invocation.getter(#githubChecksUtil),
returnValue: _FakeGithubChecksUtil_27(
this,
Invocation.getter(#githubChecksUtil),
),
) as _i20.GithubChecksUtil);
@override
set githubChecksUtil(_i20.GithubChecksUtil? _githubChecksUtil) => super.noSuchMethod(
Invocation.setter(
#githubChecksUtil,
_githubChecksUtil,
),
returnValueForMissingStub: null,
);
@override
_i7.GerritService get gerritService => (super.noSuchMethod(
Invocation.getter(#gerritService),
returnValue: _FakeGerritService_6(
this,
Invocation.getter(#gerritService),
),
) as _i7.GerritService);
@override
set gerritService(_i7.GerritService? _gerritService) => super.noSuchMethod(
Invocation.setter(
#gerritService,
_gerritService,
),
returnValueForMissingStub: null,
);
@override
_i23.PubSub get pubsub => (super.noSuchMethod(
Invocation.getter(#pubsub),
returnValue: _FakePubSub_59(
this,
Invocation.getter(#pubsub),
),
) as _i23.PubSub);
@override
_i19.Future<List<List<_i8.Request>>> shard(
List<_i8.Request>? requests,
int? max,
) =>
(super.noSuchMethod(
Invocation.method(
#shard,
[
requests,
max,
],
),
returnValue: _i19.Future<List<List<_i8.Request>>>.value(<List<_i8.Request>>[]),
) as _i19.Future<List<List<_i8.Request>>>);
@override
_i19.Future<Iterable<_i8.Build>> getTryBuilds(
_i13.RepositorySlug? slug,
String? sha,
String? builderName,
) =>
(super.noSuchMethod(
Invocation.method(
#getTryBuilds,
[
slug,
sha,
builderName,
],
),
returnValue: _i19.Future<Iterable<_i8.Build>>.value(<_i8.Build>[]),
) as _i19.Future<Iterable<_i8.Build>>);
@override
_i19.Future<Iterable<_i8.Build>> getTryBuildsByPullRequest(_i13.PullRequest? pullRequest) => (super.noSuchMethod(
Invocation.method(
#getTryBuildsByPullRequest,
[pullRequest],
),
returnValue: _i19.Future<Iterable<_i8.Build>>.value(<_i8.Build>[]),
) as _i19.Future<Iterable<_i8.Build>>);
@override
_i19.Future<Iterable<_i8.Build>> getProdBuilds(
_i13.RepositorySlug? slug,
String? commitSha,
String? builderName,
) =>
(super.noSuchMethod(
Invocation.method(
#getProdBuilds,
[
slug,
commitSha,
builderName,
],
),
returnValue: _i19.Future<Iterable<_i8.Build>>.value(<_i8.Build>[]),
) as _i19.Future<Iterable<_i8.Build>>);
@override
_i19.Future<Iterable<_i8.Build>> getBuilds(
_i13.RepositorySlug? slug,
String? commitSha,
String? builderName,
String? bucket,
Map<String, List<String>>? tags,
) =>
(super.noSuchMethod(
Invocation.method(
#getBuilds,
[
slug,
commitSha,
builderName,
bucket,
tags,
],
),
returnValue: _i19.Future<Iterable<_i8.Build>>.value(<_i8.Build>[]),
) as _i19.Future<Iterable<_i8.Build>>);
@override
_i19.Future<List<_i37.Target>> scheduleTryBuilds({
required List<_i37.Target>? targets,
required _i13.PullRequest? pullRequest,
_i29.CheckSuiteEvent? checkSuiteEvent,
}) =>
(super.noSuchMethod(
Invocation.method(
#scheduleTryBuilds,
[],
{
#targets: targets,
#pullRequest: pullRequest,
#checkSuiteEvent: checkSuiteEvent,
},
),
returnValue: _i19.Future<List<_i37.Target>>.value(<_i37.Target>[]),
) as _i19.Future<List<_i37.Target>>);
@override
_i19.Future<void> cancelBuilds(
_i13.PullRequest? pullRequest,
String? reason,
) =>
(super.noSuchMethod(
Invocation.method(
#cancelBuilds,
[
pullRequest,
reason,
],
),
returnValue: _i19.Future<void>.value(),
returnValueForMissingStub: _i19.Future<void>.value(),
) as _i19.Future<void>);
@override
_i19.Future<List<_i8.Build?>> failedBuilds(
_i13.PullRequest? pullRequest,
List<_i37.Target>? targets,
) =>
(super.noSuchMethod(
Invocation.method(
#failedBuilds,
[
pullRequest,
targets,
],
),
returnValue: _i19.Future<List<_i8.Build?>>.value(<_i8.Build?>[]),
) as _i19.Future<List<_i8.Build?>>);
@override
_i19.Future<_i8.Build> rescheduleBuild({
required String? builderName,
required _i36.BuildPushMessage? buildPushMessage,
required int? rescheduleAttempt,
}) =>
(super.noSuchMethod(
Invocation.method(
#rescheduleBuild,
[],
{
#builderName: builderName,
#buildPushMessage: buildPushMessage,
#rescheduleAttempt: rescheduleAttempt,
},
),
returnValue: _i19.Future<_i8.Build>.value(_FakeBuild_7(
this,
Invocation.method(
#rescheduleBuild,
[],
{
#builderName: builderName,
#buildPushMessage: buildPushMessage,
#rescheduleAttempt: rescheduleAttempt,
},
),
)),
) as _i19.Future<_i8.Build>);
@override
_i19.Future<_i8.Build> reschedulePresubmitBuildUsingCheckRunEvent(_i38.CheckRunEvent? checkRunEvent) =>
(super.noSuchMethod(
Invocation.method(
#reschedulePresubmitBuildUsingCheckRunEvent,
[checkRunEvent],
),
returnValue: _i19.Future<_i8.Build>.value(_FakeBuild_7(
this,
Invocation.method(
#reschedulePresubmitBuildUsingCheckRunEvent,
[checkRunEvent],
),
)),
) as _i19.Future<_i8.Build>);
@override
_i19.Future<_i8.Build> reschedulePostsubmitBuildUsingCheckRunEvent(
_i38.CheckRunEvent? checkRunEvent, {
required _i31.Commit? commit,
required _i32.Task? task,
required _i37.Target? target,
}) =>
(super.noSuchMethod(
Invocation.method(
#reschedulePostsubmitBuildUsingCheckRunEvent,
[checkRunEvent],
{
#commit: commit,
#task: task,
#target: target,
},
),
returnValue: _i19.Future<_i8.Build>.value(_FakeBuild_7(
this,
Invocation.method(
#reschedulePostsubmitBuildUsingCheckRunEvent,
[checkRunEvent],
{
#commit: commit,
#task: task,
#target: target,
},
),
)),
) as _i19.Future<_i8.Build>);
@override
_i19.Future<_i8.Build> getBuildById(
String? id, {
String? fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#getBuildById,
[id],
{#fields: fields},
),
returnValue: _i19.Future<_i8.Build>.value(_FakeBuild_7(
this,
Invocation.method(
#getBuildById,
[id],
{#fields: fields},
),
)),
) as _i19.Future<_i8.Build>);
@override
_i19.Future<Set<String>> getAvailableBuilderSet({
String? project = r'flutter',
String? bucket = r'prod',
}) =>
(super.noSuchMethod(
Invocation.method(
#getAvailableBuilderSet,
[],
{
#project: project,
#bucket: bucket,
},
),
returnValue: _i19.Future<Set<String>>.value(<String>{}),
) as _i19.Future<Set<String>>);
@override
_i19.Future<List<_i23.Tuple<_i37.Target, _i32.Task, int>>> schedulePostsubmitBuilds({
required _i31.Commit? commit,
required List<_i23.Tuple<_i37.Target, _i32.Task, int>>? toBeScheduled,
}) =>
(super.noSuchMethod(
Invocation.method(
#schedulePostsubmitBuilds,
[],
{
#commit: commit,
#toBeScheduled: toBeScheduled,
},
),
returnValue: _i19.Future<List<_i23.Tuple<_i37.Target, _i32.Task, int>>>.value(
<_i23.Tuple<_i37.Target, _i32.Task, int>>[]),
) as _i19.Future<List<_i23.Tuple<_i37.Target, _i32.Task, int>>>);
@override
_i19.Future<void> createPostsubmitCheckRun(
_i31.Commit? commit,
_i37.Target? target,
Map<String, dynamic>? rawUserData,
) =>
(super.noSuchMethod(
Invocation.method(
#createPostsubmitCheckRun,
[
commit,
target,
rawUserData,
],
),
returnValue: _i19.Future<void>.value(),
returnValueForMissingStub: _i19.Future<void>.value(),
) as _i19.Future<void>);
@override
_i19.Future<bool> checkRerunBuilder({
required _i31.Commit? commit,
required _i37.Target? target,
required _i32.Task? task,
required _i9.DatastoreService? datastore,
Map<String, List<String>>? tags,
bool? ignoreChecks = false,
}) =>
(super.noSuchMethod(
Invocation.method(
#checkRerunBuilder,
[],
{
#commit: commit,
#target: target,
#task: task,
#datastore: datastore,
#tags: tags,
#ignoreChecks: ignoreChecks,
},
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
}
/// A class which mocks [ProcessManager].
///
/// See the documentation for Mockito's code generation for more information.
class MockProcessManager extends _i1.Mock implements _i39.ProcessManager {
MockProcessManager() {
_i1.throwOnMissingStub(this);
}
@override
_i19.Future<_i21.Process> start(
List<Object>? command, {
String? workingDirectory,
Map<String, String>? environment,
bool? includeParentEnvironment = true,
bool? runInShell = false,
_i21.ProcessStartMode? mode = _i21.ProcessStartMode.normal,
}) =>
(super.noSuchMethod(
Invocation.method(
#start,
[command],
{
#workingDirectory: workingDirectory,
#environment: environment,
#includeParentEnvironment: includeParentEnvironment,
#runInShell: runInShell,
#mode: mode,
},
),
returnValue: _i19.Future<_i21.Process>.value(_FakeProcess_60(
this,
Invocation.method(
#start,
[command],
{
#workingDirectory: workingDirectory,
#environment: environment,
#includeParentEnvironment: includeParentEnvironment,
#runInShell: runInShell,
#mode: mode,
},
),
)),
) as _i19.Future<_i21.Process>);
@override
_i19.Future<_i21.ProcessResult> run(
List<Object>? command, {
String? workingDirectory,
Map<String, String>? environment,
bool? includeParentEnvironment = true,
bool? runInShell = false,
_i22.Encoding? stdoutEncoding = const _i21.SystemEncoding(),
_i22.Encoding? stderrEncoding = const _i21.SystemEncoding(),
}) =>
(super.noSuchMethod(
Invocation.method(
#run,
[command],
{
#workingDirectory: workingDirectory,
#environment: environment,
#includeParentEnvironment: includeParentEnvironment,
#runInShell: runInShell,
#stdoutEncoding: stdoutEncoding,
#stderrEncoding: stderrEncoding,
},
),
returnValue: _i19.Future<_i21.ProcessResult>.value(_i27.dummyValue<_i21.ProcessResult>(
this,
Invocation.method(
#run,
[command],
{
#workingDirectory: workingDirectory,
#environment: environment,
#includeParentEnvironment: includeParentEnvironment,
#runInShell: runInShell,
#stdoutEncoding: stdoutEncoding,
#stderrEncoding: stderrEncoding,
},
),
)),
) as _i19.Future<_i21.ProcessResult>);
@override
_i21.ProcessResult runSync(
List<Object>? command, {
String? workingDirectory,
Map<String, String>? environment,
bool? includeParentEnvironment = true,
bool? runInShell = false,
_i22.Encoding? stdoutEncoding = const _i21.SystemEncoding(),
_i22.Encoding? stderrEncoding = const _i21.SystemEncoding(),
}) =>
(super.noSuchMethod(
Invocation.method(
#runSync,
[command],
{
#workingDirectory: workingDirectory,
#environment: environment,
#includeParentEnvironment: includeParentEnvironment,
#runInShell: runInShell,
#stdoutEncoding: stdoutEncoding,
#stderrEncoding: stderrEncoding,
},
),
returnValue: _i27.dummyValue<_i21.ProcessResult>(
this,
Invocation.method(
#runSync,
[command],
{
#workingDirectory: workingDirectory,
#environment: environment,
#includeParentEnvironment: includeParentEnvironment,
#runInShell: runInShell,
#stdoutEncoding: stdoutEncoding,
#stderrEncoding: stderrEncoding,
},
),
),
) as _i21.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, [
_i21.ProcessSignal? signal = _i21.ProcessSignal.sigterm,
]) =>
(super.noSuchMethod(
Invocation.method(
#killPid,
[
pid,
signal,
],
),
returnValue: false,
) as bool);
}
/// A class which mocks [PullRequestsService].
///
/// See the documentation for Mockito's code generation for more information.
class MockPullRequestsService extends _i1.Mock implements _i13.PullRequestsService {
MockPullRequestsService() {
_i1.throwOnMissingStub(this);
}
@override
_i13.GitHub get github => (super.noSuchMethod(
Invocation.getter(#github),
returnValue: _FakeGitHub_16(
this,
Invocation.getter(#github),
),
) as _i13.GitHub);
@override
_i19.Stream<_i13.PullRequest> list(
_i13.RepositorySlug? slug, {
int? pages,
String? base,
String? direction = r'desc',
String? head,
String? sort = r'created',
String? state = r'open',
}) =>
(super.noSuchMethod(
Invocation.method(
#list,
[slug],
{
#pages: pages,
#base: base,
#direction: direction,
#head: head,
#sort: sort,
#state: state,
},
),
returnValue: _i19.Stream<_i13.PullRequest>.empty(),
) as _i19.Stream<_i13.PullRequest>);
@override
_i19.Future<_i13.PullRequest> get(
_i13.RepositorySlug? slug,
int? number,
) =>
(super.noSuchMethod(
Invocation.method(
#get,
[
slug,
number,
],
),
returnValue: _i19.Future<_i13.PullRequest>.value(_FakePullRequest_32(
this,
Invocation.method(
#get,
[
slug,
number,
],
),
)),
) as _i19.Future<_i13.PullRequest>);
@override
_i19.Future<_i13.PullRequest> create(
_i13.RepositorySlug? slug,
_i13.CreatePullRequest? request,
) =>
(super.noSuchMethod(
Invocation.method(
#create,
[
slug,
request,
],
),
returnValue: _i19.Future<_i13.PullRequest>.value(_FakePullRequest_32(
this,
Invocation.method(
#create,
[
slug,
request,
],
),
)),
) as _i19.Future<_i13.PullRequest>);
@override
_i19.Future<_i13.PullRequest> edit(
_i13.RepositorySlug? slug,
int? number, {
String? title,
String? body,
String? state,
String? base,
}) =>
(super.noSuchMethod(
Invocation.method(
#edit,
[
slug,
number,
],
{
#title: title,
#body: body,
#state: state,
#base: base,
},
),
returnValue: _i19.Future<_i13.PullRequest>.value(_FakePullRequest_32(
this,
Invocation.method(
#edit,
[
slug,
number,
],
{
#title: title,
#body: body,
#state: state,
#base: base,
},
),
)),
) as _i19.Future<_i13.PullRequest>);
@override
_i19.Stream<_i13.RepositoryCommit> listCommits(
_i13.RepositorySlug? slug,
int? number,
) =>
(super.noSuchMethod(
Invocation.method(
#listCommits,
[
slug,
number,
],
),
returnValue: _i19.Stream<_i13.RepositoryCommit>.empty(),
) as _i19.Stream<_i13.RepositoryCommit>);
@override
_i19.Stream<_i13.PullRequestFile> listFiles(
_i13.RepositorySlug? slug,
int? number,
) =>
(super.noSuchMethod(
Invocation.method(
#listFiles,
[
slug,
number,
],
),
returnValue: _i19.Stream<_i13.PullRequestFile>.empty(),
) as _i19.Stream<_i13.PullRequestFile>);
@override
_i19.Stream<_i13.PullRequestReview> listReviews(
_i13.RepositorySlug? slug,
int? number,
) =>
(super.noSuchMethod(
Invocation.method(
#listReviews,
[
slug,
number,
],
),
returnValue: _i19.Stream<_i13.PullRequestReview>.empty(),
) as _i19.Stream<_i13.PullRequestReview>);
@override
_i19.Future<bool> isMerged(
_i13.RepositorySlug? slug,
int? number,
) =>
(super.noSuchMethod(
Invocation.method(
#isMerged,
[
slug,
number,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Future<_i13.PullRequestMerge> merge(
_i13.RepositorySlug? slug,
int? number, {
String? message,
_i13.MergeMethod? mergeMethod = _i13.MergeMethod.merge,
String? requestSha,
}) =>
(super.noSuchMethod(
Invocation.method(
#merge,
[
slug,
number,
],
{
#message: message,
#mergeMethod: mergeMethod,
#requestSha: requestSha,
},
),
returnValue: _i19.Future<_i13.PullRequestMerge>.value(_FakePullRequestMerge_61(
this,
Invocation.method(
#merge,
[
slug,
number,
],
{
#message: message,
#mergeMethod: mergeMethod,
#requestSha: requestSha,
},
),
)),
) as _i19.Future<_i13.PullRequestMerge>);
@override
_i19.Stream<_i13.PullRequestComment> listCommentsByPullRequest(
_i13.RepositorySlug? slug,
int? number,
) =>
(super.noSuchMethod(
Invocation.method(
#listCommentsByPullRequest,
[
slug,
number,
],
),
returnValue: _i19.Stream<_i13.PullRequestComment>.empty(),
) as _i19.Stream<_i13.PullRequestComment>);
@override
_i19.Stream<_i13.PullRequestComment> listComments(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listComments,
[slug],
),
returnValue: _i19.Stream<_i13.PullRequestComment>.empty(),
) as _i19.Stream<_i13.PullRequestComment>);
@override
_i19.Future<_i13.PullRequestComment> createComment(
_i13.RepositorySlug? slug,
int? number,
_i13.CreatePullRequestComment? comment,
) =>
(super.noSuchMethod(
Invocation.method(
#createComment,
[
slug,
number,
comment,
],
),
returnValue: _i19.Future<_i13.PullRequestComment>.value(_FakePullRequestComment_62(
this,
Invocation.method(
#createComment,
[
slug,
number,
comment,
],
),
)),
) as _i19.Future<_i13.PullRequestComment>);
@override
_i19.Future<_i13.PullRequestReview> createReview(
_i13.RepositorySlug? slug,
_i13.CreatePullRequestReview? review,
) =>
(super.noSuchMethod(
Invocation.method(
#createReview,
[
slug,
review,
],
),
returnValue: _i19.Future<_i13.PullRequestReview>.value(_FakePullRequestReview_63(
this,
Invocation.method(
#createReview,
[
slug,
review,
],
),
)),
) as _i19.Future<_i13.PullRequestReview>);
}
/// A class which mocks [RepositoriesService].
///
/// See the documentation for Mockito's code generation for more information.
class MockRepositoriesService extends _i1.Mock implements _i13.RepositoriesService {
MockRepositoriesService() {
_i1.throwOnMissingStub(this);
}
@override
_i13.GitHub get github => (super.noSuchMethod(
Invocation.getter(#github),
returnValue: _FakeGitHub_16(
this,
Invocation.getter(#github),
),
) as _i13.GitHub);
@override
_i19.Stream<_i13.Repository> listRepositories({
String? type = r'owner',
String? sort = r'full_name',
String? direction = r'asc',
}) =>
(super.noSuchMethod(
Invocation.method(
#listRepositories,
[],
{
#type: type,
#sort: sort,
#direction: direction,
},
),
returnValue: _i19.Stream<_i13.Repository>.empty(),
) as _i19.Stream<_i13.Repository>);
@override
_i19.Stream<_i13.Repository> listUserRepositories(
String? user, {
String? type = r'owner',
String? sort = r'full_name',
String? direction = r'asc',
}) =>
(super.noSuchMethod(
Invocation.method(
#listUserRepositories,
[user],
{
#type: type,
#sort: sort,
#direction: direction,
},
),
returnValue: _i19.Stream<_i13.Repository>.empty(),
) as _i19.Stream<_i13.Repository>);
@override
_i19.Stream<_i13.Repository> listOrganizationRepositories(
String? org, {
String? type = r'all',
}) =>
(super.noSuchMethod(
Invocation.method(
#listOrganizationRepositories,
[org],
{#type: type},
),
returnValue: _i19.Stream<_i13.Repository>.empty(),
) as _i19.Stream<_i13.Repository>);
@override
_i19.Stream<_i13.Repository> listPublicRepositories({
int? limit = 50,
DateTime? since,
}) =>
(super.noSuchMethod(
Invocation.method(
#listPublicRepositories,
[],
{
#limit: limit,
#since: since,
},
),
returnValue: _i19.Stream<_i13.Repository>.empty(),
) as _i19.Stream<_i13.Repository>);
@override
_i19.Future<_i13.Repository> createRepository(
_i13.CreateRepository? repository, {
String? org,
}) =>
(super.noSuchMethod(
Invocation.method(
#createRepository,
[repository],
{#org: org},
),
returnValue: _i19.Future<_i13.Repository>.value(_FakeRepository_64(
this,
Invocation.method(
#createRepository,
[repository],
{#org: org},
),
)),
) as _i19.Future<_i13.Repository>);
@override
_i19.Future<_i13.LicenseDetails> getLicense(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#getLicense,
[slug],
),
returnValue: _i19.Future<_i13.LicenseDetails>.value(_FakeLicenseDetails_65(
this,
Invocation.method(
#getLicense,
[slug],
),
)),
) as _i19.Future<_i13.LicenseDetails>);
@override
_i19.Future<_i13.Repository> getRepository(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#getRepository,
[slug],
),
returnValue: _i19.Future<_i13.Repository>.value(_FakeRepository_64(
this,
Invocation.method(
#getRepository,
[slug],
),
)),
) as _i19.Future<_i13.Repository>);
@override
_i19.Stream<_i13.Repository> getRepositories(List<_i13.RepositorySlug>? slugs) => (super.noSuchMethod(
Invocation.method(
#getRepositories,
[slugs],
),
returnValue: _i19.Stream<_i13.Repository>.empty(),
) as _i19.Stream<_i13.Repository>);
@override
_i19.Future<_i13.Repository> editRepository(
_i13.RepositorySlug? slug, {
String? name,
String? description,
String? homepage,
bool? private,
bool? hasIssues,
bool? hasWiki,
bool? hasDownloads,
}) =>
(super.noSuchMethod(
Invocation.method(
#editRepository,
[slug],
{
#name: name,
#description: description,
#homepage: homepage,
#private: private,
#hasIssues: hasIssues,
#hasWiki: hasWiki,
#hasDownloads: hasDownloads,
},
),
returnValue: _i19.Future<_i13.Repository>.value(_FakeRepository_64(
this,
Invocation.method(
#editRepository,
[slug],
{
#name: name,
#description: description,
#homepage: homepage,
#private: private,
#hasIssues: hasIssues,
#hasWiki: hasWiki,
#hasDownloads: hasDownloads,
},
),
)),
) as _i19.Future<_i13.Repository>);
@override
_i19.Future<bool> deleteRepository(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#deleteRepository,
[slug],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Stream<_i13.Contributor> listContributors(
_i13.RepositorySlug? slug, {
bool? anon = false,
}) =>
(super.noSuchMethod(
Invocation.method(
#listContributors,
[slug],
{#anon: anon},
),
returnValue: _i19.Stream<_i13.Contributor>.empty(),
) as _i19.Stream<_i13.Contributor>);
@override
_i19.Stream<_i13.Team> listTeams(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listTeams,
[slug],
),
returnValue: _i19.Stream<_i13.Team>.empty(),
) as _i19.Stream<_i13.Team>);
@override
_i19.Future<_i13.LanguageBreakdown> listLanguages(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listLanguages,
[slug],
),
returnValue: _i19.Future<_i13.LanguageBreakdown>.value(_FakeLanguageBreakdown_66(
this,
Invocation.method(
#listLanguages,
[slug],
),
)),
) as _i19.Future<_i13.LanguageBreakdown>);
@override
_i19.Stream<_i13.Tag> listTags(
_i13.RepositorySlug? slug, {
int? page = 1,
int? pages,
int? perPage = 30,
}) =>
(super.noSuchMethod(
Invocation.method(
#listTags,
[slug],
{
#page: page,
#pages: pages,
#perPage: perPage,
},
),
returnValue: _i19.Stream<_i13.Tag>.empty(),
) as _i19.Stream<_i13.Tag>);
@override
_i19.Stream<_i13.Branch> listBranches(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listBranches,
[slug],
),
returnValue: _i19.Stream<_i13.Branch>.empty(),
) as _i19.Stream<_i13.Branch>);
@override
_i19.Future<_i13.Branch> getBranch(
_i13.RepositorySlug? slug,
String? branch,
) =>
(super.noSuchMethod(
Invocation.method(
#getBranch,
[
slug,
branch,
],
),
returnValue: _i19.Future<_i13.Branch>.value(_FakeBranch_67(
this,
Invocation.method(
#getBranch,
[
slug,
branch,
],
),
)),
) as _i19.Future<_i13.Branch>);
@override
_i19.Stream<_i13.Collaborator> listCollaborators(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listCollaborators,
[slug],
),
returnValue: _i19.Stream<_i13.Collaborator>.empty(),
) as _i19.Stream<_i13.Collaborator>);
@override
_i19.Future<bool> isCollaborator(
_i13.RepositorySlug? slug,
String? user,
) =>
(super.noSuchMethod(
Invocation.method(
#isCollaborator,
[
slug,
user,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Future<bool> addCollaborator(
_i13.RepositorySlug? slug,
String? user,
) =>
(super.noSuchMethod(
Invocation.method(
#addCollaborator,
[
slug,
user,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Future<bool> removeCollaborator(
_i13.RepositorySlug? slug,
String? user,
) =>
(super.noSuchMethod(
Invocation.method(
#removeCollaborator,
[
slug,
user,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Stream<_i13.CommitComment> listSingleCommitComments(
_i13.RepositorySlug? slug,
_i13.RepositoryCommit? commit,
) =>
(super.noSuchMethod(
Invocation.method(
#listSingleCommitComments,
[
slug,
commit,
],
),
returnValue: _i19.Stream<_i13.CommitComment>.empty(),
) as _i19.Stream<_i13.CommitComment>);
@override
_i19.Stream<_i13.CommitComment> listCommitComments(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listCommitComments,
[slug],
),
returnValue: _i19.Stream<_i13.CommitComment>.empty(),
) as _i19.Stream<_i13.CommitComment>);
@override
_i19.Future<_i13.CommitComment> createCommitComment(
_i13.RepositorySlug? slug,
_i13.RepositoryCommit? commit, {
required String? body,
String? path,
int? position,
int? line,
}) =>
(super.noSuchMethod(
Invocation.method(
#createCommitComment,
[
slug,
commit,
],
{
#body: body,
#path: path,
#position: position,
#line: line,
},
),
returnValue: _i19.Future<_i13.CommitComment>.value(_FakeCommitComment_68(
this,
Invocation.method(
#createCommitComment,
[
slug,
commit,
],
{
#body: body,
#path: path,
#position: position,
#line: line,
},
),
)),
) as _i19.Future<_i13.CommitComment>);
@override
_i19.Future<_i13.CommitComment> getCommitComment(
_i13.RepositorySlug? slug, {
required int? id,
}) =>
(super.noSuchMethod(
Invocation.method(
#getCommitComment,
[slug],
{#id: id},
),
returnValue: _i19.Future<_i13.CommitComment>.value(_FakeCommitComment_68(
this,
Invocation.method(
#getCommitComment,
[slug],
{#id: id},
),
)),
) as _i19.Future<_i13.CommitComment>);
@override
_i19.Future<_i13.CommitComment> updateCommitComment(
_i13.RepositorySlug? slug, {
required int? id,
required String? body,
}) =>
(super.noSuchMethod(
Invocation.method(
#updateCommitComment,
[slug],
{
#id: id,
#body: body,
},
),
returnValue: _i19.Future<_i13.CommitComment>.value(_FakeCommitComment_68(
this,
Invocation.method(
#updateCommitComment,
[slug],
{
#id: id,
#body: body,
},
),
)),
) as _i19.Future<_i13.CommitComment>);
@override
_i19.Future<bool> deleteCommitComment(
_i13.RepositorySlug? slug, {
required int? id,
}) =>
(super.noSuchMethod(
Invocation.method(
#deleteCommitComment,
[slug],
{#id: id},
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Stream<_i13.RepositoryCommit> listCommits(
_i13.RepositorySlug? slug, {
String? sha,
String? path,
String? author,
String? committer,
DateTime? since,
DateTime? until,
}) =>
(super.noSuchMethod(
Invocation.method(
#listCommits,
[slug],
{
#sha: sha,
#path: path,
#author: author,
#committer: committer,
#since: since,
#until: until,
},
),
returnValue: _i19.Stream<_i13.RepositoryCommit>.empty(),
) as _i19.Stream<_i13.RepositoryCommit>);
@override
_i19.Future<_i13.RepositoryCommit> getCommit(
_i13.RepositorySlug? slug,
String? sha,
) =>
(super.noSuchMethod(
Invocation.method(
#getCommit,
[
slug,
sha,
],
),
returnValue: _i19.Future<_i13.RepositoryCommit>.value(_FakeRepositoryCommit_69(
this,
Invocation.method(
#getCommit,
[
slug,
sha,
],
),
)),
) as _i19.Future<_i13.RepositoryCommit>);
@override
_i19.Future<String> getCommitDiff(
_i13.RepositorySlug? slug,
String? sha,
) =>
(super.noSuchMethod(
Invocation.method(
#getCommitDiff,
[
slug,
sha,
],
),
returnValue: _i19.Future<String>.value(''),
) as _i19.Future<String>);
@override
_i19.Future<_i13.GitHubComparison> compareCommits(
_i13.RepositorySlug? slug,
String? refBase,
String? refHead,
) =>
(super.noSuchMethod(
Invocation.method(
#compareCommits,
[
slug,
refBase,
refHead,
],
),
returnValue: _i19.Future<_i13.GitHubComparison>.value(_FakeGitHubComparison_70(
this,
Invocation.method(
#compareCommits,
[
slug,
refBase,
refHead,
],
),
)),
) as _i19.Future<_i13.GitHubComparison>);
@override
_i19.Future<_i13.GitHubFile> getReadme(
_i13.RepositorySlug? slug, {
String? ref,
}) =>
(super.noSuchMethod(
Invocation.method(
#getReadme,
[slug],
{#ref: ref},
),
returnValue: _i19.Future<_i13.GitHubFile>.value(_FakeGitHubFile_71(
this,
Invocation.method(
#getReadme,
[slug],
{#ref: ref},
),
)),
) as _i19.Future<_i13.GitHubFile>);
@override
_i19.Future<_i13.RepositoryContents> getContents(
_i13.RepositorySlug? slug,
String? path, {
String? ref,
}) =>
(super.noSuchMethod(
Invocation.method(
#getContents,
[
slug,
path,
],
{#ref: ref},
),
returnValue: _i19.Future<_i13.RepositoryContents>.value(_FakeRepositoryContents_72(
this,
Invocation.method(
#getContents,
[
slug,
path,
],
{#ref: ref},
),
)),
) as _i19.Future<_i13.RepositoryContents>);
@override
_i19.Future<_i13.ContentCreation> createFile(
_i13.RepositorySlug? slug,
_i13.CreateFile? file,
) =>
(super.noSuchMethod(
Invocation.method(
#createFile,
[
slug,
file,
],
),
returnValue: _i19.Future<_i13.ContentCreation>.value(_FakeContentCreation_73(
this,
Invocation.method(
#createFile,
[
slug,
file,
],
),
)),
) as _i19.Future<_i13.ContentCreation>);
@override
_i19.Future<_i13.ContentCreation> updateFile(
_i13.RepositorySlug? slug,
String? path,
String? message,
String? content,
String? sha, {
String? branch,
}) =>
(super.noSuchMethod(
Invocation.method(
#updateFile,
[
slug,
path,
message,
content,
sha,
],
{#branch: branch},
),
returnValue: _i19.Future<_i13.ContentCreation>.value(_FakeContentCreation_73(
this,
Invocation.method(
#updateFile,
[
slug,
path,
message,
content,
sha,
],
{#branch: branch},
),
)),
) as _i19.Future<_i13.ContentCreation>);
@override
_i19.Future<_i13.ContentCreation> deleteFile(
_i13.RepositorySlug? slug,
String? path,
String? message,
String? sha,
String? branch,
) =>
(super.noSuchMethod(
Invocation.method(
#deleteFile,
[
slug,
path,
message,
sha,
branch,
],
),
returnValue: _i19.Future<_i13.ContentCreation>.value(_FakeContentCreation_73(
this,
Invocation.method(
#deleteFile,
[
slug,
path,
message,
sha,
branch,
],
),
)),
) as _i19.Future<_i13.ContentCreation>);
@override
_i19.Future<String?> getArchiveLink(
_i13.RepositorySlug? slug,
String? ref, {
String? format = r'tarball',
}) =>
(super.noSuchMethod(
Invocation.method(
#getArchiveLink,
[
slug,
ref,
],
{#format: format},
),
returnValue: _i19.Future<String?>.value(),
) as _i19.Future<String?>);
@override
_i19.Stream<_i13.Repository> listForks(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listForks,
[slug],
),
returnValue: _i19.Stream<_i13.Repository>.empty(),
) as _i19.Stream<_i13.Repository>);
@override
_i19.Future<_i13.Repository> createFork(
_i13.RepositorySlug? slug, [
_i13.CreateFork? fork,
]) =>
(super.noSuchMethod(
Invocation.method(
#createFork,
[
slug,
fork,
],
),
returnValue: _i19.Future<_i13.Repository>.value(_FakeRepository_64(
this,
Invocation.method(
#createFork,
[
slug,
fork,
],
),
)),
) as _i19.Future<_i13.Repository>);
@override
_i19.Stream<_i13.Hook> listHooks(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listHooks,
[slug],
),
returnValue: _i19.Stream<_i13.Hook>.empty(),
) as _i19.Stream<_i13.Hook>);
@override
_i19.Future<_i13.Hook> getHook(
_i13.RepositorySlug? slug,
int? id,
) =>
(super.noSuchMethod(
Invocation.method(
#getHook,
[
slug,
id,
],
),
returnValue: _i19.Future<_i13.Hook>.value(_FakeHook_74(
this,
Invocation.method(
#getHook,
[
slug,
id,
],
),
)),
) as _i19.Future<_i13.Hook>);
@override
_i19.Future<_i13.Hook> createHook(
_i13.RepositorySlug? slug,
_i13.CreateHook? hook,
) =>
(super.noSuchMethod(
Invocation.method(
#createHook,
[
slug,
hook,
],
),
returnValue: _i19.Future<_i13.Hook>.value(_FakeHook_74(
this,
Invocation.method(
#createHook,
[
slug,
hook,
],
),
)),
) as _i19.Future<_i13.Hook>);
@override
_i19.Future<_i13.Hook> editHook(
_i13.RepositorySlug? slug,
_i13.Hook? hookToEdit, {
String? configUrl,
String? configContentType,
String? configSecret,
bool? configInsecureSsl,
List<String>? events,
List<String>? addEvents,
List<String>? removeEvents,
bool? active,
}) =>
(super.noSuchMethod(
Invocation.method(
#editHook,
[
slug,
hookToEdit,
],
{
#configUrl: configUrl,
#configContentType: configContentType,
#configSecret: configSecret,
#configInsecureSsl: configInsecureSsl,
#events: events,
#addEvents: addEvents,
#removeEvents: removeEvents,
#active: active,
},
),
returnValue: _i19.Future<_i13.Hook>.value(_FakeHook_74(
this,
Invocation.method(
#editHook,
[
slug,
hookToEdit,
],
{
#configUrl: configUrl,
#configContentType: configContentType,
#configSecret: configSecret,
#configInsecureSsl: configInsecureSsl,
#events: events,
#addEvents: addEvents,
#removeEvents: removeEvents,
#active: active,
},
),
)),
) as _i19.Future<_i13.Hook>);
@override
_i19.Future<bool> testPushHook(
_i13.RepositorySlug? slug,
int? id,
) =>
(super.noSuchMethod(
Invocation.method(
#testPushHook,
[
slug,
id,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Future<bool> pingHook(
_i13.RepositorySlug? slug,
int? id,
) =>
(super.noSuchMethod(
Invocation.method(
#pingHook,
[
slug,
id,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Future<bool> deleteHook(
_i13.RepositorySlug? slug,
int? id,
) =>
(super.noSuchMethod(
Invocation.method(
#deleteHook,
[
slug,
id,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Stream<_i13.PublicKey> listDeployKeys(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listDeployKeys,
[slug],
),
returnValue: _i19.Stream<_i13.PublicKey>.empty(),
) as _i19.Stream<_i13.PublicKey>);
@override
_i19.Future<_i13.PublicKey> getDeployKey(
_i13.RepositorySlug? slug, {
required int? id,
}) =>
(super.noSuchMethod(
Invocation.method(
#getDeployKey,
[slug],
{#id: id},
),
returnValue: _i19.Future<_i13.PublicKey>.value(_FakePublicKey_75(
this,
Invocation.method(
#getDeployKey,
[slug],
{#id: id},
),
)),
) as _i19.Future<_i13.PublicKey>);
@override
_i19.Future<_i13.PublicKey> createDeployKey(
_i13.RepositorySlug? slug,
_i13.CreatePublicKey? key,
) =>
(super.noSuchMethod(
Invocation.method(
#createDeployKey,
[
slug,
key,
],
),
returnValue: _i19.Future<_i13.PublicKey>.value(_FakePublicKey_75(
this,
Invocation.method(
#createDeployKey,
[
slug,
key,
],
),
)),
) as _i19.Future<_i13.PublicKey>);
@override
_i19.Future<bool> deleteDeployKey({
required _i13.RepositorySlug? slug,
required _i13.PublicKey? key,
}) =>
(super.noSuchMethod(
Invocation.method(
#deleteDeployKey,
[],
{
#slug: slug,
#key: key,
},
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Future<_i13.RepositoryCommit> merge(
_i13.RepositorySlug? slug,
_i13.CreateMerge? merge,
) =>
(super.noSuchMethod(
Invocation.method(
#merge,
[
slug,
merge,
],
),
returnValue: _i19.Future<_i13.RepositoryCommit>.value(_FakeRepositoryCommit_69(
this,
Invocation.method(
#merge,
[
slug,
merge,
],
),
)),
) as _i19.Future<_i13.RepositoryCommit>);
@override
_i19.Future<_i13.RepositoryPages> getPagesInfo(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#getPagesInfo,
[slug],
),
returnValue: _i19.Future<_i13.RepositoryPages>.value(_FakeRepositoryPages_76(
this,
Invocation.method(
#getPagesInfo,
[slug],
),
)),
) as _i19.Future<_i13.RepositoryPages>);
@override
_i19.Stream<_i13.PageBuild> listPagesBuilds(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listPagesBuilds,
[slug],
),
returnValue: _i19.Stream<_i13.PageBuild>.empty(),
) as _i19.Stream<_i13.PageBuild>);
@override
_i19.Future<_i13.PageBuild> getLatestPagesBuild(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#getLatestPagesBuild,
[slug],
),
returnValue: _i19.Future<_i13.PageBuild>.value(_FakePageBuild_77(
this,
Invocation.method(
#getLatestPagesBuild,
[slug],
),
)),
) as _i19.Future<_i13.PageBuild>);
@override
_i19.Stream<_i13.Release> listReleases(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listReleases,
[slug],
),
returnValue: _i19.Stream<_i13.Release>.empty(),
) as _i19.Stream<_i13.Release>);
@override
_i19.Future<_i13.Release> getLatestRelease(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#getLatestRelease,
[slug],
),
returnValue: _i19.Future<_i13.Release>.value(_FakeRelease_78(
this,
Invocation.method(
#getLatestRelease,
[slug],
),
)),
) as _i19.Future<_i13.Release>);
@override
_i19.Future<_i13.Release> getReleaseById(
_i13.RepositorySlug? slug,
int? id,
) =>
(super.noSuchMethod(
Invocation.method(
#getReleaseById,
[
slug,
id,
],
),
returnValue: _i19.Future<_i13.Release>.value(_FakeRelease_78(
this,
Invocation.method(
#getReleaseById,
[
slug,
id,
],
),
)),
) as _i19.Future<_i13.Release>);
@override
_i19.Future<_i13.Release> getReleaseByTagName(
_i13.RepositorySlug? slug,
String? tagName,
) =>
(super.noSuchMethod(
Invocation.method(
#getReleaseByTagName,
[
slug,
tagName,
],
),
returnValue: _i19.Future<_i13.Release>.value(_FakeRelease_78(
this,
Invocation.method(
#getReleaseByTagName,
[
slug,
tagName,
],
),
)),
) as _i19.Future<_i13.Release>);
@override
_i19.Future<_i13.Release> createRelease(
_i13.RepositorySlug? slug,
_i13.CreateRelease? createRelease, {
bool? getIfExists = true,
}) =>
(super.noSuchMethod(
Invocation.method(
#createRelease,
[
slug,
createRelease,
],
{#getIfExists: getIfExists},
),
returnValue: _i19.Future<_i13.Release>.value(_FakeRelease_78(
this,
Invocation.method(
#createRelease,
[
slug,
createRelease,
],
{#getIfExists: getIfExists},
),
)),
) as _i19.Future<_i13.Release>);
@override
_i19.Future<_i13.Release> editRelease(
_i13.RepositorySlug? slug,
_i13.Release? releaseToEdit, {
String? tagName,
String? targetCommitish,
String? name,
String? body,
bool? draft,
bool? preRelease,
}) =>
(super.noSuchMethod(
Invocation.method(
#editRelease,
[
slug,
releaseToEdit,
],
{
#tagName: tagName,
#targetCommitish: targetCommitish,
#name: name,
#body: body,
#draft: draft,
#preRelease: preRelease,
},
),
returnValue: _i19.Future<_i13.Release>.value(_FakeRelease_78(
this,
Invocation.method(
#editRelease,
[
slug,
releaseToEdit,
],
{
#tagName: tagName,
#targetCommitish: targetCommitish,
#name: name,
#body: body,
#draft: draft,
#preRelease: preRelease,
},
),
)),
) as _i19.Future<_i13.Release>);
@override
_i19.Future<bool> deleteRelease(
_i13.RepositorySlug? slug,
_i13.Release? release,
) =>
(super.noSuchMethod(
Invocation.method(
#deleteRelease,
[
slug,
release,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Stream<_i13.ReleaseAsset> listReleaseAssets(
_i13.RepositorySlug? slug,
_i13.Release? release,
) =>
(super.noSuchMethod(
Invocation.method(
#listReleaseAssets,
[
slug,
release,
],
),
returnValue: _i19.Stream<_i13.ReleaseAsset>.empty(),
) as _i19.Stream<_i13.ReleaseAsset>);
@override
_i19.Future<_i13.ReleaseAsset> getReleaseAsset(
_i13.RepositorySlug? slug,
_i13.Release? release, {
required int? assetId,
}) =>
(super.noSuchMethod(
Invocation.method(
#getReleaseAsset,
[
slug,
release,
],
{#assetId: assetId},
),
returnValue: _i19.Future<_i13.ReleaseAsset>.value(_FakeReleaseAsset_79(
this,
Invocation.method(
#getReleaseAsset,
[
slug,
release,
],
{#assetId: assetId},
),
)),
) as _i19.Future<_i13.ReleaseAsset>);
@override
_i19.Future<_i13.ReleaseAsset> editReleaseAsset(
_i13.RepositorySlug? slug,
_i13.ReleaseAsset? assetToEdit, {
String? name,
String? label,
}) =>
(super.noSuchMethod(
Invocation.method(
#editReleaseAsset,
[
slug,
assetToEdit,
],
{
#name: name,
#label: label,
},
),
returnValue: _i19.Future<_i13.ReleaseAsset>.value(_FakeReleaseAsset_79(
this,
Invocation.method(
#editReleaseAsset,
[
slug,
assetToEdit,
],
{
#name: name,
#label: label,
},
),
)),
) as _i19.Future<_i13.ReleaseAsset>);
@override
_i19.Future<bool> deleteReleaseAsset(
_i13.RepositorySlug? slug,
_i13.ReleaseAsset? asset,
) =>
(super.noSuchMethod(
Invocation.method(
#deleteReleaseAsset,
[
slug,
asset,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Future<List<_i13.ReleaseAsset>> uploadReleaseAssets(
_i13.Release? release,
Iterable<_i13.CreateReleaseAsset>? createReleaseAssets,
) =>
(super.noSuchMethod(
Invocation.method(
#uploadReleaseAssets,
[
release,
createReleaseAssets,
],
),
returnValue: _i19.Future<List<_i13.ReleaseAsset>>.value(<_i13.ReleaseAsset>[]),
) as _i19.Future<List<_i13.ReleaseAsset>>);
@override
_i19.Future<List<_i13.ContributorStatistics>> listContributorStats(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listContributorStats,
[slug],
),
returnValue: _i19.Future<List<_i13.ContributorStatistics>>.value(<_i13.ContributorStatistics>[]),
) as _i19.Future<List<_i13.ContributorStatistics>>);
@override
_i19.Stream<_i13.YearCommitCountWeek> listCommitActivity(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listCommitActivity,
[slug],
),
returnValue: _i19.Stream<_i13.YearCommitCountWeek>.empty(),
) as _i19.Stream<_i13.YearCommitCountWeek>);
@override
_i19.Stream<_i13.WeeklyChangesCount> listCodeFrequency(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listCodeFrequency,
[slug],
),
returnValue: _i19.Stream<_i13.WeeklyChangesCount>.empty(),
) as _i19.Stream<_i13.WeeklyChangesCount>);
@override
_i19.Future<_i13.ContributorParticipation> getParticipation(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#getParticipation,
[slug],
),
returnValue: _i19.Future<_i13.ContributorParticipation>.value(_FakeContributorParticipation_80(
this,
Invocation.method(
#getParticipation,
[slug],
),
)),
) as _i19.Future<_i13.ContributorParticipation>);
@override
_i19.Stream<_i13.PunchcardEntry> listPunchcard(_i13.RepositorySlug? slug) => (super.noSuchMethod(
Invocation.method(
#listPunchcard,
[slug],
),
returnValue: _i19.Stream<_i13.PunchcardEntry>.empty(),
) as _i19.Stream<_i13.PunchcardEntry>);
@override
_i19.Stream<_i13.RepositoryStatus> listStatuses(
_i13.RepositorySlug? slug,
String? ref,
) =>
(super.noSuchMethod(
Invocation.method(
#listStatuses,
[
slug,
ref,
],
),
returnValue: _i19.Stream<_i13.RepositoryStatus>.empty(),
) as _i19.Stream<_i13.RepositoryStatus>);
@override
_i19.Future<_i13.RepositoryStatus> createStatus(
_i13.RepositorySlug? slug,
String? ref,
_i13.CreateStatus? request,
) =>
(super.noSuchMethod(
Invocation.method(
#createStatus,
[
slug,
ref,
request,
],
),
returnValue: _i19.Future<_i13.RepositoryStatus>.value(_FakeRepositoryStatus_81(
this,
Invocation.method(
#createStatus,
[
slug,
ref,
request,
],
),
)),
) as _i19.Future<_i13.RepositoryStatus>);
@override
_i19.Future<_i13.CombinedRepositoryStatus> getCombinedStatus(
_i13.RepositorySlug? slug,
String? ref,
) =>
(super.noSuchMethod(
Invocation.method(
#getCombinedStatus,
[
slug,
ref,
],
),
returnValue: _i19.Future<_i13.CombinedRepositoryStatus>.value(_FakeCombinedRepositoryStatus_82(
this,
Invocation.method(
#getCombinedStatus,
[
slug,
ref,
],
),
)),
) as _i19.Future<_i13.CombinedRepositoryStatus>);
@override
_i19.Future<_i13.ReleaseNotes> generateReleaseNotes(_i13.CreateReleaseNotes? crn) => (super.noSuchMethod(
Invocation.method(
#generateReleaseNotes,
[crn],
),
returnValue: _i19.Future<_i13.ReleaseNotes>.value(_FakeReleaseNotes_83(
this,
Invocation.method(
#generateReleaseNotes,
[crn],
),
)),
) as _i19.Future<_i13.ReleaseNotes>);
}
/// 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
_i19.Stream<_i13.Repository> repositories(
String? query, {
String? sort,
int? pages = 2,
}) =>
(super.noSuchMethod(
Invocation.method(
#repositories,
[query],
{
#sort: sort,
#pages: pages,
},
),
returnValue: _i19.Stream<_i13.Repository>.empty(),
) as _i19.Stream<_i13.Repository>);
@override
_i19.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: _i19.Stream<_i13.CodeSearchResults>.empty(),
) as _i19.Stream<_i13.CodeSearchResults>);
@override
_i19.Stream<_i13.Issue> issues(
String? query, {
String? sort,
int? pages = 2,
}) =>
(super.noSuchMethod(
Invocation.method(
#issues,
[query],
{
#sort: sort,
#pages: pages,
},
),
returnValue: _i19.Stream<_i13.Issue>.empty(),
) as _i19.Stream<_i13.Issue>);
@override
_i19.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: _i19.Stream<_i13.User>.empty(),
) as _i19.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 _i6.TabledataResource {
MockTabledataResource() {
_i1.throwOnMissingStub(this);
}
@override
_i19.Future<_i6.TableDataInsertAllResponse> insertAll(
_i6.TableDataInsertAllRequest? request,
String? projectId,
String? datasetId,
String? tableId, {
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#insertAll,
[
request,
projectId,
datasetId,
tableId,
],
{#$fields: $fields},
),
returnValue: _i19.Future<_i6.TableDataInsertAllResponse>.value(_FakeTableDataInsertAllResponse_84(
this,
Invocation.method(
#insertAll,
[
request,
projectId,
datasetId,
tableId,
],
{#$fields: $fields},
),
)),
) as _i19.Future<_i6.TableDataInsertAllResponse>);
@override
_i19.Future<_i6.TableDataList> list(
String? projectId,
String? datasetId,
String? tableId, {
int? maxResults,
String? pageToken,
String? selectedFields,
String? startIndex,
String? $fields,
}) =>
(super.noSuchMethod(
Invocation.method(
#list,
[
projectId,
datasetId,
tableId,
],
{
#maxResults: maxResults,
#pageToken: pageToken,
#selectedFields: selectedFields,
#startIndex: startIndex,
#$fields: $fields,
},
),
returnValue: _i19.Future<_i6.TableDataList>.value(_FakeTableDataList_85(
this,
Invocation.method(
#list,
[
projectId,
datasetId,
tableId,
],
{
#maxResults: maxResults,
#pageToken: pageToken,
#selectedFields: selectedFields,
#startIndex: startIndex,
#$fields: $fields,
},
),
)),
) as _i19.Future<_i6.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
_i19.Future<_i13.User> getUser(String? name) => (super.noSuchMethod(
Invocation.method(
#getUser,
[name],
),
returnValue: _i19.Future<_i13.User>.value(_FakeUser_86(
this,
Invocation.method(
#getUser,
[name],
),
)),
) as _i19.Future<_i13.User>);
@override
_i19.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: _i19.Future<_i13.CurrentUser>.value(_FakeCurrentUser_87(
this,
Invocation.method(
#editCurrentUser,
[],
{
#name: name,
#email: email,
#blog: blog,
#company: company,
#location: location,
#hireable: hireable,
#bio: bio,
},
),
)),
) as _i19.Future<_i13.CurrentUser>);
@override
_i19.Stream<_i13.User> getUsers(
List<String>? names, {
int? pages,
}) =>
(super.noSuchMethod(
Invocation.method(
#getUsers,
[names],
{#pages: pages},
),
returnValue: _i19.Stream<_i13.User>.empty(),
) as _i19.Stream<_i13.User>);
@override
_i19.Future<_i13.CurrentUser> getCurrentUser() => (super.noSuchMethod(
Invocation.method(
#getCurrentUser,
[],
),
returnValue: _i19.Future<_i13.CurrentUser>.value(_FakeCurrentUser_87(
this,
Invocation.method(
#getCurrentUser,
[],
),
)),
) as _i19.Future<_i13.CurrentUser>);
@override
_i19.Future<bool> isUser(String? name) => (super.noSuchMethod(
Invocation.method(
#isUser,
[name],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Stream<_i13.User> listUsers({
int? pages,
int? since,
}) =>
(super.noSuchMethod(
Invocation.method(
#listUsers,
[],
{
#pages: pages,
#since: since,
},
),
returnValue: _i19.Stream<_i13.User>.empty(),
) as _i19.Stream<_i13.User>);
@override
_i19.Stream<_i13.UserEmail> listEmails() => (super.noSuchMethod(
Invocation.method(
#listEmails,
[],
),
returnValue: _i19.Stream<_i13.UserEmail>.empty(),
) as _i19.Stream<_i13.UserEmail>);
@override
_i19.Stream<_i13.UserEmail> addEmails(List<String>? emails) => (super.noSuchMethod(
Invocation.method(
#addEmails,
[emails],
),
returnValue: _i19.Stream<_i13.UserEmail>.empty(),
) as _i19.Stream<_i13.UserEmail>);
@override
_i19.Future<bool> deleteEmails(List<String>? emails) => (super.noSuchMethod(
Invocation.method(
#deleteEmails,
[emails],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Stream<_i13.User> listUserFollowers(String? user) => (super.noSuchMethod(
Invocation.method(
#listUserFollowers,
[user],
),
returnValue: _i19.Stream<_i13.User>.empty(),
) as _i19.Stream<_i13.User>);
@override
_i19.Future<bool> isFollowingUser(String? user) => (super.noSuchMethod(
Invocation.method(
#isFollowingUser,
[user],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Future<bool> isUserFollowing(
String? user,
String? target,
) =>
(super.noSuchMethod(
Invocation.method(
#isUserFollowing,
[
user,
target,
],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Future<bool> followUser(String? user) => (super.noSuchMethod(
Invocation.method(
#followUser,
[user],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Future<bool> unfollowUser(String? user) => (super.noSuchMethod(
Invocation.method(
#unfollowUser,
[user],
),
returnValue: _i19.Future<bool>.value(false),
) as _i19.Future<bool>);
@override
_i19.Stream<_i13.User> listCurrentUserFollowers() => (super.noSuchMethod(
Invocation.method(
#listCurrentUserFollowers,
[],
),
returnValue: _i19.Stream<_i13.User>.empty(),
) as _i19.Stream<_i13.User>);
@override
_i19.Stream<_i13.User> listCurrentUserFollowing() => (super.noSuchMethod(
Invocation.method(
#listCurrentUserFollowing,
[],
),
returnValue: _i19.Stream<_i13.User>.empty(),
) as _i19.Stream<_i13.User>);
@override
_i19.Stream<_i13.PublicKey> listPublicKeys([String? userLogin]) => (super.noSuchMethod(
Invocation.method(
#listPublicKeys,
[userLogin],
),
returnValue: _i19.Stream<_i13.PublicKey>.empty(),
) as _i19.Stream<_i13.PublicKey>);
@override
_i19.Future<_i13.PublicKey> createPublicKey(_i13.CreatePublicKey? key) => (super.noSuchMethod(
Invocation.method(
#createPublicKey,
[key],
),
returnValue: _i19.Future<_i13.PublicKey>.value(_FakePublicKey_75(
this,
Invocation.method(
#createPublicKey,
[key],
),
)),
) as _i19.Future<_i13.PublicKey>);
}
/// A class which mocks [Cache].
///
/// See the documentation for Mockito's code generation for more information.
class MockCache extends _i1.Mock implements _i24.Cache<_i35.Uint8List> {
MockCache() {
_i1.throwOnMissingStub(this);
}
@override
_i24.Entry<_i35.Uint8List> operator [](String? key) => (super.noSuchMethod(
Invocation.method(
#[],
[key],
),
returnValue: _FakeEntry_88<_i35.Uint8List>(
this,
Invocation.method(
#[],
[key],
),
),
) as _i24.Entry<_i35.Uint8List>);
@override
_i24.Cache<_i35.Uint8List> withPrefix(String? prefix) => (super.noSuchMethod(
Invocation.method(
#withPrefix,
[prefix],
),
returnValue: _FakeCache_89<_i35.Uint8List>(
this,
Invocation.method(
#withPrefix,
[prefix],
),
),
) as _i24.Cache<_i35.Uint8List>);
@override
_i24.Cache<S> withCodec<S>(_i22.Codec<S, _i35.Uint8List>? codec) => (super.noSuchMethod(
Invocation.method(
#withCodec,
[codec],
),
returnValue: _FakeCache_89<S>(
this,
Invocation.method(
#withCodec,
[codec],
),
),
) as _i24.Cache<S>);
@override
_i24.Cache<_i35.Uint8List> withTTL(Duration? ttl) => (super.noSuchMethod(
Invocation.method(
#withTTL,
[ttl],
),
returnValue: _FakeCache_89<_i35.Uint8List>(
this,
Invocation.method(
#withTTL,
[ttl],
),
),
) as _i24.Cache<_i35.Uint8List>);
}
/// A class which mocks [GitHub].
///
/// See the documentation for Mockito's code generation for more information.
class MockGitHub extends _i1.Mock implements _i13.GitHub {
MockGitHub() {
_i1.throwOnMissingStub(this);
}
@override
_i13.Authentication get auth => (super.noSuchMethod(
Invocation.getter(#auth),
returnValue: _FakeAuthentication_90(
this,
Invocation.getter(#auth),
),
) as _i13.Authentication);
@override
set auth(_i13.Authentication? _auth) => super.noSuchMethod(
Invocation.setter(
#auth,
_auth,
),
returnValueForMissingStub: null,
);
@override
String get endpoint => (super.noSuchMethod(
Invocation.getter(#endpoint),
returnValue: '',
) as String);
@override
String get version => (super.noSuchMethod(
Invocation.getter(#version),
returnValue: '',
) as String);
@override
_i2.Client get client => (super.noSuchMethod(
Invocation.getter(#client),
returnValue: _FakeClient_0(
this,
Invocation.getter(#client),
),
) as _i2.Client);
@override
_i13.ActivityService get activity => (super.noSuchMethod(
Invocation.getter(#activity),
returnValue: _FakeActivityService_91(
this,
Invocation.getter(#activity),
),
) as _i13.ActivityService);
@override
_i13.AuthorizationsService get authorizations => (super.noSuchMethod(
Invocation.getter(#authorizations),
returnValue: _FakeAuthorizationsService_92(
this,
Invocation.getter(#authorizations),
),
) as _i13.AuthorizationsService);
@override
_i13.GistsService get gists => (super.noSuchMethod(
Invocation.getter(#gists),
returnValue: _FakeGistsService_93(
this,
Invocation.getter(#gists),
),
) as _i13.GistsService);
@override
_i13.GitService get git => (super.noSuchMethod(
Invocation.getter(#git),
returnValue: _FakeGitService_94(
this,
Invocation.getter(#git),
),
) as _i13.GitService);
@override
_i13.IssuesService get issues => (super.noSuchMethod(
Invocation.getter(#issues),
returnValue: _FakeIssuesService_95(
this,
Invocation.getter(#issues),
),
) as _i13.IssuesService);
@override
_i13.MiscService get misc => (super.noSuchMethod(
Invocation.getter(#misc),
returnValue: _FakeMiscService_96(
this,
Invocation.getter(#misc),
),
) as _i13.MiscService);
@override
_i13.OrganizationsService get organizations => (super.noSuchMethod(
Invocation.getter(#organizations),
returnValue: _FakeOrganizationsService_97(
this,
Invocation.getter(#organizations),
),
) as _i13.OrganizationsService);
@override
_i13.PullRequestsService get pullRequests => (super.noSuchMethod(
Invocation.getter(#pullRequests),
returnValue: _FakePullRequestsService_98(
this,
Invocation.getter(#pullRequests),
),
) as _i13.PullRequestsService);
@override
_i13.RepositoriesService get repositories => (super.noSuchMethod(
Invocation.getter(#repositories),
returnValue: _FakeRepositoriesService_99(
this,
Invocation.getter(#repositories),
),
) as _i13.RepositoriesService);
@override
_i13.SearchService get search => (super.noSuchMethod(
Invocation.getter(#search),
returnValue: _FakeSearchService_100(
this,
Invocation.getter(#search),
),
) as _i13.SearchService);
@override
_i13.UrlShortenerService get urlShortener => (super.noSuchMethod(
Invocation.getter(#urlShortener),
returnValue: _FakeUrlShortenerService_101(
this,
Invocation.getter(#urlShortener),
),
) as _i13.UrlShortenerService);
@override
_i13.UsersService get users => (super.noSuchMethod(
Invocation.getter(#users),
returnValue: _FakeUsersService_102(
this,
Invocation.getter(#users),
),
) as _i13.UsersService);
@override
_i13.ChecksService get checks => (super.noSuchMethod(
Invocation.getter(#checks),
returnValue: _FakeChecksService_103(
this,
Invocation.getter(#checks),
),
) as _i13.ChecksService);
@override
_i19.Future<T> getJSON<S, T>(
String? path, {
int? statusCode,
void Function(_i2.Response)? fail,
Map<String, String>? headers,
Map<String, String>? params,
_i13.JSONConverter<S, T>? convert,
String? preview,
}) =>
(super.noSuchMethod(
Invocation.method(
#getJSON,
[path],
{
#statusCode: statusCode,
#fail: fail,
#headers: headers,
#params: params,
#convert: convert,
#preview: preview,
},
),
returnValue: _i27.ifNotNull(
_i27.dummyValueOrNull<T>(
this,
Invocation.method(
#getJSON,
[path],
{
#statusCode: statusCode,
#fail: fail,
#headers: headers,
#params: params,
#convert: convert,
#preview: preview,
},
),
),
(T v) => _i19.Future<T>.value(v),
) ??
_FakeFuture_22<T>(
this,
Invocation.method(
#getJSON,
[path],
{
#statusCode: statusCode,
#fail: fail,
#headers: headers,
#params: params,
#convert: convert,
#preview: preview,
},
),
),
) as _i19.Future<T>);
@override
_i19.Future<T> postJSON<S, T>(
String? path, {
int? statusCode,
void Function(_i2.Response)? fail,
Map<String, String>? headers,
Map<String, dynamic>? params,
_i13.JSONConverter<S, T>? convert,
dynamic body,
String? preview,
}) =>
(super.noSuchMethod(
Invocation.method(
#postJSON,
[path],
{
#statusCode: statusCode,
#fail: fail,
#headers: headers,
#params: params,
#convert: convert,
#body: body,
#preview: preview,
},
),
returnValue: _i40.postJsonShim<S, T>(
path,
statusCode: statusCode,
fail: fail,
headers: headers,
params: params,
convert: convert,
body: body,
preview: preview,
),
) as _i19.Future<T>);
@override
_i19.Future<T> putJSON<S, T>(
String? path, {
int? statusCode,
void Function(_i2.Response)? fail,
Map<String, String>? headers,
Map<String, dynamic>? params,
_i13.JSONConverter<S, T>? convert,
dynamic body,
String? preview,
}) =>
(super.noSuchMethod(
Invocation.method(
#putJSON,
[path],
{
#statusCode: statusCode,
#fail: fail,
#headers: headers,
#params: params,
#convert: convert,
#body: body,
#preview: preview,
},
),
returnValue: _i27.ifNotNull(
_i27.dummyValueOrNull<T>(
this,
Invocation.method(
#putJSON,
[path],
{
#statusCode: statusCode,
#fail: fail,
#headers: headers,
#params: params,
#convert: convert,
#body: body,
#preview: preview,
},
),
),
(T v) => _i19.Future<T>.value(v),
) ??
_FakeFuture_22<T>(
this,
Invocation.method(
#putJSON,
[path],
{
#statusCode: statusCode,
#fail: fail,
#headers: headers,
#params: params,
#convert: convert,
#body: body,
#preview: preview,
},
),
),
) as _i19.Future<T>);
@override
_i19.Future<T> patchJSON<S, T>(
String? path, {
int? statusCode,
void Function(_i2.Response)? fail,
Map<String, String>? headers,
Map<String, dynamic>? params,
_i13.JSONConverter<S, T>? convert,
dynamic body,
String? preview,
}) =>
(super.noSuchMethod(
Invocation.method(
#patchJSON,
[path],
{
#statusCode: statusCode,
#fail: fail,
#headers: headers,
#params: params,
#convert: convert,
#body: body,
#preview: preview,
},
),
returnValue: _i27.ifNotNull(
_i27.dummyValueOrNull<T>(
this,
Invocation.method(
#patchJSON,
[path],
{
#statusCode: statusCode,
#fail: fail,
#headers: headers,
#params: params,
#convert: convert,
#body: body,
#preview: preview,
},
),
),
(T v) => _i19.Future<T>.value(v),
) ??
_FakeFuture_22<T>(
this,
Invocation.method(
#patchJSON,
[path],
{
#statusCode: statusCode,
#fail: fail,
#headers: headers,
#params: params,
#convert: convert,
#body: body,
#preview: preview,
},
),
),
) as _i19.Future<T>);
@override
_i19.Future<T> requestJson<S, T>(
String? method,
String? path, {
int? statusCode,
void Function(_i2.Response)? fail,
Map<String, String>? headers,
Map<String, dynamic>? params,
_i13.JSONConverter<S, T?>? convert,
dynamic body,
String? preview,
}) =>
(super.noSuchMethod(
Invocation.method(
#requestJson,
[
method,
path,
],
{
#statusCode: statusCode,
#fail: fail,
#headers: headers,
#params: params,
#convert: convert,
#body: body,
#preview: preview,
},
),
returnValue: _i27.ifNotNull(
_i27.dummyValueOrNull<T>(
this,
Invocation.method(
#requestJson,
[
method,
path,
],
{
#statusCode: statusCode,
#fail: fail,
#headers: headers,
#params: params,
#convert: convert,
#body: body,
#preview: preview,
},
),
),
(T v) => _i19.Future<T>.value(v),
) ??
_FakeFuture_22<T>(
this,
Invocation.method(
#requestJson,
[
method,
path,
],
{
#statusCode: statusCode,
#fail: fail,
#headers: headers,
#params: params,
#convert: convert,
#body: body,
#preview: preview,
},
),
),
) as _i19.Future<T>);
@override
_i19.Future<_i2.Response> request(
String? method,
String? path, {
Map<String, String>? headers,
Map<String, dynamic>? params,
dynamic body,
int? statusCode,
void Function(_i2.Response)? fail,
String? preview,
}) =>
(super.noSuchMethod(
Invocation.method(
#request,
[
method,
path,
],
{
#headers: headers,
#params: params,
#body: body,
#statusCode: statusCode,
#fail: fail,
#preview: preview,
},
),
returnValue: _i19.Future<_i2.Response>.value(_FakeResponse_104(
this,
Invocation.method(
#request,
[
method,
path,
],
{
#headers: headers,
#params: params,
#body: body,
#statusCode: statusCode,
#fail: fail,
#preview: preview,
},
),
)),
) as _i19.Future<_i2.Response>);
@override
Never handleStatusCode(_i2.Response? response) => (super.noSuchMethod(
Invocation.method(
#handleStatusCode,
[response],
),
returnValue: null,
) as Never);
@override
void dispose() => super.noSuchMethod(
Invocation.method(
#dispose,
[],
),
returnValueForMissingStub: null,
);
}