testutil

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer added in v0.3.0

func NewServer() (*httptest.Server, *http.ServeMux)

NewServer starts and returns a new HTTP Server.

It is used for end-to-end HTTP tests and is preconfigured to return a B2 API authorization response. Users should attach their own HandleFunc functions to the returned mux.

It is callers responsibility to call Close when finished, to shut it down

Types

This section is empty.

Jump to

Keyboard shortcuts

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