Documentation
¶
Index ¶
- func AssertNot(tag string, value interface{}, unexpected interface{})
- func AssertNotEmpty(tag string, value string)
- func AssertNotNil(tag string, value interface{})
- func AssertValue(tag string, value interface{}, expected interface{})
- func CheckErr(err error)
- func EqualArrays(a, b interface{}) bool
- func MaxInt(x uint16, y uint16) uint16
- func MinInt(x uint16, y uint16) uint16
- func ReportErr(format string, a ...interface{})
- type StateChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertNotEmpty ¶
assertNotEmpty does sanity check
func AssertValue ¶
func AssertValue(tag string, value interface{}, expected interface{})
func EqualArrays ¶
func EqualArrays(a, b interface{}) bool
Types ¶
type StateChecker ¶
type StateChecker interface { CheckStateIs(state string) CheckStateIsNot(state string) SwitchState(nextState string) SwitchStateFromTo(stateFrom, stateTo string) Current() string CurrentIs(state string) bool }
func NewStateChecker ¶
func NewStateChecker(startState string) StateChecker
Click to show internal directories.
Click to hide internal directories.