fakes

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Querier

type Querier struct {
	CreateApprovalCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Arg postgres.CreateApprovalParams
		}
		Returns struct {
			Approval postgres.Approval
			Error    error
		}
		Stub func(context.Context, postgres.CreateApprovalParams) (postgres.Approval, error)
		// contains filtered or unexported fields
	}
	CreateApprovalYesAnswerCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Arg postgres.CreateApprovalYesAnswerParams
		}
		Returns struct {
			ApprovalYesAnswer postgres.ApprovalYesAnswer
			Error             error
		}
		Stub func(context.Context, postgres.CreateApprovalYesAnswerParams) (postgres.ApprovalYesAnswer, error)
		// contains filtered or unexported fields
	}
	CreateApprovalYesAnswerByUuidCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Arg postgres.CreateApprovalYesAnswerByUuidParams
		}
		Returns struct {
			ApprovalYesAnswer postgres.ApprovalYesAnswer
			Error             error
		}
		Stub func(context.Context, postgres.CreateApprovalYesAnswerByUuidParams) (postgres.ApprovalYesAnswer, error)
		// contains filtered or unexported fields
	}
	CreateGithubUserCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Arg postgres.CreateGithubUserParams
		}
		Returns struct {
			GhUser postgres.GhUser
			Error  error
		}
		Stub func(context.Context, postgres.CreateGithubUserParams) (postgres.GhUser, error)
		// contains filtered or unexported fields
	}
	CreateInstallationCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Id  int32
		}
		Returns struct {
			Int32 int32
			Error error
		}
		Stub func(context.Context, int32) (int32, error)
		// contains filtered or unexported fields
	}
	CreatePullRequestCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Arg postgres.CreatePullRequestParams
		}
		Returns struct {
			PullRequest postgres.PullRequest
			Error       error
		}
		Stub func(context.Context, postgres.CreatePullRequestParams) (postgres.PullRequest, error)
		// contains filtered or unexported fields
	}
	CreatePullRequestActionCall struct {
		CallCount int
		Receives  struct {
			Ctx  context.Context
			Name string
		}
		Returns struct {
			String string
			Error  error
		}
		Stub func(context.Context, string) (string, error)
		// contains filtered or unexported fields
	}
	CreatePullRequestEventCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Arg postgres.CreatePullRequestEventParams
		}
		Returns struct {
			PullRequestEvent postgres.PullRequestEvent
			Error            error
		}
		Stub func(context.Context, postgres.CreatePullRequestEventParams) (postgres.PullRequestEvent, error)
		// contains filtered or unexported fields
	}
	CreateRepoCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Arg postgres.CreateRepoParams
		}
		Returns struct {
			Repo  postgres.Repo
			Error error
		}
		Stub func(context.Context, postgres.CreateRepoParams) (postgres.Repo, error)
		// contains filtered or unexported fields
	}
	DeleteApprovalCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Id  int32
		}
		Returns struct {
			Error error
		}
		Stub func(context.Context, int32) error
		// contains filtered or unexported fields
	}
	DeleteApprovalYesAnswerCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Arg postgres.DeleteApprovalYesAnswerParams
		}
		Returns struct {
			Error error
		}
		Stub func(context.Context, postgres.DeleteApprovalYesAnswerParams) error
		// contains filtered or unexported fields
	}
	DeleteApprovalYesAnswerByUuidCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Arg postgres.DeleteApprovalYesAnswerByUuidParams
		}
		Returns struct {
			Error error
		}
		Stub func(context.Context, postgres.DeleteApprovalYesAnswerByUuidParams) error
		// contains filtered or unexported fields
	}
	DeleteGithubUserCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Id  int32
		}
		Returns struct {
			Error error
		}
		Stub func(context.Context, int32) error
		// contains filtered or unexported fields
	}
	DeleteInstallationCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Id  int32
		}
		Returns struct {
			Error error
		}
		Stub func(context.Context, int32) error
		// contains filtered or unexported fields
	}
	DeletePullRequestCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Id  int32
		}
		Returns struct {
			Error error
		}
		Stub func(context.Context, int32) error
		// contains filtered or unexported fields
	}
	DeletePullRequestActionCall struct {
		CallCount int
		Receives  struct {
			Ctx  context.Context
			Name string
		}
		Returns struct {
			Error error
		}
		Stub func(context.Context, string) error
		// contains filtered or unexported fields
	}
	DeletePullRequestEventCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Id  int32
		}
		Returns struct {
			Error error
		}
		Stub func(context.Context, int32) error
		// contains filtered or unexported fields
	}
	DeleteRepoCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Id  int32
		}
		Returns struct {
			Error error
		}
		Stub func(context.Context, int32) error
		// contains filtered or unexported fields
	}
	GetApprovalByIdCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Id  int32
		}
		Returns struct {
			Approval postgres.Approval
			Error    error
		}
		Stub func(context.Context, int32) (postgres.Approval, error)
		// contains filtered or unexported fields
	}
	GetApprovalByPrIDShaCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Arg postgres.GetApprovalByPrIDShaParams
		}
		Returns struct {
			Approval postgres.Approval
			Error    error
		}
		Stub func(context.Context, postgres.GetApprovalByPrIDShaParams) (postgres.Approval, error)
		// contains filtered or unexported fields
	}
	GetApprovalByUuidCall struct {
		CallCount int
		Receives  struct {
			Ctx  context.Context
			Uuid string
		}
		Returns struct {
			Approval postgres.Approval
			Error    error
		}
		Stub func(context.Context, string) (postgres.Approval, error)
		// contains filtered or unexported fields
	}
	GetApprovalSchemaByIdCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Id  int32
		}
		Returns struct {
			ApprovalSchema postgres.ApprovalSchema
			Error          error
		}
		Stub func(context.Context, int32) (postgres.ApprovalSchema, error)
		// contains filtered or unexported fields
	}
	GetApprovalsCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
		}
		Returns struct {
			ApprovalSlice []postgres.Approval
			Error         error
		}
		Stub func(context.Context) ([]postgres.Approval, error)
		// contains filtered or unexported fields
	}
	GetCreateStatusInputsFromApprovalUuidCall struct {
		CallCount int
		Receives  struct {
			Ctx  context.Context
			Uuid string
		}
		Returns struct {
			GetCreateStatusInputsFromApprovalUuidRow postgres.GetCreateStatusInputsFromApprovalUuidRow
			Error                                    error
		}
		Stub func(context.Context, string) (postgres.GetCreateStatusInputsFromApprovalUuidRow, error)
		// contains filtered or unexported fields
	}
	GetDefaultApprovalSchemaCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
		}
		Returns struct {
			ApprovalSchema postgres.ApprovalSchema
			Error          error
		}
		Stub func(context.Context) (postgres.ApprovalSchema, error)
		// contains filtered or unexported fields
	}
	GetGithubUserCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Id  int32
		}
		Returns struct {
			GhUser postgres.GhUser
			Error  error
		}
		Stub func(context.Context, int32) (postgres.GhUser, error)
		// contains filtered or unexported fields
	}
	GetGithubUsersCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
		}
		Returns struct {
			GhUserSlice []postgres.GhUser
			Error       error
		}
		Stub func(context.Context) ([]postgres.GhUser, error)
		// contains filtered or unexported fields
	}
	GetInstallationCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Id  int32
		}
		Returns struct {
			Int32 int32
			Error error
		}
		Stub func(context.Context, int32) (int32, error)
		// contains filtered or unexported fields
	}
	GetInstallationsCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
		}
		Returns struct {
			Int32Slice []int32
			Error      error
		}
		Stub func(context.Context) ([]int32, error)
		// contains filtered or unexported fields
	}
	GetPullRequestActionCall struct {
		CallCount int
		Receives  struct {
			Ctx  context.Context
			Name string
		}
		Returns struct {
			String string
			Error  error
		}
		Stub func(context.Context, string) (string, error)
		// contains filtered or unexported fields
	}
	GetPullRequestActionsCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
		}
		Returns struct {
			StringSlice []string
			Error       error
		}
		Stub func(context.Context) ([]string, error)
		// contains filtered or unexported fields
	}
	GetPullRequestByIdCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Id  int32
		}
		Returns struct {
			PullRequest postgres.PullRequest
			Error       error
		}
		Stub func(context.Context, int32) (postgres.PullRequest, error)
		// contains filtered or unexported fields
	}
	GetPullRequestByRepoIdPrIdCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Arg postgres.GetPullRequestByRepoIdPrIdParams
		}
		Returns struct {
			PullRequest postgres.PullRequest
			Error       error
		}
		Stub func(context.Context, postgres.GetPullRequestByRepoIdPrIdParams) (postgres.PullRequest, error)
		// contains filtered or unexported fields
	}
	GetPullRequestEventCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Id  int32
		}
		Returns struct {
			PullRequestEvent postgres.PullRequestEvent
			Error            error
		}
		Stub func(context.Context, int32) (postgres.PullRequestEvent, error)
		// contains filtered or unexported fields
	}
	GetPullRequestEventsCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
		}
		Returns struct {
			PullRequestEventSlice []postgres.PullRequestEvent
			Error                 error
		}
		Stub func(context.Context) ([]postgres.PullRequestEvent, error)
		// contains filtered or unexported fields
	}
	GetPullRequestsCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
		}
		Returns struct {
			PullRequestSlice []postgres.PullRequest
			Error            error
		}
		Stub func(context.Context) ([]postgres.PullRequest, error)
		// contains filtered or unexported fields
	}
	GetRepoCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Id  int32
		}
		Returns struct {
			Repo  postgres.Repo
			Error error
		}
		Stub func(context.Context, int32) (postgres.Repo, error)
		// contains filtered or unexported fields
	}
	GetReposCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
		}
		Returns struct {
			RepoSlice []postgres.Repo
			Error     error
		}
		Stub func(context.Context) ([]postgres.Repo, error)
		// contains filtered or unexported fields
	}
	GetSortedApprovalYesNoQuestionAnswersByUuidCall struct {
		CallCount int
		Receives  struct {
			Ctx  context.Context
			Uuid string
		}
		Returns struct {
			GetSortedApprovalYesNoQuestionAnswersByUuidRowSlice []postgres.GetSortedApprovalYesNoQuestionAnswersByUuidRow
			Error                                               error
		}
		Stub func(context.Context, string) ([]postgres.GetSortedApprovalYesNoQuestionAnswersByUuidRow, error)
		// contains filtered or unexported fields
	}
	GetSortedApprovalYesNoQuestionsBySchemaIdCall struct {
		CallCount int
		Receives  struct {
			Ctx  context.Context
			Name string
		}
		Returns struct {
			GetSortedApprovalYesNoQuestionsBySchemaIdRowSlice []postgres.GetSortedApprovalYesNoQuestionsBySchemaIdRow
			Error                                             error
		}
		Stub func(context.Context, string) ([]postgres.GetSortedApprovalYesNoQuestionsBySchemaIdRow, error)
		// contains filtered or unexported fields
	}
	UpdateApprovalByUuidCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Arg postgres.UpdateApprovalByUuidParams
		}
		Returns struct {
			Error error
		}
		Stub func(context.Context, postgres.UpdateApprovalByUuidParams) error
		// contains filtered or unexported fields
	}
	UpdatePullRequestIsMergedCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Arg postgres.UpdatePullRequestIsMergedParams
		}
		Returns struct {
			PullRequest postgres.PullRequest
			Error       error
		}
		Stub func(context.Context, postgres.UpdatePullRequestIsMergedParams) (postgres.PullRequest, error)
		// contains filtered or unexported fields
	}
	UpdateRepoNameCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Arg postgres.UpdateRepoNameParams
		}
		Returns struct {
			Repo  postgres.Repo
			Error error
		}
		Stub func(context.Context, postgres.UpdateRepoNameParams) (postgres.Repo, error)
		// contains filtered or unexported fields
	}
	UpdateRepoOrgCall struct {
		CallCount int
		Receives  struct {
			Ctx context.Context
			Arg postgres.UpdateRepoOrgParams
		}
		Returns struct {
			Repo  postgres.Repo
			Error error
		}
		Stub func(context.Context, postgres.UpdateRepoOrgParams) (postgres.Repo, error)
		// contains filtered or unexported fields
	}
}

