functiontest

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package functiontest holds an httptest-backed GitLab client for the builtin Function tests. It lives in a non-_test.go file so sibling packages' tests can import it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitlabClient

func NewGitlabClient(t *testing.T, handler http.HandlerFunc) *gitlab.Client

NewGitlabClient returns a *gitlab.Client wired to an httptest server running handler, closed on cleanup. Retries are off: the upstream client retries 5xx five times with exponential backoff, stretching every error-path test.

Types

This section is empty.

Jump to

Keyboard shortcuts

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