common

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config  *config.Config
	Client  *client.Client
	Limiter *limiter.Limiter
)

Functions

func Init

func Init() (err error)

func Setup

func Setup(t *testing.T) (*http.ServeMux, *httptest.Server, *client.Client)

Setup sets up a test HTTP server along with a gitlab.Client that is configured to talk to that test server. Tests should register handlers on mux which provide mock responses for the API method being tested.

func Teardown

func Teardown(server *httptest.Server)

Teardown closes the test HTTP server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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