testutil

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMedianization = errors.New("failed to get median")

ErrMedianization is a generic error returned when the below MedianErr method is called.

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