Skip to content

Commit

Permalink
fix uuid optional wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
rekby committed Oct 23, 2024
1 parent 74f2ece commit 85ba858
Showing 1 changed file with 8 additions and 28 deletions.
36 changes: 8 additions & 28 deletions internal/params/optional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,23 +368,13 @@ func TestOptional(t *testing.T) {

expected: expected{
Type: &Ydb.Type{
Type: &Ydb.Type_OptionalType{
OptionalType: &Ydb.OptionalType{
Item: &Ydb.Type{
Type: &Ydb.Type_TypeId{TypeId: Ydb.Type_UUID},
},
},
},
Type: &Ydb.Type_TypeId{TypeId: Ydb.Type_UUID},
},
Value: &Ydb.Value{
Value: &Ydb.Value_NestedValue{
NestedValue: &Ydb.Value{
Value: &Ydb.Value_Low_128{
Low_128: 506660481424032516,
},
High_128: 1157159078456920585,
},
Value: &Ydb.Value_Low_128{
Low_128: 506660481424032516,
},
High_128: 1157159078456920585,
},
},
},
Expand All @@ -394,23 +384,13 @@ func TestOptional(t *testing.T) {

expected: expected{
Type: &Ydb.Type{
Type: &Ydb.Type_OptionalType{
OptionalType: &Ydb.OptionalType{
Item: &Ydb.Type{
Type: &Ydb.Type_TypeId{TypeId: Ydb.Type_UUID},
},
},
},
Type: &Ydb.Type_TypeId{TypeId: Ydb.Type_UUID},
},
Value: &Ydb.Value{
Value: &Ydb.Value_NestedValue{
NestedValue: &Ydb.Value{
Value: &Ydb.Value_Low_128{
Low_128: 651345242494996240,
},
High_128: 72623859790382856,
},
Value: &Ydb.Value_Low_128{
Low_128: 651345242494996240,
},
High_128: 72623859790382856,
},
},
},
Expand Down

0 comments on commit 85ba858

Please sign in to comment.