Documentation
¶
Index ¶
- func ConditionalError(t *testing.T, expectError bool, err error)
- func ConditionalPanic(t *testing.T, expectPanic bool, sut func())
- func DecApproxEq(t *testing.T, d1 osmomath.Dec, d2 osmomath.Dec, tol osmomath.Dec, ...)
- func Equal[T Stringer](t *testing.T, tolerance osmomath.ErrTolerance, A, B T)
- func Uint64ArrayValuesAreUnique(values []uint64) bool
- type Stringer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConditionalError ¶
ConditionalError checks if expectError is true, asserts that err is an error If expectError is false, asserts that err is nil
func ConditionalPanic ¶
ConditionalPanic checks if expectPanic is true, asserts that sut (system under test) panics. If expectPanic is false, asserts that sut does not panic. returns true if sut panics and false it it does not
func DecApproxEq ¶
func DecApproxEq(t *testing.T, d1 osmomath.Dec, d2 osmomath.Dec, tol osmomath.Dec, msgAndArgs ...interface{})
DecApproxEq is a helper function to compare two decimals. It validates the two decimal are within a certain tolerance. If not, it fails with a message.
func Equal ¶
func Equal[T Stringer](t *testing.T, tolerance osmomath.ErrTolerance, A, B T)
Equal compares A with B and asserts that they are equal within tolerance error tolerance
Types ¶
Click to show internal directories.
Click to hide internal directories.