testutil

package
v0.0.0-...-23a414b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: AGPL-3.0, AGPL-3.0-or-later 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