Go Errors
· 2 min read
In Go, errors are returned as values. We can construct them in several ways.
In Go, errors are returned as values. We can construct them in several ways.
(Notes on Architecture Patterns with Python by Harry Percival, Bob Gregory: Chapter 1 - Domain Modeling)
Besides asserting the internal states or values in memory, we sometimes assert values impacted by external systems in a test. These can become a source of flakiness as external systems are inherently unpredictable. Examples of such assertions include: