Branch: refs/heads/master
Home: https://github.com/btcsuite/btcd
Commit: 8ef68dcc6e51e733af9d7ce9e962879d66f0ad49
https://github.com/btcsuite/btcd/commit/8ef68dcc6e51e733af9d7ce9e962879d66f0ad49
Author: Dave Collins <[email protected]>
Date: 2015-04-28 (Tue, 28 Apr 2015)
Changed paths:
M txscript/data/script_invalid.json
M txscript/opcode.go
M txscript/opcode_test.go
M txscript/stack_test.go
Log Message:
-----------
txscript: Cleanup and improve opcode tests.
- Remove all redundant opcode tests in favor of the JSON-based tests
in the data directory.
- Remove duplicate stack nip test
- Add new tests to data/script_invalid.json to exercise additional
negative error paths
- Remove old unneeded pubkey trace code from opcodeCheckSig
- Simplify and improve the disassembly print function
- Add new tests to directly test all individual opcode disassembly
- Add new tests to directly test opcode disabled function which does not
get invoked during ordinary execution
- Improve test coverage of opcode.go