6
6
| |
7
7
| rpc/rpc_test.go |
8
8
| |
9
- | LastModified: May 27, 2022 |
9
+ | LastModified: Feb 18, 2024 |
10
10
| Author: Ma Bingyao <[email protected] > |
11
11
| |
12
12
\*________________________________________________________*/
@@ -404,6 +404,8 @@ func TestAutoTypeConvert(t *testing.T) {
404
404
rpc .WithLongType (io .LongTypeBigInt ),
405
405
rpc .WithRealType (io .RealTypeBigFloat ),
406
406
rpc .WithMapType (io .MapTypeSIMap ),
407
+ rpc .WithStructType (io .StructTypeStructPointer ),
408
+ rpc .WithListType (io .ListTypeInterfaceSlice ),
407
409
)
408
410
service .AddFunction (autoTypeConvert )
409
411
server , err := net .Listen ("tcp" , "127.0.0.1:8412" )
@@ -423,6 +425,8 @@ func TestAutoTypeConvert(t *testing.T) {
423
425
rpc .WithLongType (io .LongTypeUint64 ),
424
426
rpc .WithRealType (io .RealTypeFloat64 ),
425
427
rpc .WithMapType (io .MapTypeIIMap ),
428
+ rpc .WithStructType (io .StructTypeStructObject ),
429
+ rpc .WithListType (io .ListTypeSlice ),
426
430
)
427
431
client .UseService (& proxy )
428
432
msg , result := proxy .AutoTypeConvert (int64 (12345 ))
0 commit comments