(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func TestKeeper_NewQueryServer(t *testing.T) { |
| 14 | ctx, app := test.CreateTestAppMargin(false) |
| 15 | |
| 16 | addMTPKey(t, ctx, app, app.MarginKeeper, "ceth", "rowan", "sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd", margintypes.Position_LONG, 1, sdk.NewDec(20)) |
| 17 | |
| 18 | queryServer := keeper.NewQueryServer(app.MarginKeeper) |
| 19 | |
| 20 | res, err := queryServer.GetPositionsForAddress(sdk.WrapSDKContext(ctx), &margintypes.PositionsForAddressRequest{ |
| 21 | Address: "sif1syavy2npfyt9tcncdtsdzf7kny9lh777yqc2nd", |
| 22 | Pagination: nil, |
| 23 | }) |
| 24 | require.NoError(t, err) |
| 25 | require.Len(t, res.Mtps, 1) |
| 26 | } |
nothing calls this directly
no test coverage detected