This introduces a new organisation for test vector scripts.
Each suite now lives in a package (directory), with a single main entrypoint.
I have introduced a Generator that the main method can delegate to to have it handle the generation and writing of test vectors into properly named files. I have also taken the opportunity to make things DRYer; scripts no longer have to instantiate the Builder manually, or call v.Finish(): the Generator takes care of that.
See godocs of the Generator struct for more info on the layout.
I have migrated the message_application suite to use this style. paych suite pending.
This introduces a new organisation for test vector scripts.
Each suite now lives in a package (directory), with a single main entrypoint.
I have introduced a
Generator
that the main method can delegate to to have it handle the generation and writing of test vectors into properly named files. I have also taken the opportunity to make things DRYer; scripts no longer have to instantiate theBuilder
manually, or callv.Finish()
: theGenerator
takes care of that.See godocs of the
Generator
struct for more info on the layout.I have migrated the
message_application
suite to use this style.paych
suite pending.This fixes https://github.com/filecoin-project/oni/issues/189 via an alternative approach that is less hacky and a lot more declarative, and DRY.
Try it out: