chore: fix linter (#11028)
This commit is contained in:
parent
098a0fc2b5
commit
58e2421a5b
91 changed files with 374 additions and 280 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue