utils

package
v0.0.0-...-219f826 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEmptyString

func AssertEmptyString(t *testing.T, actual string)

func AssertEqualsBool

func AssertEqualsBool(t *testing.T, expected bool, actual bool)

func AssertEqualsFloat64

func AssertEqualsFloat64(t *testing.T, expected float64, actual float64)

func AssertEqualsInt

func AssertEqualsInt(t *testing.T, expected int, actual int)

func AssertEqualsString

func AssertEqualsString(t *testing.T, expected string, actual string)

func AssertEqualsStruct

func AssertEqualsStruct(t *testing.T, expected interface{}, actual interface{})

func AssertEqualsTime

func AssertEqualsTime(t *testing.T, expected time.Time, actual time.Time)

func AssertNil

func AssertNil(t *testing.T, actual interface{})

func AssertNotNill

func AssertNotNill(t *testing.T, actual interface{})

func BoolPtr

func BoolPtr(b bool) *bool

func FloatPtr

func FloatPtr(f float64) *float64

func IntPtr

func IntPtr(f int) *int

func Minimise

func Minimise(str string) string

func PrettyPrint

func PrettyPrint(data interface{}) string

func StrPtr

func StrPtr(s 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