mocks_repository_github

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubRepositoryMock

type GithubRepositoryMock struct {
	mock.Mock
}

GithubRepositoryMock is an autogenerated mock type for the GithubRepositoryInterface type

func NewGithubRepositoryMock

func NewGithubRepositoryMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *GithubRepositoryMock

NewGithubRepositoryMock creates a new instance of GithubRepositoryMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*GithubRepositoryMock) CreateApp

func (_m *GithubRepositoryMock) CreateApp(ctx context.Context, app *github.AppConfig, createdBy uuid.UUID) (*ent.GithubApp, error)

CreateApp provides a mock function with given fields: ctx, app, createdBy

func (*GithubRepositoryMock) EXPECT

func (*GithubRepositoryMock) GetApp

func (_m *GithubRepositoryMock) GetApp(ctx context.Context) (*ent.GithubApp, error)

GetApp provides a mock function with given fields: ctx

func (*GithubRepositoryMock) GetApps

func (_m *GithubRepositoryMock) GetApps(ctx context.Context, withInstallations bool) ([]*ent.GithubApp, error)

GetApps provides a mock function with given fields: ctx, withInstallations

func (*GithubRepositoryMock) GetGithubAppByID

func (_m *GithubRepositoryMock) GetGithubAppByID(ctx context.Context, ID int64) (*ent.GithubApp, error)

GetGithubAppByID provides a mock function with given fields: ctx, ID

func (*GithubRepositoryMock) GetInstallationByID

func (_m *GithubRepositoryMock) GetInstallationByID(ctx context.Context, ID int64) (*ent.GithubInstallation, error)

GetInstallationByID provides a mock function with given fields: ctx, ID

func (*GithubRepositoryMock) GetInstallationsByAppID

func (_m *GithubRepositoryMock) GetInstallationsByAppID(ctx context.Context, appID int64) ([]*ent.GithubInstallation, error)

GetInstallationsByAppID provides a mock function with given fields: ctx, appID

func (*GithubRepositoryMock) GetInstallationsByCreator

func (_m *GithubRepositoryMock) GetInstallationsByCreator(ctx context.Context, createdBy uuid.UUID) ([]*ent.GithubInstallation, error)

GetInstallationsByCreator provides a mock function with given fields: ctx, createdBy

func (*GithubRepositoryMock) SetInstallationActive

func (_m *GithubRepositoryMock) SetInstallationActive(ctx context.Context, id int64, active bool) (*ent.GithubInstallation, error)

SetInstallationActive provides a mock function with given fields: ctx, id, active

func (*GithubRepositoryMock) SetInstallationSuspended

func (_m *GithubRepositoryMock) SetInstallationSuspended(ctx context.Context, id int64, suspended bool) (*ent.GithubInstallation, error)

SetInstallationSuspended provides a mock function with given fields: ctx, id, suspended

func (*GithubRepositoryMock) UpsertInstallation

func (_m *GithubRepositoryMock) UpsertInstallation(ctx context.Context, id int64, appID int64, accountID int64, accountLogin string, accountType githubinstallation.AccountType, accountURL string, repositorySelection githubinstallation.RepositorySelection, suspended bool, active bool, permissions schema.GithubInstallationPermissions, events []string) (*ent.GithubInstallation, error)

UpsertInstallation provides a mock function with given fields: ctx, id, appID, accountID, accountLogin, accountType, accountURL, repositorySelection, suspended, active, permissions, events

type GithubRepositoryMock_CreateApp_Call

type GithubRepositoryMock_CreateApp_Call struct {
	*mock.Call
}

GithubRepositoryMock_CreateApp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateApp'

func (*GithubRepositoryMock_CreateApp_Call) Return

func (*GithubRepositoryMock_CreateApp_Call) Run

func (*GithubRepositoryMock_CreateApp_Call) RunAndReturn

type GithubRepositoryMock_Expecter

type GithubRepositoryMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*GithubRepositoryMock_Expecter) CreateApp

func (_e *GithubRepositoryMock_Expecter) CreateApp(ctx interface{}, app interface{}, createdBy interface{}) *GithubRepositoryMock_CreateApp_Call

