testutil

package
v0.3.6-dev2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MedianizationError is a generic error returned when the below MedianErr method is called.
	MedianizationError = errors.New("Failed to get median")
)

Functions

func CreateResponseFromJson

func CreateResponseFromJson(m string) *http.Response

CreateResponseFromJson creates a http response from a json string.

func MedianErr added in v0.3.0

func MedianErr(a []uint64) (uint64, error)

MedianErr mocks the median function and returns an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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