Documentation
¶
Index ¶
- Variables
- func CreateStruct(fieldNum int) (v any, asMapBytes []byte, asArrayBytes []byte)
- func Equal[T any](t *testing.T, actual, expected T)
- func EqualEqualer[T Equaler[T]](t *testing.T, actual, expected T)
- func EqualMap[K comparable, V comparable](t *testing.T, actual, expected map[K]V)
- func EqualSlice[T comparable](t *testing.T, actual, expected []T)
- func Error(t *testing.T, err error)
- func ErrorContains(t *testing.T, err error, errStr string)
- func IsError(t *testing.T, actual, expected error)
- func NoError(t *testing.T, err error)
- type Equaler
- type ErrReader
- type TestReader
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrReaderErr = errors.New("reader error")
Functions ¶
func CreateStruct ¶
CreateStruct returns a struct that is made dynamically and encoded bytes.
func EqualEqualer ¶
func EqualMap ¶
func EqualMap[K comparable, V comparable](t *testing.T, actual, expected map[K]V)
func EqualSlice ¶
func EqualSlice[T comparable](t *testing.T, actual, expected []T)
Types ¶
type TestReader ¶
type TestReader struct {
// contains filtered or unexported fields
}
func NewTestReader ¶
func NewTestReader(b []byte) *TestReader
func (*TestReader) Count ¶
func (r *TestReader) Count() int
Click to show internal directories.
Click to hide internal directories.