fixtures

package
v0.0.0-...-e8051b5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ExampleGameFramesResponse = `` /* 3196-byte string literal not displayed */
View Source
const ExampleGameResponse = `` /* 1854-byte string literal not displayed */

Variables

This section is empty.

Functions

func StubEngineServer

func StubEngineServer(handler http.HandlerFunc) *httptest.Server

Helper for setting up an engine endpoint that returns a stub response

func TestInRootDir

func TestInRootDir()

Helper to change the current directory to the project root, instead of the directory the test is located in. Required in some tests to ensure assets are located correctly.

func TestRequest

func TestRequest(t *testing.T, method, url string, body io.Reader) (*http.Request, *httptest.ResponseRecorder)

Helper for creating a request and recording the response

Types

This section is empty.

Jump to

Keyboard shortcuts

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