func (*Querier) CreateApproval

func (f *Querier) CreateApproval(param1 context.Context, param2 postgres.CreateApprovalParams) (postgres.Approval, error)

func (*Querier) CreateApprovalYesAnswer added in v0.0.2

func (f *Querier) CreateApprovalYesAnswer(param1 context.Context, param2 postgres.CreateApprovalYesAnswerParams) (postgres.ApprovalYesAnswer, error)

func (*Querier) CreateApprovalYesAnswerByUuid added in v0.0.2

func (f *Querier) CreateApprovalYesAnswerByUuid(param1 context.Context, param2 postgres.CreateApprovalYesAnswerByUuidParams) (postgres.ApprovalYesAnswer, error)

func (*Querier) CreateGithubUser

func (f *Querier) CreateGithubUser(param1 context.Context, param2 postgres.CreateGithubUserParams) (postgres.GhUser, error)

func (*Querier) CreateInstallation

func (f *Querier) CreateInstallation(param1 context.Context, param2 int32) (int32, error)

func (*Querier) CreatePullRequest

func (f *Querier) CreatePullRequest(param1 context.Context, param2 postgres.CreatePullRequestParams) (postgres.PullRequest, error)

func (*Querier) CreatePullRequestAction

func (f *Querier) CreatePullRequestAction(param1 context.Context, param2 string) (string, error)

