mock_repositories

package
v0.0.68 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mock_repositories is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepositoryService

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

MockRepositoryService is a mock of RepositoryService interface.

func NewMockRepositoryService

func NewMockRepositoryService(ctrl *gomock.Controller) *MockRepositoryService

NewMockRepositoryService creates a new mock instance.

func (*MockRepositoryService) CreateRepository

func (m *MockRepositoryService) CreateRepository(ctx context.Context, provider *db.Provider, projectID uuid.UUID, fetchByProps *properties.Properties) (*v1.Repository, error)

CreateRepository mocks base method.

func (*MockRepositoryService) DeleteByID

func (m *MockRepositoryService) DeleteByID(ctx context.Context, repoID, projectID uuid.UUID) error

DeleteByID mocks base method.

func (*MockRepositoryService) DeleteByName

func (m *MockRepositoryService) DeleteByName(ctx context.Context, repoOwner, repoName string, projectID uuid.UUID, providerName string) error

DeleteByName mocks base method.

func (*MockRepositoryService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepositoryService) GetRepositoryById

func (m *MockRepositoryService) GetRepositoryById(ctx context.Context, repositoryID, projectID uuid.UUID) (db.Repository, error)

GetRepositoryById mocks base method.

func (*MockRepositoryService) GetRepositoryByName

func (m *MockRepositoryService) GetRepositoryByName(ctx context.Context, repoOwner, repoName string, projectID uuid.UUID, providerName string) (db.Repository, error)

GetRepositoryByName mocks base method.

func (*MockRepositoryService) ListRepositories

func (m *MockRepositoryService) ListRepositories(ctx context.Context, projectID, providerID uuid.UUID) ([]*models.EntityWithProperties, error)

ListRepositories mocks base method.

type MockRepositoryServiceMockRecorder

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

MockRepositoryServiceMockRecorder is the mock recorder for MockRepositoryService.

func (*MockRepositoryServiceMockRecorder) CreateRepository

func (mr *MockRepositoryServiceMockRecorder) CreateRepository(ctx, provider, projectID, fetchByProps any) *gomock.Call

CreateRepository indicates an expected call of CreateRepository.

func (*MockRepositoryServiceMockRecorder) DeleteByID

func (mr *MockRepositoryServiceMockRecorder) DeleteByID(ctx, repoID, projectID any) *gomock.Call

DeleteByID indicates an expected call of DeleteByID.

func (*MockRepositoryServiceMockRecorder) DeleteByName

func (mr *MockRepositoryServiceMockRecorder) DeleteByName(ctx, repoOwner, repoName, projectID, providerName any) *gomock.Call

DeleteByName indicates an expected call of DeleteByName.

func (*MockRepositoryServiceMockRecorder) GetRepositoryById

func (mr *MockRepositoryServiceMockRecorder) GetRepositoryById(ctx, repositoryID, projectID any) *gomock.Call

GetRepositoryById indicates an expected call of GetRepositoryById.

func (*MockRepositoryServiceMockRecorder) GetRepositoryByName

func (mr *MockRepositoryServiceMockRecorder) GetRepositoryByName(ctx, repoOwner, repoName, projectID, providerName any) *gomock.Call

GetRepositoryByName indicates an expected call of GetRepositoryByName.

func (*MockRepositoryServiceMockRecorder) ListRepositories

func (mr *MockRepositoryServiceMockRecorder) ListRepositories(ctx, projectID, providerID any) *gomock.Call

ListRepositories indicates an expected call of ListRepositories.

Directories

Path Synopsis
Package fixtures contains code for creating RepositoryService fixtures and is used in various parts of the code.
Package fixtures contains code for creating RepositoryService fixtures and is used in various parts of the code.

Jump to

Keyboard shortcuts

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