mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
29 lines
596 B
Go
29 lines
596 B
Go
package keelrequire
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
// Assertions provides assertion methods around the
|
|
// TestingT interface.
|
|
type Assertions struct {
|
|
t *testing.T
|
|
}
|
|
|
|
// New makes a new Assertions object for the specified TestingT.
|
|
func New(t *testing.T) *Assertions { //nolint:thelper
|
|
return &Assertions{
|
|
t: t,
|
|
}
|
|
}
|
|
|
|
func (a *Assertions) InlineEqual(actual interface{}, msgAndArgs ...interface{}) {
|
|
a.t.Helper()
|
|
InlineEqual(a.t, actual, msgAndArgs...)
|
|
}
|
|
|
|
func (a *Assertions) InlineJSONEq(actual interface{}, msgAndArgs ...interface{}) {
|
|
a.t.Helper()
|
|
InlineJSONEq(a.t, actual, msgAndArgs...)
|
|
}
|