(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestKeeper_SetPool_ValidatePool(t *testing.T) { |
| 13 | pool := test.GenerateRandomPool(1)[0] |
| 14 | ctx, app := test.CreateTestAppClp(false) |
| 15 | clpKeeper := app.ClpKeeper |
| 16 | err := clpKeeper.SetPool(ctx, &pool) |
| 17 | assert.NoError(t, err) |
| 18 | getpool, err := clpKeeper.GetPool(ctx, pool.ExternalAsset.Symbol) |
| 19 | assert.NoError(t, err, "Error in get pool") |
| 20 | assert.Equal(t, getpool, pool) |
| 21 | assert.Equal(t, clpKeeper.ExistsPool(ctx, pool.ExternalAsset.Symbol), true) |
| 22 | boolean := clpKeeper.ValidatePool(pool) |
| 23 | assert.True(t, boolean) |
| 24 | } |
| 25 | |
| 26 | func TestKeeper_GetPools(t *testing.T) { |
| 27 | pools := test.GenerateRandomPool(10) |
nothing calls this directly
no test coverage detected