Commit Graph

27 Commits

Author SHA1 Message Date
Brian Picciano
dedf3a0368 mcmp: rename GetSeries* functions to just Series* 2019-06-15 17:52:55 -06:00
Brian Picciano
af836c1cab mtest: refactor to use Component instead of Context 2019-06-15 17:51:04 -06:00
Brian Picciano
b35b44eb22 mcfg: implement WithCLISubCommand 2019-04-04 16:25:02 -04:00
Brian Picciano
a596306d9e mcfg: made SourceCLI and SourceEnv be pointers 2019-04-04 10:57:37 -04:00
Brian Picciano
f5cea76cb7 mtest/massert: rename a bunch of functions 2019-03-10 19:23:37 -04:00
Brian Picciano
2496b170d8 mtest/massert: ensure that values being asserted are captured at the moment the assertion is made 2019-03-09 12:14:00 -05:00
Brian Picciano
e1e52db208 refactor everything to use context's annotation system, making some significant changes to annotations themselves along the way 2019-02-24 15:36:07 -05:00
Brian Picciano
4b446a0efc mctx: refactor so that contexts no longer carry mutable data
This change required refactoring nearly every package in this project,
but it does a lot to simplify mctx and make other code using it easier
to think about.

Other code, such as mlog and mcfg, had to be slightly modified for this
change to work as well.
2019-02-07 19:42:12 -05:00
Brian Picciano
f783b62f6f mtest: implement NewCtx and Run, and use them in mnet and mhttp's tests 2019-02-02 20:58:18 -05:00
Brian Picciano
910704ae67 massert: add Err and Errf functions 2018-10-28 15:09:14 -04:00
Brian Picciano
23045168cf massert: make most assertions handle the case of a reference type, like a map, being changed before Assert is called 2018-10-15 14:34:10 -04:00
Brian Picciano
c66f13927a mchk: implement failing test case minimization 2018-08-21 14:45:15 -04:00
Brian Picciano
4a842fbea1 mchk: remove typeName in params printing, it wasn't really helping 2018-08-14 16:18:34 -04:00
Brian Picciano
235e9a1850 massert: make Len error a bit more helpful 2018-08-14 15:38:24 -04:00
Brian Picciano
715b6c9491 mchk: move mtest.Checker to mtest/mchk, and refactor its types a little bit 2018-08-13 15:03:30 -04:00
Brian Picciano
9ccc787066 mtest: refactor Run a bit 2018-08-13 12:06:05 -04:00
Brian Picciano
c850ace8d2 mtest: add Terminate field to Action 2018-08-13 11:57:33 -04:00
Brian Picciano
58fd73d540 mtest: implement Nil 2018-07-19 18:04:08 +00:00
Brian Picciano
0a4be2f8cd massert: implement Len 2018-07-16 00:38:00 +00:00
Brian Picciano
d3a81f9613 massert: implement HasKey 2018-07-16 00:08:23 +00:00
Brian Picciano
69e3019fbf massert: implement Subset, Has, Fatal, and Error 2018-07-08 18:19:09 +00:00
Brian Picciano
c297e09446 massert: add All, None, Any, AnyOne, and flesh out tests 2018-07-07 17:43:14 +00:00
Brian Picciano
1b26e2958a massert: initial implementation 2018-07-05 00:09:53 +00:00
Brian Picciano
402aa13495 mtest: implement Checker, a very basic property checker 2018-07-03 18:18:51 +00:00
Brian Picciano
1be0072701 mtest->mrand: move rand functionality from mtest into its own package 2018-07-03 00:20:00 +00:00
Brian Picciano
f9ec4d7bce mtest: implement RandElement 2018-07-02 23:42:54 +00:00
Brian Picciano
3f2f00d367 implement mtest package 2018-02-11 16:05:36 +00:00