mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-25 03:56:34 +00:00
18 lines
805 B
Go
18 lines
805 B
Go
/*
|
|
Package neotest contains framework for automated contract testing.
|
|
It can be used to implement unit-tests for contracts in Go using regular Go
|
|
conventions.
|
|
|
|
Usually it's used like this:
|
|
* an instance of blockchain is created using chain subpackage
|
|
* target contract is compiled using one of Compile* functions
|
|
* and Executor is created for blockchain
|
|
* it's used to deploy contract with DeployContract
|
|
* CommitteeInvoker and/or ValidatorInvoker are then created to perform test invocations
|
|
* if needed NewAccount is used to create appropriate number of accounts for the test
|
|
|
|
Higher-order methods provided in Executor and ContractInvoker hide the details
|
|
of transaction creation for the most part, but there are lower-level methods as
|
|
well that can be used for specific tasks.
|
|
*/
|
|
package neotest
|