testutil

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqForPointer

func AssertEqForPointer(fn TestAssertFn, expected interface{}, p interface{})

AssertEqForPointer compares equal between interface of pointer

func TestBoolPtr

func TestBoolPtr(b bool) *bool

TestBoolPtr create pointer for bool

func TestFloat64Ptr

func TestFloat64Ptr(f float64) *float64

TestFloat64Ptr create pointer for float64

func TestInt32Ptr

func TestInt32Ptr(i int32) *int32

TestInt32Ptr create pointer for int32

func TestInt64Ptr

func TestInt64Ptr(i int64) *int64

TestInt64Ptr create pointer for int64

func TestStringPtr

func TestStringPtr(s string) *string

TestStringPtr create pointer for string

func TestTimePtr

func TestTimePtr(t time.Time) *time.Time

TestTimePtr create pointer for time.Time

func TestUUIDPtr

func TestUUIDPtr(b dosa.UUID) *dosa.UUID

TestUUIDPtr create pointer for dosa.UUID

Types

type TestAssertFn

type TestAssertFn func(a, b interface{})

TestAssertFn is the interface of the test closure func

Jump to

Keyboard shortcuts

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