testhelpers

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ptr

func Ptr(v interface{}) interface{}

Ptr makes a pointer for the specified value

func PtrInt

func PtrInt(i int) *int

PtrInt makes a pointer to int for the specified int

func PtrPtrString

func PtrPtrString(v string) **string

PtrPtrString makes a pointer to pointer string for the specified string

func PtrString

func PtrString(v string) *string

PtrString makes a pointer to string for the specified string

func RunTest

func RunTest(t *testing.T, test TestCase, index ...int)

RunTest runs the specified testCase in t

Types

type TestCase

type TestCase struct {
	Src       interface{}
	Dst       interface{}
	Expected  interface{}
	ErrorText string
	Options   *convert.Options
}

TestCase is a testcase that can be run with RunTest()

Jump to

Keyboard shortcuts

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