🚨 A bunch of small improvements from linter
This commit is contained in:
parent
480e36763f
commit
8f02956ecd
10 changed files with 51 additions and 47 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package nomino
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"testing"
|
||||
|
||||
"github.com/google/uuid"
|
||||
|
|
@ -18,7 +17,7 @@ func TestUUID(t *testing.T) {
|
|||
type badRead struct{}
|
||||
|
||||
func (badRead) Read([]byte) (int, error) {
|
||||
return 0, errors.New("sorry")
|
||||
return 0, errTest
|
||||
}
|
||||
|
||||
func TestUUIDFail(t *testing.T) {
|
||||
|
|
@ -26,7 +25,7 @@ func TestUUIDFail(t *testing.T) {
|
|||
defer uuid.SetRand(nil)
|
||||
|
||||
_, err := UUID(nil)(nil)
|
||||
assert.Equal(t, errors.New("sorry"), err)
|
||||
assert.ErrorIs(t, err, errTest)
|
||||
}
|
||||
|
||||
func TestRand(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue