shrub/tests/sys
Philip Monk 8910e12f67 eyre: refactor tests
This shaves off 1000 lines of testing code while maintaining the same
tests.  It reduces boilerplate by introducing "mare", a monad for
testing Eyre.  It's very simple (just maintains the current state of
Eyre and the current time), but it's easier to build helper functions in
this form, and that reduces the immense quantities of copy-and-paste
that were in the old tests.  What's there now could surely be improved
further, but I think this is a good start.

The underlying mare machinery is not really specific to Eyre, so it
would be straightforward to apply this strategy to other vanes.  The
work is in creating appropriate helper functions for each vane.  Eyre is
undergoing work, so that's the only one I've changed here.  Further,
it's not clear that this is the ultimate solution to unit testing vanes.
The resulting code is IMO clearer than before, but I wouldn't say it's
*clear*.
2023-05-08 20:40:28 -07:00
..
arvo tests: move to root, out of pkg/arvo 2023-01-18 16:50:42 +01:00
hoon Merge remote-tracking branch 'origin/next/arvo' into m/detest 2023-01-18 18:01:59 -07:00
vane eyre: refactor tests 2023-05-08 20:40:28 -07:00
zuse Merge branch 'next/kelvin/413' into i/5788/remote-scry 2023-04-22 14:33:20 -04:00
fine.hoon tests: fixes $wail serialization in fine tests 2023-04-23 02:01:50 -04:00
grq.hoon ames: first pass a %fine unit tests 2023-04-17 14:15:35 +02:00
nock.hoon tests: move to root, out of pkg/arvo 2023-01-18 16:50:42 +01:00