CreateApp is a helper method to define mock.On call

  • ctx context.Context
  • app *github.AppConfig
  • createdBy uuid.UUID

func (*GithubRepositoryMock_Expecter) GetApp

GetApp is a helper method to define mock.On call

  • ctx context.Context

func (*GithubRepositoryMock_Expecter) GetApps

func (_e *GithubRepositoryMock_Expecter) GetApps(ctx interface{}, withInstallations interface{}) *GithubRepositoryMock_GetApps_Call

GetApps is a helper method to define mock.On call

  • ctx context.Context
  • withInstallations bool

func (*GithubRepositoryMock_Expecter) GetGithubAppByID

func (_e *GithubRepositoryMock_Expecter) GetGithubAppByID(ctx interface{}, ID interface{}) *GithubRepositoryMock_GetGithubAppByID_Call

GetGithubAppByID is a helper method to define mock.On call

  • ctx context.Context
  • ID int64

func (*GithubRepositoryMock_Expecter) GetInstallationByID

func (_e *GithubRepositoryMock_Expecter) GetInstallationByID(ctx interface{}, ID interface{}) *GithubRepositoryMock_GetInstallationByID_Call

GetInstallationByID is a helper method to define mock.On call

  • ctx context.Context
  • ID int64

func (*GithubRepositoryMock_Expecter) GetInstallationsByAppID

func (_e *GithubRepositoryMock_Expecter) GetInstallationsByAppID(ctx interface{}, appID interface{}) *GithubRepositoryMock_GetInstallationsByAppID_Call

GetInstallationsByAppID is a helper method to define mock.On call

  • ctx context.Context
  • appID int64

func (*GithubRepositoryMock_Expecter) GetInstallationsByCreator

func (_e *GithubRepositoryMock_Expecter) GetInstallationsByCreator(ctx interface{}, createdBy interface{}) *GithubRepositoryMock_GetInstallationsByCreator_Call

GetInstallationsByCreator is a helper method to define mock.On call

  • ctx context.Context
  • createdBy uuid.UUID

func (*GithubRepositoryMock_Expecter) SetInstallationActive

func (_e *GithubRepositoryMock_Expecter) SetInstallationActive(ctx interface{}, id interface{}, active interface{}) *GithubRepositoryMock_SetInstallationActive_Call

SetInstallationActive is a helper method to define mock.On call

  • ctx context.Context
  • id int64
  • active bool

func (*GithubRepositoryMock_Expecter) SetInstallationSuspended

func (_e *GithubRepositoryMock_Expecter) SetInstallationSuspended(ctx interface{}, id interface{}, suspended interface{}) *GithubRepositoryMock_SetInstallationSuspended_Call

SetInstallationSuspended is a helper method to define mock.On call

  • ctx context.Context
  • id int64
  • suspended bool

func (*GithubRepositoryMock_Expecter) UpsertInstallation

func (_e *GithubRepositoryMock_Expecter) UpsertInstallation(ctx interface{}, id interface{}, appID interface{}, accountID interface{}, accountLogin interface{}, accountType interface{}, accountURL interface{}, repositorySelection interface{}, suspended interface{}, active interface{}, permissions interface{}, events interface{}) *GithubRepositoryMock_UpsertInstallation_Call

UpsertInstallation is a helper method to define mock.On call

  • ctx context.Context
  • id int64
  • appID int64
  • accountID int64
  • accountLogin string
  • accountType githubinstallation.AccountType
  • accountURL string
  • repositorySelection githubinstallation.RepositorySelection
  • suspended bool
  • active bool
  • permissions schema.GithubInstallationPermissions
  • events []string

type GithubRepositoryMock_GetApp_Call

type GithubRepositoryMock_GetApp_Call struct {
	*mock.Call
}

GithubRepositoryMock_GetApp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetApp'

func (*GithubRepositoryMock_GetApp_Call) Return

func (*GithubRepositoryMock_GetApp_Call) Run

func (*GithubRepositoryMock_GetApp_Call) RunAndReturn

type GithubRepositoryMock_GetApps_Call

type GithubRepositoryMock_GetApps_Call struct {
	*mock.Call
}

