gitlabtest

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

ErrNotFound indicates that the requested resource was not found.

View Source
var ErrNumericIDRequired = errors.New("the fake implementation only supports numeric group IDs")

ErrNumericIDRequired indicates that the fake implementation only supports numeric group IDs.

Functions

This section is empty.

Types

type FakeEpicIssuesService

type FakeEpicIssuesService struct {
	Epics  []*gitlab.Epic
	Issues []*gitlab.Issue

	gitlab.EpicIssuesServiceInterface
}

FakeEpicIssuesService is a partial implementation of the gitlab.EpicIssuesServiceInterface to be used in unit tests. Calling unimplemented methods will panic.

func (*FakeEpicIssuesService) ListEpicIssues

func (f *FakeEpicIssuesService) ListEpicIssues(groupID any, epicIID int, _ *gitlab.ListOptions, _ ...gitlab.RequestOptionFunc) ([]*gitlab.Issue, *gitlab.Response, error)

type FakeEpicsService

type FakeEpicsService struct {
	Epics []*gitlab.Epic

	gitlab.EpicsServiceInterface
}

FakeEpicsService is a partial implementation of the gitlab.EpicsServiceInterface to be used in unit tests. Calling unimplemented methods will panic.

func (*FakeEpicsService) GetEpic

func (f *FakeEpicsService) GetEpic(groupID any, epicIID int, _ ...gitlab.RequestOptionFunc) (*gitlab.Epic, *gitlab.Response, error)
func (f *FakeEpicsService) GetEpicLinks(groupID any, epicIID int, _ ...gitlab.RequestOptionFunc) ([]*gitlab.Epic, *gitlab.Response, error)

func (*FakeEpicsService) ListGroupEpics

func (f *FakeEpicsService) ListGroupEpics(groupID any, opt *gitlab.ListGroupEpicsOptions, _ ...gitlab.RequestOptionFunc) ([]*gitlab.Epic, *gitlab.Response, error)

type FakeTodosService added in v1.7.0

type FakeTodosService struct {
	Todos []*gitlab.Todo

	gitlab.TodosServiceInterface
}

FakeTodosService is a partial implementation of the gitlab.TodosServiceInterface for unit tests.

func (*FakeTodosService) ListTodos added in v1.7.0

ListTodos filters todos by state (if provided) and paginates results.

Jump to

Keyboard shortcuts

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