(t *testing.T)
| 95 | } |
| 96 | |
| 97 | func TestKeeper_GetMTPIterator(t *testing.T) { |
| 98 | ctx, app, marginKeeper := initKeeper(t) |
| 99 | want := addMTPKey(t, ctx, app, marginKeeper, "ceth", "xxx", "xxx", types.Position_LONG, 1, sdk.NewDec(20)) |
| 100 | iterator := marginKeeper.GetMTPIterator(ctx) |
| 101 | bytesValue := iterator.Value() |
| 102 | var got types.MTP |
| 103 | types.ModuleCdc.MustUnmarshal(bytesValue, &got) |
| 104 | |
| 105 | require.Equal(t, got, want) |
| 106 | } |
| 107 | |
| 108 | func TestKeeper_GetMTPs(t *testing.T) { |
| 109 | ctx, app, marginKeeper := initKeeper(t) |
nothing calls this directly
no test coverage detected