GithubRepositoryMock_GetApps_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetApps'

func (*GithubRepositoryMock_GetApps_Call) Return

func (*GithubRepositoryMock_GetApps_Call) Run

func (_c *GithubRepositoryMock_GetApps_Call) Run(run func(ctx context.Context, withInstallations bool)) *GithubRepositoryMock_GetApps_Call

func (*GithubRepositoryMock_GetApps_Call) RunAndReturn

type GithubRepositoryMock_GetGithubAppByID_Call

type GithubRepositoryMock_GetGithubAppByID_Call struct {
	*mock.Call
}

GithubRepositoryMock_GetGithubAppByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGithubAppByID'

func (*GithubRepositoryMock_GetGithubAppByID_Call) Return

func (*GithubRepositoryMock_GetGithubAppByID_Call) Run

func (*GithubRepositoryMock_GetGithubAppByID_Call) RunAndReturn

type GithubRepositoryMock_GetInstallationByID_Call

type GithubRepositoryMock_GetInstallationByID_Call struct {
	*mock.Call
}

GithubRepositoryMock_GetInstallationByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstallationByID'

func (*GithubRepositoryMock_GetInstallationByID_Call) Return

func (*GithubRepositoryMock_GetInstallationByID_Call) Run

func (*GithubRepositoryMock_GetInstallationByID_Call) RunAndReturn

type GithubRepositoryMock_GetInstallationsByAppID_Call

type GithubRepositoryMock_GetInstallationsByAppID_Call struct {
	*mock.Call
}

GithubRepositoryMock_GetInstallationsByAppID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstallationsByAppID'

func (*GithubRepositoryMock_GetInstallationsByAppID_Call) Return

func (*GithubRepositoryMock_GetInstallationsByAppID_Call) Run

func (*GithubRepositoryMock_GetInstallationsByAppID_Call) RunAndReturn

type GithubRepositoryMock_GetInstallationsByCreator_Call

type GithubRepositoryMock_GetInstallationsByCreator_Call struct {
	*mock.Call
}

GithubRepositoryMock_GetInstallationsByCreator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstallationsByCreator'

func (*GithubRepositoryMock_GetInstallationsByCreator_Call) Return

func (*GithubRepositoryMock_GetInstallationsByCreator_Call) Run

func (*GithubRepositoryMock_GetInstallationsByCreator_Call) RunAndReturn

type GithubRepositoryMock_SetInstallationActive_Call

type GithubRepositoryMock_SetInstallationActive_Call struct {
	*mock.Call
}

GithubRepositoryMock_SetInstallationActive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetInstallationActive'

func (*GithubRepositoryMock_SetInstallationActive_Call) Return

func (*GithubRepositoryMock_SetInstallationActive_Call) Run

func (*GithubRepositoryMock_SetInstallationActive_Call) RunAndReturn

type GithubRepositoryMock_SetInstallationSuspended_Call

type GithubRepositoryMock_SetInstallationSuspended_Call struct {
	*mock.Call
}

GithubRepositoryMock_SetInstallationSuspended_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetInstallationSuspended'

func (*GithubRepositoryMock_SetInstallationSuspended_Call) Return

func (*GithubRepositoryMock_SetInstallationSuspended_Call) Run

func (*GithubRepositoryMock_SetInstallationSuspended_Call) RunAndReturn

type GithubRepositoryMock_UpsertInstallation_Call

type GithubRepositoryMock_UpsertInstallation_Call struct {
	*mock.Call
}

GithubRepositoryMock_UpsertInstallation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertInstallation'

func (*GithubRepositoryMock_UpsertInstallation_Call) Return

func (*GithubRepositoryMock_UpsertInstallation_Call) Run

func (_c *GithubRepositoryMock_UpsertInstallation_Call) Run(run func(ctx context.Context, id int64, appID int64, accountID int64, accountLogin string, accountType githubinstallation.AccountType, accountURL string, repositorySelection githubinstallation.RepositorySelection, suspended bool, active bool, permissions schema.GithubInstallationPermissions, events []string)) *GithubRepositoryMock_UpsertInstallation_Call

Jump to

Keyboard shortcuts

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