Documentation
¶
Overview ¶
Package keelassert provides inline snapshot assertions in the style of github.com/stretchr/testify/assert, see keeltest.Inline. Failed assertions mark the test as failed and continue.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InlineEqual ¶
InlineEqual compares the %v formatting of actual with the value stored as an INLINE comment on the calling line, see keeltest.Inline. A missing value is written and the test is marked as failed. It reports whether the values are equal.
func InlineJSONEq ¶
InlineJSONEq compares the JSON encoding of actual with the JSON stored as an INLINE comment on the calling line, ignoring formatting, see keeltest.Inline. A missing value is written and the test is marked as failed. It reports whether the values are equal.
Types ¶
type Assertions ¶
type Assertions struct {
// contains filtered or unexported fields
}
Assertions provides the package's inline assertions bound to a testing.T.
func (*Assertions) InlineEqual ¶
func (a *Assertions) InlineEqual(actual any, msgAndArgs ...any) bool
InlineEqual is like the package level InlineEqual.
func (*Assertions) InlineJSONEq ¶
func (a *Assertions) InlineJSONEq(actual any, msgAndArgs ...any) bool
InlineJSONEq is like the package level InlineJSONEq.