Skip to content

Commit 1fec927

Browse files
committed
fixed linter warnings + updated some methods
1 parent 59e5e7a commit 1fec927

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

internal/params/tuple_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ func TestTuple(t *testing.T) {
419419
require.True(t, ok)
420420

421421
params := result.EndTuple().Build().ToYDB(a)
422-
require.Equal(t, paramsToJSON(
422+
require.Equal(t, xtest.ToJSON(
423423
map[string]*Ydb.TypedValue{
424424
"$x": {
425425
Type: &Ydb.Type{
@@ -437,7 +437,7 @@ func TestTuple(t *testing.T) {
437437
},
438438
},
439439
},
440-
}), paramsToJSON(params))
440+
}), xtest.ToJSON(params))
441441
})
442442
}
443443
}
@@ -448,7 +448,7 @@ func TestTuple_AddItems(t *testing.T) {
448448
params := Builder{}.Param("$x").BeginTuple().
449449
AddItems(value.Uint64Value(123), value.Uint64Value(321)).
450450
EndTuple().Build().ToYDB(a)
451-
require.Equal(t, paramsToJSON(
451+
require.Equal(t, xtest.ToJSON(
452452
map[string]*Ydb.TypedValue{
453453
"$x": {
454454
Type: &Ydb.Type{
@@ -484,5 +484,5 @@ func TestTuple_AddItems(t *testing.T) {
484484
},
485485
},
486486
},
487-
}), paramsToJSON(params))
488-
}
487+
}), xtest.ToJSON(params))
488+
}

internal/params/variant_tuple_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ func TestVariantTuple(t *testing.T) {
451451

452452
params := builder.EndTuple().EndVariant().Build().ToYDB(a)
453453

454-
require.Equal(t, paramsToJSON(
454+
require.Equal(t, xtest.ToJSON(
455455
map[string]*Ydb.TypedValue{
456456
"$x": {
457457
Type: &Ydb.Type{
@@ -473,7 +473,7 @@ func TestVariantTuple(t *testing.T) {
473473
},
474474
},
475475
},
476-
}), paramsToJSON(params))
476+
}), xtest.ToJSON(params))
477477
})
478478
}
479479
}
@@ -488,7 +488,7 @@ func TestVariantTuple_AddTypes(t *testing.T) {
488488
Bool(true).
489489
EndTuple().EndVariant().Build().ToYDB(a)
490490

491-
require.Equal(t, paramsToJSON(
491+
require.Equal(t, xtest.ToJSON(
492492
map[string]*Ydb.TypedValue{
493493
"$x": {
494494
Type: &Ydb.Type{
@@ -524,5 +524,5 @@ func TestVariantTuple_AddTypes(t *testing.T) {
524524
VariantIndex: 1,
525525
},
526526
},
527-
}), paramsToJSON(params))
527+
}), xtest.ToJSON(params))
528528
}

0 commit comments

Comments
 (0)