File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 11package params
22
33import (
4- "github.com/ydb-platform/ydb-go-sdk/v3/internal/value"
54 "testing"
65 "time"
76
87 "github.com/stretchr/testify/require"
98 "github.com/ydb-platform/ydb-go-genproto/protos/Ydb"
109
1110 "github.com/ydb-platform/ydb-go-sdk/v3/internal/allocator"
11+ "github.com/ydb-platform/ydb-go-sdk/v3/internal/value"
1212 "github.com/ydb-platform/ydb-go-sdk/v3/internal/xtest"
1313)
1414
@@ -443,7 +443,9 @@ func TestList(t *testing.T) {
443443func TestList_AddItems (t * testing.T ) {
444444 a := allocator .New ()
445445 defer a .Free ()
446- params := Builder {}.Param ("$x" ).BeginList ().AddItems (value .Uint64Value (123 ), value .Uint64Value (321 )).EndList ().Build ().ToYDB (a )
446+ params := Builder {}.Param ("$x" ).BeginList ().
447+ AddItems (value .Uint64Value (123 ), value .Uint64Value (321 )).
448+ EndList ().Build ().ToYDB (a )
447449 require .Equal (t , paramsToJSON (
448450 map [string ]* Ydb.TypedValue {
449451 "$x" : {
Original file line number Diff line number Diff line change 11package params
22
33import (
4+ "testing"
5+
46 "github.com/stretchr/testify/require"
57 "github.com/ydb-platform/ydb-go-genproto/protos/Ydb"
8+
69 "github.com/ydb-platform/ydb-go-sdk/v3/internal/allocator"
710 "github.com/ydb-platform/ydb-go-sdk/v3/internal/pg"
811 "github.com/ydb-platform/ydb-go-sdk/v3/internal/xtest"
9- "testing"
1012)
1113
1214func TestPg (t * testing.T ) {
Original file line number Diff line number Diff line change 11package params
22
33import (
4- "github.com/ydb-platform/ydb-go-sdk/v3/internal/value"
54 "testing"
65 "time"
76
87 "github.com/stretchr/testify/require"
98 "github.com/ydb-platform/ydb-go-genproto/protos/Ydb"
109
1110 "github.com/ydb-platform/ydb-go-sdk/v3/internal/allocator"
11+ "github.com/ydb-platform/ydb-go-sdk/v3/internal/value"
1212 "github.com/ydb-platform/ydb-go-sdk/v3/internal/xtest"
1313)
1414
@@ -451,7 +451,9 @@ func TestSet(t *testing.T) {
451451func TestSet_AddItems (t * testing.T ) {
452452 a := allocator .New ()
453453 defer a .Free ()
454- params := Builder {}.Param ("$x" ).BeginSet ().AddItems (value .Uint64Value (123 ), value .Uint64Value (321 )).EndSet ().Build ().ToYDB (a )
454+ params := Builder {}.Param ("$x" ).BeginSet ().
455+ AddItems (value .Uint64Value (123 ), value .Uint64Value (321 )).
456+ EndSet ().Build ().ToYDB (a )
455457 require .Equal (t , paramsToJSON (
456458 map [string ]* Ydb.TypedValue {
457459 "$x" : {
You can’t perform that action at this time.
0 commit comments