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

Function CreateTestAppMargin

x/margin/test/test_common.go:20–25  ·  view source on GitHub ↗
(isCheckTx bool)

Source from the content-addressed store, hash-verified

18}
19
20func CreateTestAppMargin(isCheckTx bool) (sdk.Context, *sifapp.SifchainApp) {
21 sifapp.SetConfig((false))
22 app := sifapp.Setup(isCheckTx)
23 ctx := app.BaseApp.NewContext(isCheckTx, tmproto.Header{})
24 return ctx, app
25}
26
27func CreateTestAppMarginFromGenesis(isCheckTx bool, genesisTransformer func(*sifapp.SifchainApp, sifapp.GenesisState) sifapp.GenesisState) (sdk.Context, *sifapp.SifchainApp) {
28 sifapp.SetConfig(false)

Callers 14

TestKeeper_ExportGenesisFunction · 0.92
TestKeeper_InitGenesisFunction · 0.92
TestKeeper_ErrorsFunction · 0.92
initKeeperFunction · 0.92
TestKeeper_ParamGetterFunction · 0.92
TestKeeper_OpenFunction · 0.92
TestKeeper_CloseFunction · 0.92
TestKeeper_OpenCloseFunction · 0.92

Calls

no outgoing calls

Tested by 14

TestKeeper_ExportGenesisFunction · 0.74
TestKeeper_InitGenesisFunction · 0.74
TestKeeper_ErrorsFunction · 0.74
initKeeperFunction · 0.74
TestKeeper_ParamGetterFunction · 0.74
TestKeeper_OpenFunction · 0.74
TestKeeper_CloseFunction · 0.74
TestKeeper_OpenCloseFunction · 0.74