Touching elements

Every element in the document that you query something from is automatically flagged as touched. When you are finished querying the document (or a specific section) you can let enolib run a check to ensure that every element found in the document was actually touched by your code.

Using this even at an early stage in developing an application is a great productivity booster because it will save you when you forget to query something, or when you did write a query for an element but mis-typed its key, or when you or a user mis-types keys in the data itself, and so on.

Basically it's like an extra automated test suite for both your code and the data itself that you can use for free.


Next page: Assert all touched