logstash-plugins / logstash-filter-date

Apache License 2.0
7 stars 43 forks source link

Removes for loop on an Map in tests #151

Closed andsel closed 2 years ago

andsel commented 2 years ago

Verifying conditions in loop is not helpful if a failure happens, because doesn't provide any insight on which loop it failed, and the reported line doesn't point directly to the problem.

This PR unroll loops to have a more effective error when test fails.