elvish/pkg/eval/evaltest
Kurtis Rader 87656c99fa Replace AnyError in tests with a specific error
The `AnyError` placeholder error can cause tests to succeed for errors
other than what was expected. That is, the use of `AnyError` can mask
bugs in a unit test. So replace it with the specific error, or error type,
the test expects to be raised.

This does not remove the anyError structure because it is used in
the TestCase.DoesNotCompile() method. To keep the size of this change
as small as possible I want to defer updating that use to a separate
change. However, remove the public AnyError var so future test writers
don't attempt to use it.
2021-12-13 01:08:24 +00:00
..
evaltest.go pkg/eval: Deliver message for finished bg job using editor notification. 2021-10-05 00:08:14 +01:00
matchers.go Replace AnyError in tests with a specific error 2021-12-13 01:08:24 +00:00