Help us shape the future of Go! Take the 2026 Go Developer Survey

gitlabtest

package
v1.38.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 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 {
	gitlab.EpicIssuesServiceInterface

	Epics  []*gitlab.Epic
	Issues []*gitlab.Issue
}

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 int64, _ *gitlab.ListOptions, _ ...gitlab.RequestOptionFunc) ([]*gitlab.Issue, *gitlab.Response, error)

type FakeEpicsService

type FakeEpicsService struct {
	gitlab.EpicsServiceInterface

	Epics []*gitlab.Epic
}

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 int64, _ ...gitlab.RequestOptionFunc) (*gitlab.Epic, *gitlab.Response, error)
func (f *FakeEpicsService) GetEpicLinks(groupID any, epicIID int64, _ ...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 {
	gitlab.TodosServiceInterface

	Todos []*gitlab.Todo
}

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