chore: fix linter (#11028)

This commit is contained in:
andig 2023-12-06 18:29:32 +01:00 • committed by GitHub
parent 098a0fc2b5
commit 58e2421a5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
91 changed files with 374 additions and 280 deletions

View file

@ -5,13 +5,14 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestString(t *testing.T) {
v := "foo"
SetString("string", v)
res, err := String("string")
assert.Nil(t, err)
require.NoError(t, err)
assert.Equal(t, v, res)
}
@ -19,7 +20,7 @@ func TestInt(t *testing.T) {
v := int64(math.MaxInt64)
SetInt("int64", v)
res, err := Int("int64")
assert.Nil(t, err)
require.NoError(t, err)
assert.Equal(t, v, res)
}
@ -27,6 +28,6 @@ func TestFloat(t *testing.T) {
v := 3.141
SetFloat("float64", v)
res, err := Float("float64")
assert.Nil(t, err)
require.NoError(t, err)
assert.Equal(t, v, res)
}