Documentation ¶
Overview ¶
Package convey provides a temporary symbol which converts a convey-style comparison of the type:
func(actual any, expected ...any) string
Into an truth compatible symbol:
comparison.Func[any]
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Adapt ¶
func Adapt(oldComparison func(actual any, expected ...any) string) func(expected ...any) comparison.Func[any]
Adapt takes an old convey-style comparison function and converts it to a comparison.Func[any].
This is intended to be a temporary tool which should only be used during the transitional period where we switch away from Convey-style assertions. Code using this adapter should be rewritten to exclusively use truth/comparison.
Example ¶
assert.That(t, actualValue, convey.Adapt(myCustomShouldFunction)(expected))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.