Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
blockchain: Introduce chaingen test harness. #1583
This requires #1581.
This introduces a new
It encapsulates a test instance, a
The harness will certainly need to have additional functionality added as the various tests are updated, however this initial implementation should cover most of the basic functionality.
Also, it makes judicious use of the new test helper functionality introduced in Go 1.9 which allows any test failures to report the line that invoked the helper funcs as opposed to the line inside the func itself which greatly improves its usability in shared code.
This only includes the new infrastructure code and does not update any of the tests. That will be done in separate commits.