Versions in this module Expand all Collapse all v0 v0.13.0 Nov 25, 2025 Changes in this version + var ColoredDiffOutput = output("coloredDiffOutput") + var Default = &Expect + var PlainOutput = output("plain") + type Expect struct + Output output + func (e *Expect) Error(t Test, val interface{}) Val + func (e *Expect) Value(t Test, name string, val interface{}) Val + type Option interface + func WithExact() Option + func WithMatchTolerance(t float64) Option + func WithPixelTolerance(t float64) Option + type Test interface + Error func(p ...interface{}) + Errorf func(f string, i ...interface{}) + Fatalf func(f string, i ...interface{}) + Helper func() + type Val struct + func Error(t Test, val interface{}) Val + func Value(t Test, name string, val interface{}) Val + func (e Val) First() Val + func (e Val) Last() Val + func (e Val) Message() Val + func (e Val) NotToBe(unExpected interface{}) Val + func (e Val) ToBe(expected interface{}) Val + func (e Val) ToBeAbout(expected, delta float64) Val + func (e Val) ToBeSnapshot(path string) Val + func (e Val) ToBeSnapshotImage(path string, opts ...Option) Val + func (e Val) ToBeType(t any) Val + func (e Val) ToContain(expected interface{}) Val + func (e Val) ToCount(c int) Val + func (e Val) ToHavePrefix(prefix string) Val + func (e Val) ToHaveSuffix(suffix string) Val