Commit Graph

20 Commits

Author SHA1 Message Date
9567a98606 Move massert into internal, and simplify it a lot
The previous massert isn't that useful compared to testify, but it's
nice to have some assertion helpers in the repo which don't require a
sub-dependency.
2023-12-26 16:27:41 +01:00
Brian Picciano
ba9bc6c46c refactor mlog and merr to handle and format error messages better 2021-04-09 18:05:07 -06:00
Brian Picciano
360d41e2b8 Refactor merr, remove almost everything else 2021-04-09 17:30:59 -06:00
Brian P
3e2713a850 Get rid of mcmp, and lots of subsequent refactors
Getting rid of mcmp pretty much breaks this whole package, but this
commit makes a good start on fixing all the things worth keeping.
2021-02-07 16:04:41 -07:00
Brian Picciano
467bcbe52d mctx: refactor to no longer have parent/child logic 2019-06-15 17:28:29 -06:00
Brian Picciano
d5044ad7cb mctx: add Annotated and polish documentation 2019-05-18 12:15:35 -06:00
Brian Picciano
f5cea76cb7 mtest/massert: rename a bunch of functions 2019-03-10 19:23:37 -04:00
Brian Picciano
4536db8968 merr: refactor Wrap/WrapSkip/New to take multiple contexts rather than annotations 2019-02-27 13:05:51 -05:00
Brian Picciano
4303da03cc merr/mctx: move stack code into merr 2019-02-27 12:18:56 -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
000a57689d mctx: implement beginnings of Annotations functionality 2019-02-08 18:44:20 -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
0c2c49501e mctx: refactor implementation of Context to not use a state stored as a value, but to just wrap a context.Context 2019-02-03 19:25:46 -05:00
Brian Picciano
5bd0790f6e mctx: implement BreadthFirstVisit 2019-01-30 16:04:58 -05:00
Brian Picciano
92ecb09707 mctx: make GetSetMutableValue lock on the key itself, not the entire map, to allow more throughput when being used on multiple keys at once 2019-01-10 17:22:58 -05:00
Brian Picciano
57bd022093 mrun: implement Thread and Wait 2018-12-05 23:40:46 -05:00
Brian Picciano
b5c676b5c8 mlog: complete refactor again, eliminating the go-routine, which allowed a lot of other things to fall into place nicely 2018-11-30 16:27:18 -05:00
Brian Picciano
47061cec4e mctx: add Root function, and update some docs 2018-11-30 15:11:41 -05:00
Brian Picciano
cb65787f37 mctx: GetSetMutableValue. Not sure if I'm really going to use this or not 2018-10-28 22:17:33 -04:00
Brian Picciano
e349d0fbd8 mctx: moved ctx code from m and kept fleshing it out, trying to figure out how to incorporate Logger 2018-10-28 19:34:26 -04:00