Documentation ¶
Overview ¶
Package dbtest contains supporting code for running tests that hit the DB.
Index ¶
- func BoolPointer(b bool) *bool
- func FloatPointer(f float64) *float64
- func IntPointer(i int) *int
- func MoneyPointer(value float64) *money.Money
- func NameNullPointer(value string) *name.Null
- func NamePointer(value string) *name.Name
- func QuantityPointer(value int) *quantity.Quantity
- func StringPointer(s string) *string
- type BusDomain
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolPointer ¶
BoolPointer is a helper to get a *bool from a bool. It is in the tests package because we normally don't want to deal with pointers to basic types but it's useful in some tests.
func FloatPointer ¶
FloatPointer is a helper to get a *float64 from a float64. It is in the tests package because we normally don't want to deal with pointers to basic types but it's useful in some tests.
func IntPointer ¶
IntPointer is a helper to get a *int from a int. It is in the tests package because we normally don't want to deal with pointers to basic types but it's useful in some tests.
func MoneyPointer ¶
MoneyPointer is a helper to get a *Money from a float. It's in the tests package because we normally don't want to deal with pointers to basic types but it's useful in some tests.
func NameNullPointer ¶
NameNullPointer is a helper to get a *EmptyName from a string. It's in the tests package because we normally don't want to deal with pointers to basic types but it's useful in some tests.
func NamePointer ¶
NamePointer is a helper to get a *Name from a string. It's in the tests package because we normally don't want to deal with pointers to basic types but it's useful in some tests.
func QuantityPointer ¶
QuantityPointer is a helper to get a *Quantity from an int. It's in the tests package because we normally don't want to deal with pointers to basic types but it's useful in some tests.
func StringPointer ¶
StringPointer is a helper to get a *string from a string. It is in the tests package because we normally don't want to deal with pointers to basic types but it's useful in some tests.
Types ¶
type BusDomain ¶
type BusDomain struct { Delegate *delegate.Delegate Home *homebus.Business Product *productbus.Business User *userbus.Business VProduct *vproductbus.Business }
BusDomain represents all the business domain apis needed for testing.