test_util

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const API_KEY = "abcdef0123456789abcdef0123456789"
View Source
const COMMON_FIXTURES_PATH = FIXTURES_DIR + "common/"
View Source
const FIXTURES_DIR = "../test_fixtures/"

Variables

This section is empty.

Functions

func NewTestServer

func NewTestServer(t *testing.T, fixture_dir string, fn func(http.ResponseWriter, *http.Request)) (*httptest.Server, error)

func NewTestSharedServer

func NewTestSharedServer(t *testing.T, fn func(http.ResponseWriter, *http.Request)) (*httptest.Server, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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