func (*Querier) CreatePullRequestEvent

func (f *Querier) CreatePullRequestEvent(param1 context.Context, param2 postgres.CreatePullRequestEventParams) (postgres.PullRequestEvent, error)

func (*Querier) CreateRepo

func (f *Querier) CreateRepo(param1 context.Context, param2 postgres.CreateRepoParams) (postgres.Repo, error)

func (*Querier) DeleteApproval

func (f *Querier) DeleteApproval(param1 context.Context, param2 int32) error

func (*Querier) DeleteApprovalYesAnswer added in v0.0.2

func (f *Querier) DeleteApprovalYesAnswer(param1 context.Context, param2 postgres.DeleteApprovalYesAnswerParams) error

func (*Querier) DeleteApprovalYesAnswerByUuid added in v0.0.2

func (f *Querier) DeleteApprovalYesAnswerByUuid(param1 context.Context, param2 postgres.DeleteApprovalYesAnswerByUuidParams) error

func (*Querier) DeleteGithubUser

func (f *Querier) DeleteGithubUser(param1 context.Context, param2 int32) error

func (*Querier) DeleteInstallation

func (f *Querier) DeleteInstallation(param1 context.Context, param2 int32) error

func (*Querier) DeletePullRequest

func (f *Querier) DeletePullRequest(param1 context.Context, param2 int32) error

