Avocado is a set of tools and libraries to help with automated testing. One can call it a test framework with benefits. Native tests are written in Python and they follow the unittest pattern, but any executable can serve as a test.
Early return: When a matching path is found, the result can be returned immediately without continuing to traverse other paths. This can improve efficiency.
Use a dictionary to store path information: Path information can be stored in the dictionary with the path as the key, which can quickly find the corresponding path's status information.
Exception handling: Add appropriate exception handling to deal with situations where a matching path is not found
@ut003460 I feel the same like @richtja.
your actually removing the early return.
and not require to store anything here. please re-check and elaborate your claim.