testutil

package
v0.0.0-...-cc24d94 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 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

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