MCPcopy Create free account
hub / github.com/Sifchain/sifnode / initKeeper

Function initKeeper

x/margin/keeper/keeper_test.go:1060–1065  ·  view source on GitHub ↗
(t testing.TB)

Source from the content-addressed store, hash-verified

1058}
1059
1060func 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}
1066func 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)

Callers 15

TestKeeper_SetMTPFunction · 0.85
TestKeeper_GetMTPFunction · 0.85
TestKeeper_GetMTPsFunction · 0.85
TestKeeper_DestroyMTPFunction · 0.85
TestKeeper_ClpKeeperFunction · 0.85
TestKeeper_BankKeeperFunction · 0.85
TestKeeper_CLPSwapFunction · 0.85
TestKeeper_BorrowFunction · 0.85
TestKeeper_TakeInCustodyFunction · 0.85

Calls 1

CreateTestAppMarginFunction · 0.92

Tested by

no test coverage detected