Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipsec: Remove unit tests for xfrm_collector
Remove the unit tests for xfrm_collector. They are simply not worth it. All xfrm_collector does is collect statistics via helper functions and feed them into Prometheus functions. The helper functions are covered by unit tests. Prometheus functions are covered by unit tests. We're really just passing the information from one to the other. But to cover this trivial logic in unit tests, we end up copying lots of information across the code and tests. We also need to pass the helper functions as a function pointer to xfrm_collector. Every new metric is going to need a new function pointer. I believe this is a waste of engineering time and very unlikely to catch mistakes. It doesn't even test the helper functions since we mock them out. So it's really unclear what we're trying to cover here. Removing it makes it easier to add new metrics in followup commits. Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
- Loading branch information