func (*Querier) DeletePullRequestAction

func (f *Querier) DeletePullRequestAction(param1 context.Context, param2 string) error

func (*Querier) DeletePullRequestEvent

func (f *Querier) DeletePullRequestEvent(param1 context.Context, param2 int32) error

func (*Querier) DeleteRepo

func (f *Querier) DeleteRepo(param1 context.Context, param2 int32) error

func (*Querier) GetApprovalById

func (f *Querier) GetApprovalById(param1 context.Context, param2 int32) (postgres.Approval, error)

func (*Querier) GetApprovalByPrIDSha

func (f *Querier) GetApprovalByPrIDSha(param1 context.Context, param2 postgres.GetApprovalByPrIDShaParams) (postgres.Approval, error)

func (*Querier) GetApprovalByUuid

func (f *Querier) GetApprovalByUuid(param1 context.Context, param2 string) (postgres.Approval, error)

func (*Querier) GetApprovalSchemaById added in v0.0.2

func (f *Querier) GetApprovalSchemaById(param1 context.Context, param2 int32) (postgres.ApprovalSchema, error)

func (*Querier) GetApprovals

func (f *Querier) GetApprovals(param1 context.Context) ([]postgres.Approval, error)

func (*Querier) GetCreateStatusInputsFromApprovalUuid

