add notes for testing

This commit is contained in:
Callum Waters
2022-11-18 16:54:32 +01:00
parent bd75306a93
commit 5651a21adb
+16
View File
@@ -11,6 +11,7 @@ import (
"github.com/tendermint/tendermint/abci/types"
)
// TODO: we should also check that CheckTx adds bids and asks to the app-side mempool
func TestCheckTx(t *testing.T) {
app, err := orderbook.New(dbm.NewMemDB())
require.NoError(t, err)
@@ -70,14 +71,29 @@ func TestCheckTx(t *testing.T) {
}
}
// TODO: we should check that transactions in
// a market are being validated and added to the proposal
// and that other transactions get in
// func TestPrepareProposal(t *testing.T) {
// app := orderbook.New(dbm.NewMemDB())
// }
// TODO: we should test that transactions are
// always valid i.e. ValidateTx. We could potentially
// combine this with PrepareProposal
// func TestProcessProposal(t *testing.T) {
// app := orderbook.New(dbm.NewMemDB())
// }
// TODO: we should test that a matched order
// correctly updates the accounts. We should
// also test that committing a block persists
// it to the database and that we can now
// query the new state
// func TestFinalizeBlock(t *testing.T) {
// app := orderbook.New(dbm.NewMemDB())
// }
// TODO: test that we can start from new
// and from existing state
// func TestNewStateMachine(t *testing.T) {}