util

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServiceAccountName

func GetServiceAccountName(ctx context.Context) (string, error)

GetServiceAccountName returns the app's service account name.

func SetupTestingContext

func SetupTestingContext(ctx context.Context, cfg *config.Config, serviceAccount, host string, t testing.TB) (context.Context, *gerritpb.MockGerritClient, *tqtesting.Scheduler)

SetupTestingContext contains all the context setup things needed for testing. It returns the context, a MockGerritClient and a

Types

This section is empty.

Jump to

Keyboard shortcuts

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