OSDN Git Service

Functional tests (#543)
authorWangYifu <lbqds@cryptape.com>
Thu, 12 Apr 2018 01:54:39 +0000 (20:54 -0500)
committerPaladz <yzhu101@uottawa.ca>
Thu, 12 Apr 2018 01:54:39 +0000 (09:54 +0800)
commit9203b8f246d1abd5a825e700d015443594c90529
tree5c160d786a1a2a9f318c9221149729fb3e1de485
parent6e130176e5ad7826ea92f805960f03ad877a4dc1
Functional tests (#543)

* add integration test

* tiny refactor

* add chain tests

* update wallet tests

* add wallet rollback test

* mock utxo, create asset, account

* fix can't find btm asset

* fix verify control program failed

* add tx tests

* tx test, output large than input

* add gas used test

* validate tx when gen block

* add tx version tests

* add gas only tx, spend immature coinbase output tests

* add block header tests

* spent retire, insufficient assets tests

* add coinbase tx test

* golint

* add double spend tests

* tx have no outputs test

* chain fork tests

* GenerateGenesisBlock for tests

* separate unit tests and functional tests

* update status with ProcessBlock

* fix tests

* gofmt

* add tx pool tests

* simplify code

* fix typo

* add max block gas test

* remove useless code

* fix chain tests

* serialize tx manually

* remove mux vm verify

* tmp save

* change the code style

* edit code format

* rename the file

* mv validate block to right folder

* delete unused from validation package

* add unit test for checkBlockTime && checkCoinbaseAmount

* delete unused test_file

* update the blockindex import

* fix tests

* format protocol level

* fix for golint

* edit for fix bug

* fix chain rollback tests
29 files changed:
Makefile
protocol/validation/tx_test.go
test/block_test.go [new file with mode: 0644]
test/block_test_util.go [new file with mode: 0644]
test/chain_test.go [new file with mode: 0644]
test/chain_test_util.go [new file with mode: 0644]
test/init_test.go [new file with mode: 0644]
test/integration/standard_transaction_test.go
test/performance/mining_test.go
test/protocol_test.go [new file with mode: 0644]
test/protocol_test_util.go [new file with mode: 0644]
test/testdata/chain_tests/ct_dependency_tx.json [new file with mode: 0644]
test/testdata/chain_tests/ct_double_spend.json [new file with mode: 0644]
test/testdata/chain_tests/ct_normal.json [new file with mode: 0644]
test/testdata/chain_tests/ct_rollback.json [new file with mode: 0644]
test/testdata/tx_tests/tx_tests.json [new file with mode: 0644]
test/testdata/wallet_tests/wt_asset.json [new file with mode: 0644]
test/testdata/wallet_tests/wt_btm.json [new file with mode: 0644]
test/testdata/wallet_tests/wt_invalid_txs.json [new file with mode: 0644]
test/testdata/wallet_tests/wt_multi_sig_asset.json [new file with mode: 0644]
test/testdata/wallet_tests/wt_retire_asset.json [new file with mode: 0644]
test/testdata/wallet_tests/wt_rollback.json [new file with mode: 0644]
test/tx_test.go [new file with mode: 0644]
test/tx_test_util.go [new file with mode: 0644]
test/util.go
test/wallet_test.go [new file with mode: 0644]
test/wallet_test_util.go [new file with mode: 0644]
wallet/wallet.go
wallet/wallet_test.go