This makes the following changes pointed out by linting: - Uses ++ instead of += 1 for incrementing the expiry in mempool test code - Removes an unused function in the rpc test code - No need to specify variable type since it is inferred |
||
|---|---|---|
| .. | ||
| debug.go | ||
| doc.go | ||
| memwallet.go | ||
| node.go | ||
| README.md | ||
| rpc_harness_test.go | ||
| rpc_harness.go | ||
| simnet_miner.go | ||
| utils.go | ||
| votingwallet_test.go | ||
| votingwallet.go | ||
rpctest
Package rpctest provides a dcrd-specific RPC testing harness crafting and
executing integration tests by driving a dcrd instance via the RPC
interface. Each instance of an active harness comes equipped with a simple
in-memory HD wallet capable of properly syncing to the generated chain,
creating new addresses, and crafting fully signed transactions paying to an
arbitrary set of outputs.
This package was designed specifically to act as an RPC testing harness for
dcrd. However, the constructs presented are general enough to be adapted to
any project wishing to programmatically drive a dcrd instance of its
systems/integration tests.
Installation and Updating
This package is part of the github.com/decred/dcrd module. Use the standard
go tooling for working with modules to incorporate it.
License
Package rpctest is licensed under the copyfree ISC License.