testhelper

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyPointerFloat64

func EmptyPointerFloat64() *float64

func EmptyPointerString

func EmptyPointerString() *string

func GetTestLogger

func GetTestLogger(prefix string) eclog.Logger

GetTestLoger creates a log file for a test run

func JSONEqual

func JSONEqual(a string, b string) bool

func ToIOReadCloser

func ToIOReadCloser(v interface{}) io.ReadCloser

func ToJSONBytes

func ToJSONBytes(v interface{}) []byte

func ToString

func ToString(v interface{}) string

func TypeEqual

func TypeEqual(actual interface{}, expected interface{}) bool

func URLParse

func URLParse(urlRaw string) *url.URL

URLParse provides a quick pass-through to url.Parse that will discard errors. This allows us to use in-line url.URLs in new struct declarations

func WrapDurationInPointer

func WrapDurationInPointer(v time.Duration) *time.Duration

func WrapIntInPointer

func WrapIntInPointer(v int) *int

func WrapStringInPointer

func WrapStringInPointer(v string) *string

Types

This section is empty.

Jump to

Keyboard shortcuts

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