Skip to content

Commit d2f4931

Browse files
committed
fix param tests
1 parent e6c4b1c commit d2f4931

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

internal/bind/params_test.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -279,21 +279,20 @@ func TestToValue(t *testing.T) {
279279
dst: types.ListValue(types.TextValue("test")),
280280
err: nil,
281281
},
282-
283282
{
284283
src: [16]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16},
285-
dst: types.UUIDValue([16]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}), //nolint:staticcheck
286-
err: nil,
284+
dst: nil,
285+
err: types.ErrIssue1501BadUUID,
287286
},
288287
{
289288
src: func() *[16]byte { return nil }(),
290-
dst: types.NullValue(types.TypeUUID),
291-
err: nil,
289+
dst: nil,
290+
err: types.ErrIssue1501BadUUID,
292291
},
293292
{
294293
src: func(v [16]byte) *[16]byte { return &v }([16]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}),
295-
dst: types.OptionalValue(types.UUIDValue([16]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16})), //nolint:staticcheck,lll
296-
err: nil,
294+
dst: nil,
295+
err: types.ErrIssue1501BadUUID,
297296
},
298297
{
299298
src: uuid.UUID{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16},

0 commit comments

Comments
 (0)