testing

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockServer added in v0.3.0

func NewMockServer(t *testing.T, mockJSONResponse string, statusCode int) *httptest.Server

NewMockServer creates a server to respond to API calls for unit tests

func RandSeq

func RandSeq(n int) string

RandSeq is used to get a string made up of n random lowercase letters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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