Files
dex/pkg
zeekay 4593e8d4c5 test: improve pkg/client coverage to 88.2%
Added comprehensive unit and integration tests for TraderClient:

Unit tests (without WebSocket):
- Message handlers (order, position, price, trade, orderbook, balance, error)
- State management (orders, positions, prices, trades storage)
- Callback registration and execution
- Channel getters and update channels
- Missing field handling

Integration tests (with mock WebSocket server):
- PlaceOrder, CancelOrder, ModifyOrder (authenticated path)
- OpenMarginPosition with server response
- ClosePosition, ModifyLeverage
- Subscribe/Unsubscribe with symbols array
- VaultDeposit, VaultWithdraw
- Lending operations (Supply, Borrow, Repay)
- Disconnect
- handleMessages loop

Coverage improved from 64.2% to 88.2% of statements.
2025-12-11 17:09:28 -08:00
..
2025-12-11 17:09:28 -08:00
2025-12-11 17:09:28 -08:00