Versions in this module Expand all Collapse all v1 v1.1.8 Mar 11, 2024 v1.1.6 Mar 11, 2024 v0 v0.9.1 Dec 4, 2020 v0.9.0 Dec 1, 2020 Changes in this version + const ChanMask + const DurationKind + const IntSize + const MapMask + const MaxInt + const MaxUint + const MinInt + const MinUint + const SliceMask + const TimeKind + const TypeKind + func RunBoolTests(t *testing.T, fn func(interface{}) (bool, error)) + func RunDurationTests(t *testing.T, fn func(interface{}) (time.Duration, error)) + func RunFloat32Tests(t *testing.T, fn func(interface{}) (float32, error)) + func RunFloat64Tests(t *testing.T, fn func(interface{}) (float64, error)) + func RunInferTests(t *testing.T, fn func(into, from interface{}) error) + func RunInt16Tests(t *testing.T, fn func(interface{}) (int16, error)) + func RunInt32Tests(t *testing.T, fn func(interface{}) (int32, error)) + func RunInt64Tests(t *testing.T, fn func(interface{}) (int64, error)) + func RunInt8Tests(t *testing.T, fn func(interface{}) (int8, error)) + func RunIntTests(t *testing.T, fn func(interface{}) (int, error)) + func RunReadmeTest(t *testing.T, srcs ...string) + func RunStringTests(t *testing.T, fn func(interface{}) (string, error)) + func RunTest(t *testing.T, k reflect.Kind, fn func(interface{}) (interface{}, error)) + func RunTimeTests(t *testing.T, fn func(interface{}) (time.Time, error)) + func RunUint16Tests(t *testing.T, fn func(interface{}) (uint16, error)) + func RunUint32Tests(t *testing.T, fn func(interface{}) (uint32, error)) + func RunUint64Tests(t *testing.T, fn func(interface{}) (uint64, error)) + func RunUint8Tests(t *testing.T, fn func(interface{}) (uint8, error)) + func RunUintTests(t *testing.T, fn func(interface{}) (uint, error)) + type Assertion struct + Code string + Desc string + Exps []Expecter + File string + From interface{} + Line int + Name string + Type string + func (a Assertion) String() string + type Assertions []*Assertion + func (a Assertions) EachOf(k reflect.Kind, f func(a *Assertion, e Expecter)) int + type AssertionsIndex map[reflect.Kind][]AssertionsLookup + type AssertionsLookup struct + type DurationExp struct + Round time.Duration + Want time.Duration + func (e DurationExp) Expect(got interface{}, err error) error + func (e DurationExp) Kind() reflect.Kind + func (e DurationExp) Value() interface{} + type ErrorExp struct + ErrStr string + func (e ErrorExp) Expect(got interface{}, err error) error + type Exp struct + Want interface{} + func (e Exp) Expect(got interface{}, err error) error + func (e Exp) Kind() reflect.Kind + func (e Exp) String() string + func (e Exp) Value() interface{} + type Expecter interface + Expect func(got interface{}, err error) error + Kind func() reflect.Kind + Value func() interface{} + type Float32Exp struct + Want float32 + func (e Float32Exp) Expect(got interface{}, err error) error + func (e Float32Exp) Kind() reflect.Kind + func (e Float32Exp) Value() interface{} + type Float64Exp struct + Want float64 + func (e Float64Exp) Expect(got interface{}, err error) error + func (e Float64Exp) Kind() reflect.Kind + func (e Float64Exp) Value() interface{} + type ReadmeExample struct + Code string + Complete bool + Example *doc.Example + Output string + Summary string + Title string + type ReadmeExamples []ReadmeExample + func (r ReadmeExamples) Len() int + func (r ReadmeExamples) Less(i, j int) bool + func (r ReadmeExamples) Swap(i, j int) + type SrcGen struct + Data interface{} + Disabled bool + FuncMap template.FuncMap + Name string + SrcBytes []byte + SrcPath string + TplBytes []byte + TplGenBytes []byte + TplPath string + func NewSrcGen(name string) *SrcGen + func (g *SrcGen) Check() error + func (g *SrcGen) Commit() error + func (g *SrcGen) Dump(w io.Writer) string + func (g *SrcGen) Format() error + func (g *SrcGen) Generate() error + func (g *SrcGen) IsStale() bool + func (g *SrcGen) Load() error + func (g *SrcGen) Run() error + func (g *SrcGen) String() string + type TimeExp struct + Moment time.Time + Offset time.Duration + Round time.Duration + Truncate time.Duration + func (e TimeExp) Expect(got interface{}, err error) error + func (e TimeExp) Kind() reflect.Kind + func (e TimeExp) String() string + func (e TimeExp) Value() interface{}