From 8c29d78b69f6f7277a5666c41bc063f23a53cae3 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Fri, 11 Oct 2024 19:21:50 +0200 Subject: [PATCH] deprecate testutil/assert.go Signed-off-by: Matthieu MOREL --- client/pkg/testutil/assert.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/pkg/testutil/assert.go b/client/pkg/testutil/assert.go index cdc5f52542b..fb44a0cfec6 100644 --- a/client/pkg/testutil/assert.go +++ b/client/pkg/testutil/assert.go @@ -20,11 +20,15 @@ import ( "github.com/stretchr/testify/assert" ) +// AssertNil +// Deprecated: use github.com/stretchr/testify/assert.Nil instead. func AssertNil(t *testing.T, v any) { t.Helper() assert.Nil(t, v) } +// AssertNotNil +// Deprecated: use github.com/stretchr/testify/require.NotNil instead. func AssertNotNil(t *testing.T, v any) { t.Helper() if v == nil { @@ -32,11 +36,15 @@ func AssertNotNil(t *testing.T, v any) { } } +// AssertTrue +// Deprecated: use github.com/stretchr/testify/assert.True instead. func AssertTrue(t *testing.T, v bool, msg ...string) { t.Helper() assert.True(t, v, msg) } +// AssertFalse +// Deprecated: use github.com/stretchr/testify/assert.False instead. func AssertFalse(t *testing.T, v bool, msg ...string) { t.Helper() assert.False(t, v, msg)