Skip to content

Commit

Permalink
Approaching test perfection
Browse files Browse the repository at this point in the history
  • Loading branch information
cranktakular committed Nov 19, 2024
1 parent d0a6260 commit 6e76383
Show file tree
Hide file tree
Showing 3 changed files with 229 additions and 101 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ func generateMethodArg(ctx context.Context, t *testing.T, argGenerator *MethodAr
ClientOrderID: "13371337",
ImmediateOrCancel: true,
Leverage: 1,
MarginType: margin.Isolated,
})
case argGenerator.MethodInputType.AssignableTo(orderModifyParam):
input = reflect.ValueOf(&order.Modify{
Expand All @@ -465,6 +466,7 @@ func generateMethodArg(ctx context.Context, t *testing.T, argGenerator *MethodAr
ClientOrderID: "13371337",
OrderID: "1337",
ImmediateOrCancel: true,
TriggerPrice: 149,
})
case argGenerator.MethodInputType.AssignableTo(orderCancelParam):
input = reflect.ValueOf(&order.Cancel{
Expand Down
Loading

0 comments on commit 6e76383

Please sign in to comment.