func (f *Querier) GetCreateStatusInputsFromApprovalUuid(param1 context.Context, param2 string) (postgres.GetCreateStatusInputsFromApprovalUuidRow, error)

func (*Querier) GetDefaultApprovalSchema added in v0.0.2

func (f *Querier) GetDefaultApprovalSchema(param1 context.Context) (postgres.ApprovalSchema, error)

func (*Querier) GetGithubUser

func (f *Querier) GetGithubUser(param1 context.Context, param2 int32) (postgres.GhUser, error)

func (*Querier) GetGithubUsers

func (f *Querier) GetGithubUsers(param1 context.Context) ([]postgres.GhUser, error)

func (*Querier) GetInstallation

func (f *Querier) GetInstallation(param1 context.Context, param2 int32) (int32, error)

func (*Querier) GetInstallations

func (f *Querier) GetInstallations(param1 context.Context) ([]int32, error)

func (*Querier) GetPullRequestAction

func (f *Querier) GetPullRequestAction(param1 context.Context, param2 string) (string, error)

func (*Querier) GetPullRequestActions

func (f *Querier) GetPullRequestActions(param1 context.Context) ([]string, error)

func (*Querier) GetPullRequestById

func (f *Querier) GetPullRequestById(param1 context.Context, param2 int32) (postgres.PullRequest, error)

func (*Querier) GetPullRequestByRepoIdPrId

func (f *Querier) GetPullRequestByRepoIdPrId(param1 context.Context, param2 postgres.GetPullRequestByRepoIdPrIdParams) (postgres.PullRequest, error)

func (*Querier) GetPullRequestEvent

func (f *Querier) GetPullRequestEvent(param1 context.Context, param2 int32) (postgres.PullRequestEvent, error)

func (*Querier) GetPullRequestEvents

func (f *Querier) GetPullRequestEvents(param1 context.Context) ([]postgres.PullRequestEvent, error)

func (*Querier) GetPullRequests

func (f *Querier) GetPullRequests(param1 context.Context) ([]postgres.PullRequest, error)

func (*Querier) GetRepo

func (f *Querier) GetRepo(param1 context.Context, param2 int32) (postgres.Repo, error)

func (*Querier) GetRepos

func (f *Querier) GetRepos(param1 context.Context) ([]postgres.Repo, error)

func (*Querier) GetSortedApprovalYesNoQuestionAnswersByUuid added in v0.0.2

func (f *Querier) GetSortedApprovalYesNoQuestionAnswersByUuid(param1 context.Context, param2 string) ([]postgres.GetSortedApprovalYesNoQuestionAnswersByUuidRow, error)

func (*Querier) GetSortedApprovalYesNoQuestionsBySchemaId added in v0.0.2

func (f *Querier) GetSortedApprovalYesNoQuestionsBySchemaId(param1 context.Context, param2 string) ([]postgres.GetSortedApprovalYesNoQuestionsBySchemaIdRow, error)

func (*Querier) UpdateApprovalByUuid

func (f *Querier) UpdateApprovalByUuid(param1 context.Context, param2 postgres.UpdateApprovalByUuidParams) error

func (*Querier) UpdatePullRequestIsMerged

func (f *Querier) UpdatePullRequestIsMerged(param1 context.Context, param2 postgres.UpdatePullRequestIsMergedParams) (postgres.PullRequest, error)

func (*Querier) UpdateRepoName

func (f *Querier) UpdateRepoName(param1 context.Context, param2 postgres.UpdateRepoNameParams) (postgres.Repo, error)

func (*Querier) UpdateRepoOrg

func (f *Querier) UpdateRepoOrg(param1 context.Context, param2 postgres.UpdateRepoOrgParams) (postgres.Repo, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL