github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/farm/keeper/invariants_test.go (about) 1 //go:build ignore 2 // +build ignore 3 4 package keeper 5 6 import ( 7 "testing" 8 9 swaptypes "github.com/fibonacci-chain/fbc/x/ammswap/types" 10 "github.com/stretchr/testify/require" 11 ) 12 13 func TestInvariants(t *testing.T) { 14 ctx, keeper := GetKeeper(t) 15 keeper.swapKeeper.SetParams(ctx, swaptypes.DefaultParams()) 16 initPoolsAndLockInfos(t, ctx, keeper) 17 18 _, broken := yieldFarmingAccountInvariant(keeper.Keeper)(ctx) 19 require.False(t, broken) 20 _, broken = moduleAccountInvariant(keeper.Keeper)(ctx) 21 require.False(t, broken) 22 _, broken = mintFarmingAccountInvariant(keeper.Keeper)(ctx) 23 require.False(t, broken) 24 }