66| |
77| rpc/rpc_test.go |
88| |
9- | LastModified: May 27, 2022 |
9+ | LastModified: Feb 18, 2024 |
1010| Author: Ma Bingyao <[email protected] > | 1111| |
1212\*________________________________________________________*/
@@ -404,6 +404,8 @@ func TestAutoTypeConvert(t *testing.T) {
404404 rpc .WithLongType (io .LongTypeBigInt ),
405405 rpc .WithRealType (io .RealTypeBigFloat ),
406406 rpc .WithMapType (io .MapTypeSIMap ),
407+ rpc .WithStructType (io .StructTypeStructPointer ),
408+ rpc .WithListType (io .ListTypeInterfaceSlice ),
407409 )
408410 service .AddFunction (autoTypeConvert )
409411 server , err := net .Listen ("tcp" , "127.0.0.1:8412" )
@@ -423,6 +425,8 @@ func TestAutoTypeConvert(t *testing.T) {
423425 rpc .WithLongType (io .LongTypeUint64 ),
424426 rpc .WithRealType (io .RealTypeFloat64 ),
425427 rpc .WithMapType (io .MapTypeIIMap ),
428+ rpc .WithStructType (io .StructTypeStructObject ),
429+ rpc .WithListType (io .ListTypeSlice ),
426430 )
427431 client .UseService (& proxy )
428432 msg , result := proxy .AutoTypeConvert (int64 (12345 ))
0 commit comments