Be is a minimal Go testing library that provides three simple assertion functions: Equal, Err, and True. It offers flexible error checking that can validate error existence, messages, types, and values in a single function call. The package prioritizes simplicity with only 100 lines of code, uses natural parameter ordering (got, want), and doesn't fail tests immediately on assertion failures to show all errors at once.

4m read timeFrom antonz.org
Post cover image
Table of contents
Be — a minimal test assertions packageDesign decisionsFinal thoughts

Sort: