(t testing.TB)
| 1058 | } |
| 1059 | |
| 1060 | func initKeeper(t testing.TB) (sdk.Context, *sifapp.SifchainApp, types.Keeper) { |
| 1061 | ctx, app := test.CreateTestAppMargin(false) |
| 1062 | marginKeeper := app.MarginKeeper |
| 1063 | require.NotNil(t, marginKeeper) |
| 1064 | return ctx, app, marginKeeper |
| 1065 | } |
| 1066 | func addMTPKey(t testing.TB, ctx sdk.Context, app *sifapp.SifchainApp, marginKeeper types.Keeper, collateralAsset string, custodyAsset string, address string, position types.Position, id uint64, health sdk.Dec) types.MTP { |
| 1067 | storeKey := app.GetKey(types.StoreKey) |
| 1068 | store := ctx.KVStore(storeKey) |
no test coverage detected