What is LarvaLight?
LarvaLight provides an easy way to specify complex assertions in your code.
With a few lines in a single location in your code you can specify assertions such as:
- Whenever a particular method A is called with a particular parameter X, another method B is thereafter always called with some related parameter Y.
- A particular method A is never called within less than 5 seconds after some method B throws an exception.
- The pattern of calling a set of methods adheres to the pattern of a particular regular expression.
When use LarvaLight?
In short, wherever you might need complex assertions:
- during testing
- for debugging
- checking critical parts during runtime.