test_utils

package
v0.0.0-...-294529b Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateClientContext

func GenerateClientContext(secretKey string, serverURL string) context.Context

GenerateClientContext generates a new context.Context and sets the GrowthBook API domain and secret key to access GrowthBook API

func GenerateClientCtxRemoteServer

func GenerateClientCtxRemoteServer(t *testing.T) context.Context

func GetGrowthBookMockServerHandler

func GetGrowthBookMockServerHandler(t *testing.T, secretKey string, projects []models.Project) http.HandlerFunc

func GrowthBookMockServer

func GrowthBookMockServer(
	t *testing.T,
	handler http.HandlerFunc,
) *httptest.Server

Types

This section is empty.

Jump to

Keyboard shortcuts

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