🚨 A bunch of small improvements from linter

This commit is contained in:
Dan Jones 2025-03-19 18:05:16 -05:00
commit 8f02956ecd
10 changed files with 51 additions and 47 deletions

View file

@ -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) {