Documentation ¶
Index ¶
- func AppendAll(content ...[]byte) []byte
- func AssertContains(t testing.TB, slice interface{}, value interface{})
- func AssertContainsAll(t testing.TB, sliceActual interface{}, sliceExpected interface{})
- func AssertEquals(t testing.TB, actual interface{}, expected interface{})
- func AssertError(t testing.TB, err error, message string)
- func AssertNil(t testing.TB, value interface{})
- func AssertNoError(t testing.TB, err error, message string)
- func AssertNotEquals(t testing.TB, actual interface{}, expected interface{})
- func AssertNotNil(t testing.TB, value interface{})
- func AssertPanic(t testing.TB, msg string)
- func AssertSame(t testing.TB, actual interface{}, expected interface{})
- func ComputeCryptoHash(content ...[]byte) []byte
- func ConstructRandomBytes(t testing.TB, size int) []byte
- func GenerateID(t *testing.T) string
- func ParseTestParams() []string
- func SetLogLevel(level logging.Level, module string)
- func SetupTestConfig()
- type TestRandomNumberGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertContains ¶
func AssertContainsAll ¶
func AssertEquals ¶
func AssertNotEquals ¶
func AssertNotNil ¶
func AssertPanic ¶
func AssertSame ¶
func ComputeCryptoHash ¶
func GenerateID ¶
func ParseTestParams ¶
func ParseTestParams() []string
func SetLogLevel ¶
func SetLogLevel(level logging.Level, module string)
func SetupTestConfig ¶
func SetupTestConfig()
Types ¶
type TestRandomNumberGenerator ¶
type TestRandomNumberGenerator struct {
// contains filtered or unexported fields
}
func NewTestRandomNumberGenerator ¶
func NewTestRandomNumberGenerator(maxNumber int) *TestRandomNumberGenerator
func (*TestRandomNumberGenerator) Next ¶
func (randNumGenerator *TestRandomNumberGenerator) Next() int
Click to show internal directories.
Click to hide internal directories.