Skip to content

Commit 9fb2b30

Browse files
committed
Update rpc_test.go
1 parent 467f8a7 commit 9fb2b30

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rpc/rpc_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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

Comments
 (0)